asticode / go-astilectron-demo

Discover the power of Astilectron through a demo app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can you protect source code?

bishen opened this issue · comments

A Sciter archive usage example.

To build it you need the packfolder tool from the Sciter SDK:

  • convert resources from folder resources to resources.go via packfolder resources resources.go -v resource_name -go
  • use it in your source code via win.SetResourceArchive(resource_name)

Now the resulting executable is completely stand-alone.

// Similar code
w.SetResourceArchive(resource_name)
w.LoadFile("this://app/simple.html")

@bishen isn't it what the bundler does?

It will bind what is in your resources folder and extract it when binary will be executed for the first time.