fix: patch app-builder-lib NSIS uninstaller extract on Linux (UninstallerReader before Wine)
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
diff --git a/node_modules/app-builder-lib/out/targets/nsis/NsisTarget.js b/node_modules/app-builder-lib/out/targets/nsis/NsisTarget.js
|
||||
index 1e4ef94..5f64a59 100644
|
||||
--- a/node_modules/app-builder-lib/out/targets/nsis/NsisTarget.js
|
||||
+++ b/node_modules/app-builder-lib/out/targets/nsis/NsisTarget.js
|
||||
@@ -367,7 +367,12 @@ class NsisTarget extends core_1.Target {
|
||||
}
|
||||
}
|
||||
else {
|
||||
- await (0, wine_1.execWine)(installerPath, null, [], { env: { __COMPAT_LAYER: "RunAsInvoker" } });
|
||||
+ try {
|
||||
+ await nsisUtil_1.UninstallerReader.exec(installerPath, uninstallerPath);
|
||||
+ }
|
||||
+ catch (_error) {
|
||||
+ await (0, wine_1.execWine)(installerPath, null, [], { env: { __COMPAT_LAYER: "RunAsInvoker" } });
|
||||
+ }
|
||||
}
|
||||
await packager.signIf(uninstallerPath);
|
||||
delete defines.BUILD_UNINSTALLER;
|
||||
Reference in New Issue
Block a user