diff --git a/gotron_methods.go b/gotron_methods.go index 37537c6..8793b5d 100644 --- a/gotron_methods.go +++ b/gotron_methods.go @@ -23,6 +23,7 @@ import ( const ( templateApplicationDir = "templates/app" + gotronFileMode = os.FileMode(0755) ) // Start starts an Instance of gotronbrowserwindow @@ -123,6 +124,12 @@ func (gbw *BrowserWindow) copyElectronApplication(forceInstall bool) (err error) errz.Fatal(err) } + err = os.Chmod(gbw.AppDirectory, gotronFileMode) + errz.Fatal(err) + assetsDir := filepath.Join(gbw.AppDirectory, "assets") + err = os.Chmod(assetsDir, gotronFileMode) + errz.Fatal(err) + // If no UI folder is set use default ui files if gbw.UIFolder == "" { return