i can't excute exe file
megimegikimmegi opened this issue · comments
megimegikimmegi commented
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
Quentin Renard commented
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?