You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 16, 2024. It is now read-only.
Thanks to `go-astilectron` build cross platform GUI apps with GO and HTML/JS/CSS. It is the official GO bindings of [astilectron](https://github.com/asticode/astilectron) and is powered by [Electron](https://github.com/electron/electron).
7
7
@@ -56,6 +56,8 @@ var a, _ = astilectron.New(astilectron.Options{
56
56
AppIconDefaultPath: "<your .png icon>", // If path is relative, it must be relative to the data directory
57
57
AppIconDarwinPath: "<your .icns icon>", // Same here
58
58
BaseDirectoryPath: "<where you want the provisioner to install the dependencies>",
59
+
VersionAstilectron: "<version of Astilectron to utilize such as `0.33.0`>",
60
+
VersionElectron: "<version of Electron to utilize such as `4.0.1` | `6.1.2`>",
59
61
})
60
62
defer a.Close()
61
63
@@ -332,6 +334,9 @@ var t = a.NewTray(&astilectron.TrayOptions{
332
334
Tooltip: astilectron.PtrStr("Tray's tooltip"),
333
335
})
334
336
337
+
// Create tray
338
+
t.Create()
339
+
335
340
// New tray menu
336
341
varm = t.NewMenu([]*astilectron.MenuItemOptions{
337
342
{
@@ -355,12 +360,9 @@ var m = t.NewMenu([]*astilectron.MenuItemOptions{
returnfmt.Sprintf("https://github.com/electron/electron/releases/download/v%s/electron-v%s-%s-%s.zip", VersionElectron, VersionElectron, o, a)
144
+
returnfmt.Sprintf("https://github.com/electron/electron/releases/download/v%s/electron-v%s-%s-%s.zip", versionElectron, versionElectron, o, a)
144
145
}
145
146
146
147
// initAppExecutable initializes the app executable path
0 commit comments