Skip to content

Commit

Permalink
Remove code signing step from download-cli
Browse files Browse the repository at this point in the history
  • Loading branch information
majakomel committed Jul 30, 2024
1 parent 6f57893 commit 3ff9c09
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 14 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
14 changes: 1 addition & 13 deletions scripts/download-probe-cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}`)
}
}
Expand Down

0 comments on commit 3ff9c09

Please sign in to comment.