Fix chmodding
This commit is contained in:
		| @@ -3,4 +3,4 @@ | |||||||
|   Name = "EpochSilicon" |   Name = "EpochSilicon" | ||||||
|   ID = "com.burkey.epochsilicon" |   ID = "com.burkey.epochsilicon" | ||||||
|   Version = "1.0.1" |   Version = "1.0.1" | ||||||
|   Build = 15 |   Build = 19 | ||||||
|   | |||||||
							
								
								
									
										2
									
								
								Makefile
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								Makefile
									
									
									
									
									
								
							| @@ -20,7 +20,7 @@ build-release: | |||||||
| 	@rm -rf ./EpochSilicon.app | 	@rm -rf ./EpochSilicon.app | ||||||
| 	@echo "Building optimized release version..." | 	@echo "Building optimized release version..." | ||||||
| 	CGO_ENABLED=1 GOOS=darwin GOARCH=arm64 go build \ | 	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 \ | 		-trimpath \ | ||||||
| 		-tags=release \ | 		-tags=release \ | ||||||
| 		-o epochsilicon . | 		-o epochsilicon . | ||||||
|   | |||||||
| @@ -206,23 +206,14 @@ func PatchEpoch(myWindow fyne.Window, updateAllStatuses func()) { | |||||||
| 	paths.DownloadingPatches = true | 	paths.DownloadingPatches = true | ||||||
| 	log.Debug("Attempting to download Epoch patches...") | 	log.Debug("Attempting to download Epoch patches...") | ||||||
|  |  | ||||||
| 	// Ensure permissions on WoW directory is correct | 	// Ensure permissions on Data directory is correct | ||||||
| 	err := filepath.Walk(paths.EpochPath, func(path string, info os.FileInfo, err error) error { | 	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 { | 	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) | 		log.Error(msg) | ||||||
| 		dialog.ShowInformation("Error", msg, myWindow) | 		dialog.ShowInformation("Error", msg, myWindow) | ||||||
| 	} else { | 	} else { | ||||||
| 		log.Debug("Successfully set wow directory permissions") | 		log.Debug("Successfully set Data directory permissions") | ||||||
| 	} | 	} | ||||||
|  |  | ||||||
| 	go func() { | 	go func() { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user