Upgrade to Electron 11
This commit is contained in:
parent
62ce308fe1
commit
c8b551edab
10 changed files with 435 additions and 274 deletions
|
@ -1,41 +0,0 @@
|
|||
diff --git a/node_modules/app-builder-lib/out/targets/ArchiveTarget.js b/node_modules/app-builder-lib/out/targets/ArchiveTarget.js
|
||||
index 72a59df..0a9a8b8 100644
|
||||
--- a/node_modules/app-builder-lib/out/targets/ArchiveTarget.js
|
||||
+++ b/node_modules/app-builder-lib/out/targets/ArchiveTarget.js
|
||||
@@ -118,10 +118,6 @@ class ArchiveTarget extends _core().Target {
|
||||
withoutDir
|
||||
};
|
||||
await (0, _archive().archive)(format, artifactPath, dirToArchive, archiveOptions);
|
||||
-
|
||||
- if (this.isWriteUpdateInfo && format === "zip") {
|
||||
- updateInfo = await (0, _differentialUpdateInfoBuilder().appendBlockmap)(artifactPath);
|
||||
- }
|
||||
}
|
||||
|
||||
await packager.info.callArtifactBuildCompleted({
|
||||
diff --git a/node_modules/app-builder-lib/out/targets/LinuxTargetHelper.js b/node_modules/app-builder-lib/out/targets/LinuxTargetHelper.js
|
||||
index 6e674b9..8e5be4f 100644
|
||||
--- a/node_modules/app-builder-lib/out/targets/LinuxTargetHelper.js
|
||||
+++ b/node_modules/app-builder-lib/out/targets/LinuxTargetHelper.js
|
||||
@@ -135,7 +135,7 @@ class LinuxTargetHelper {
|
||||
exec += executableArgs.join(" ");
|
||||
}
|
||||
|
||||
- exec += " %U";
|
||||
+ exec += " --no-sandbox %U";
|
||||
}
|
||||
|
||||
const desktopMeta = Object.assign(Object.assign({
|
||||
diff --git a/node_modules/app-builder-lib/templates/linux/after-install.tpl b/node_modules/app-builder-lib/templates/linux/after-install.tpl
|
||||
index 16eab30..0077182 100644
|
||||
--- a/node_modules/app-builder-lib/templates/linux/after-install.tpl
|
||||
+++ b/node_modules/app-builder-lib/templates/linux/after-install.tpl
|
||||
@@ -3,8 +3,5 @@
|
||||
# Link to the binary
|
||||
ln -sf '/opt/${productFilename}/${executable}' '/usr/bin/${executable}'
|
||||
|
||||
-# SUID chrome-sandbox for Electron 5+
|
||||
-chmod 4755 '/opt/${productFilename}/chrome-sandbox' || true
|
||||
-
|
||||
update-mime-database /usr/share/mime || true
|
||||
update-desktop-database /usr/share/applications || true
|
26
patches/app-builder-lib+22.9.1.patch
Normal file
26
patches/app-builder-lib+22.9.1.patch
Normal file
|
@ -0,0 +1,26 @@
|
|||
diff --git a/node_modules/app-builder-lib/out/targets/LinuxTargetHelper.js b/node_modules/app-builder-lib/out/targets/LinuxTargetHelper.js
|
||||
index 1ff7e89..e1b188c 100644
|
||||
--- a/node_modules/app-builder-lib/out/targets/LinuxTargetHelper.js
|
||||
+++ b/node_modules/app-builder-lib/out/targets/LinuxTargetHelper.js
|
||||
@@ -135,7 +135,7 @@ class LinuxTargetHelper {
|
||||
exec += executableArgs.join(" ");
|
||||
}
|
||||
|
||||
- exec += " %U";
|
||||
+ exec += " --no-sandbox %U";
|
||||
}
|
||||
|
||||
const desktopMeta = {
|
||||
diff --git a/node_modules/app-builder-lib/templates/linux/after-install.tpl b/node_modules/app-builder-lib/templates/linux/after-install.tpl
|
||||
index 16eab30..0077182 100644
|
||||
--- a/node_modules/app-builder-lib/templates/linux/after-install.tpl
|
||||
+++ b/node_modules/app-builder-lib/templates/linux/after-install.tpl
|
||||
@@ -3,8 +3,5 @@
|
||||
# Link to the binary
|
||||
ln -sf '/opt/${productFilename}/${executable}' '/usr/bin/${executable}'
|
||||
|
||||
-# SUID chrome-sandbox for Electron 5+
|
||||
-chmod 4755 '/opt/${productFilename}/chrome-sandbox' || true
|
||||
-
|
||||
update-mime-database /usr/share/mime || true
|
||||
update-desktop-database /usr/share/applications || true
|
Loading…
Add table
Add a link
Reference in a new issue