diff --git a/FyneApp.toml b/FyneApp.toml index 6f843d7..843b702 100644 --- a/FyneApp.toml +++ b/FyneApp.toml @@ -3,4 +3,4 @@ Name = "EpochSilicon" ID = "com.burkey.epochsilicon" Version = "1.0.1" - Build = 15 + Build = 19 diff --git a/Makefile b/Makefile index 860028c..69075ab 100644 --- a/Makefile +++ b/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 . diff --git a/pkg/patching/patching.go b/pkg/patching/patching.go index 943a6e4..0814a84 100644 --- a/pkg/patching/patching.go +++ b/pkg/patching/patching.go @@ -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 { - if err != nil { - return err - } - err = os.Chmod(path, 0755) - if err != nil { - return err - } - return nil - }) + // Ensure permissions on Data directory is correct + err := os.Chmod(filepath.Join(paths.EpochPath, "Data"), 0755) 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() {