asticode / go-astilectron-demo

Discover the power of Astilectron through a demo app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

i can't excute exe file

megimegikimmegi opened this issue · comments

my main.go detail source is

AstilectronOptions: astilectron.Options{
AppName: AppName,
AppIconDarwinPath: "resources/icon.icns",
AppIconDefaultPath: "resources/icon.png",
DataDirectoryPath: "./",
},

and

Windows: []*bootstrap.Window{{
		
		Homepage:       "/html/login.html",

but , can't excute exe file

i think they have no resource file ...

please help me

First off, you shouldn't set the DataDirectoryPath option. Then the Homepage value should be html/login.html (no leading slash). Bare in mind that in that case your resources folder should contain at least this structure :

resources
|
+--- app
        |
       +--- html
               |
              +--- login.html

Try copying the demo first and adding your custom pages bit by bit.

Does that answer your question?