| @@ -3,4 +3,4 @@ | ||||
|   Name = "EpochSilicon" | ||||
|   ID = "com.burkey.epochsilicon" | ||||
|   Version = "1.0.0" | ||||
|   Build = 14 | ||||
|   Build = 15 | ||||
|   | ||||
| @@ -205,6 +205,26 @@ func PatchEpoch(myWindow fyne.Window, updateAllStatuses func()) { | ||||
| 	dialog.ShowInformation("Downloading patches", "Downloading patches for Project Epoch, this will take some time. Please wait until the status changes to \"Patched\"", myWindow) | ||||
| 	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 | ||||
| 	}) | ||||
| 	if err != nil { | ||||
| 		msg := fmt.Sprintf("Failed to set wow directory permissions: %v", err) | ||||
| 		log.Error(msg) | ||||
| 		dialog.ShowInformation("Error", msg, myWindow) | ||||
| 	} else { | ||||
| 		log.Debug("Successfully set wow directory permissions") | ||||
| 	} | ||||
|  | ||||
| 	go func() { | ||||
| 		stats := epoch.Update(paths.EpochPath, true, true, false) | ||||
| 		if stats.Error != nil { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user