Fix chmodding
This commit is contained in:
@@ -3,4 +3,4 @@
|
||||
Name = "EpochSilicon"
|
||||
ID = "com.burkey.epochsilicon"
|
||||
Version = "1.0.1"
|
||||
Build = 15
|
||||
Build = 19
|
||||
|
2
Makefile
2
Makefile
@@ -20,7 +20,7 @@ build-release:
|
||||
@rm -rf ./EpochSilicon.app
|
||||
@echo "Building optimized release version..."
|
||||
CGO_ENABLED=1 GOOS=darwin GOARCH=arm64 go build \
|
||||
-ldflags="-s -w -X main.appVersion=$$(grep Version FyneApp.toml | cut -d'"' -f2)" \
|
||||
-ldflags="-s -w" \
|
||||
-trimpath \
|
||||
-tags=release \
|
||||
-o epochsilicon .
|
||||
|
@@ -206,23 +206,14 @@ func PatchEpoch(myWindow fyne.Window, updateAllStatuses func()) {
|
||||
paths.DownloadingPatches = true
|
||||
log.Debug("Attempting to download Epoch patches...")
|
||||
|
||||
// Ensure permissions on WoW directory is correct
|
||||
err := filepath.Walk(paths.EpochPath, func(path string, info os.FileInfo, err error) error {
|
||||
// Ensure permissions on Data directory is correct
|
||||
err := os.Chmod(filepath.Join(paths.EpochPath, "Data"), 0755)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
err = os.Chmod(path, 0755)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
})
|
||||
if err != nil {
|
||||
msg := fmt.Sprintf("Failed to set wow directory permissions: %v", err)
|
||||
msg := fmt.Sprintf("Failed to set Data directory permissions: %v", err)
|
||||
log.Error(msg)
|
||||
dialog.ShowInformation("Error", msg, myWindow)
|
||||
} else {
|
||||
log.Debug("Successfully set wow directory permissions")
|
||||
log.Debug("Successfully set Data directory permissions")
|
||||
}
|
||||
|
||||
go func() {
|
||||
|
Reference in New Issue
Block a user