Move assets -> build dir. Bundle assets in CLI binary.

This commit is contained in:
Lea Anthony
2021-05-13 20:12:19 +10:00
parent 7d0ff8b1a2
commit e9deb248f9
40 changed files with 298 additions and 79 deletions

View File

@@ -27,7 +27,7 @@ func (d *DesktopBuilder) processTrayIcons(assetDir string, options *Options) err
var err error
// Get all the tray icon filenames
trayIconDirectory := filepath.Join(options.ProjectData.AssetsDir, "tray")
trayIconDirectory := filepath.Join(options.ProjectData.BuildDir, "tray")
// If the directory doesn't exist, create it
if !fs.DirExists(trayIconDirectory) {
@@ -116,7 +116,7 @@ func (d *DesktopBuilder) processDialogIcons(assetDir string, options *Options) e
var err error
// Get all the dialog icon filenames
dialogIconDirectory := filepath.Join(options.ProjectData.AssetsDir, "dialog")
dialogIconDirectory := filepath.Join(options.ProjectData.BuildDir, "dialog")
var dialogIconFilenames []string
// If the directory does not exist, create it