From 1c4611896a859bb0c1bd8395300cd7dbe41547ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maur=C3=ADcio=20Szabo?= Date: Tue, 4 Apr 2023 00:44:28 -0300 Subject: [PATCH] Trying again a Windows Portable ZIP --- integration/helpers.js | 2 +- script/electron-builder.js | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/integration/helpers.js b/integration/helpers.js index 7d1bf6ce3..7e04e1a98 100644 --- a/integration/helpers.js +++ b/integration/helpers.js @@ -16,7 +16,7 @@ async function openAtom(profilePath, videoName) { } if(env.BINARY_NAME) { config.executablePath = env.BINARY_NAME - config.args = [] + config.args = ["--no-sandbox"] } if(process.env.CI) { diff --git a/script/electron-builder.js b/script/electron-builder.js index 9a195e1db..a5edd1b80 100644 --- a/script/electron-builder.js +++ b/script/electron-builder.js @@ -224,7 +224,8 @@ let options = { }, // Windows Portable Config portable: { - // useZip: true + useZip: true, + unpackDirName: false }, // Windows NSIS Configuration "nsis": { @@ -268,7 +269,8 @@ async function main() { options.extraMetadata = generateMetadata(JSON.parse(package)) builder.build({ //targets: Platform.LINUX.createTarget(), - config: options + config: options, + verbose: true }).then((result) => { console.log("Built binaries") fs.mkdir('binaries').catch(() => "")