Skip to content

Commit

Permalink
Change permission of .gotron folders
Browse files Browse the repository at this point in the history
  • Loading branch information
puengel committed Mar 6, 2019
1 parent 1cdf49a commit 47f3cb2
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions gotron_methods.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import (

const (
templateApplicationDir = "templates/app"
gotronFileMode = os.FileMode(0755)
)

// Start starts an Instance of gotronbrowserwindow
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 47f3cb2

Please sign in to comment.