From 3ff9c09af58d65f1233b9bc16940a51190c6e153 Mon Sep 17 00:00:00 2001 From: majakomel Date: Tue, 30 Jul 2024 12:27:03 +0200 Subject: [PATCH] Remove code signing step from download-cli --- package.json | 3 ++- scripts/download-probe-cli.js | 14 +------------- 2 files changed, 3 insertions(+), 14 deletions(-) diff --git a/package.json b/package.json index 17ce7174..5aab4b24 100644 --- a/package.json +++ b/package.json @@ -18,7 +18,8 @@ "download": "yarn run download:tor && yarn run download:probe-cli", "download:tor": "node scripts/download-tor.js", "download:probe-cli": "node scripts/download-probe-cli.js", - "pack": "yarn run build:clean && electron-builder --win --mac --linux", + "pack": "yarn run build:clean && electron-builder --mac --linux -p never && electron-builder --dir --win -p never", + "packWin": "electron-builder --prepackaged ./dist/win-arm64-unpacked --win", "pack:win": "yarn run build:clean && electron-builder --win --x64", "pack:mac": "yarn run build:clean && electron-builder --mac", "pack:linux": "yarn run build:clean && electron-builder --linux", diff --git a/scripts/download-probe-cli.js b/scripts/download-probe-cli.js index 44cf95b1..e190778f 100644 --- a/scripts/download-probe-cli.js +++ b/scripts/download-probe-cli.js @@ -26,19 +26,7 @@ const download = () => { } osarch = osarch.replace('-', '_') ensureDirSync(`${dstDir}/${osarch}`) - if (osarch === 'windows_amd64') { - execSync( - `cp ${dstDir}/${versionedFilename} ${dstDir}/${osarch}/ooniprobe${extension}-unsigned` - ) - execSync( - `osslsigncode sign -pkcs12 ${process.env.WIN_CSC_LINK} -pass ${process.env.WIN_CSC_KEY_PASSWORD} -n "OONI Probe CLI" -i https://ooni.org/ -in ${dstDir}/${osarch}/ooniprobe${extension}-unsigned -out ${dstDir}/${osarch}/ooniprobe${extension}` - ) - execSync(`rm -rf ${dstDir}/${osarch}/ooniprobe${extension}-unsigned`) - } else { - execSync( - `cp ${dstDir}/${versionedFilename} ${dstDir}/${osarch}/ooniprobe${extension}` - ) - } + execSync(`cp ${dstDir}/${versionedFilename} ${dstDir}/${osarch}/ooniprobe${extension}`) execSync(`chmod +x ${dstDir}/${osarch}/ooniprobe${extension}`) } }