mirror of
https://github.com/WowUp/WowUp.git
synced 2026-04-22 23:09:38 -04:00
Fix #835 App should now roll back an addon update if unzipping fails
This commit is contained in:
@@ -617,9 +617,9 @@ export class AddonService {
|
||||
});
|
||||
|
||||
const unzipPath = path.join(this._wowUpService.applicationDownloadsFolderPath, uuidv4());
|
||||
unzippedDirectory = await this._fileService.unzipFile(downloadedFilePath, unzipPath);
|
||||
|
||||
try {
|
||||
unzippedDirectory = await this._fileService.unzipFile(downloadedFilePath, unzipPath);
|
||||
await this.installUnzippedDirectory(unzippedDirectory, installation);
|
||||
} catch (err) {
|
||||
console.error(err);
|
||||
|
||||
Reference in New Issue
Block a user