chore: add running windows desktop signing on windows hosted machine (#2615)

* chore: add running windows desktop signing on windows hosted machine

* check if app version is set properly

* check env var setting

* check 3

* fix version setting

* temprorary remove the windows signing

* fix: restore electron sign properties

* digicert signing

* fix keypair name

* fix set output steps

* fix: reusable workflow
This commit is contained in:
Karol Sójko
2023-11-21 11:03:14 +01:00
committed by GitHub
parent 64b78dc1c9
commit 88707b486e
3 changed files with 61 additions and 82 deletions

View File

@@ -1,16 +1,7 @@
exports.default = async function (configuration) {
require('child_process').execSync(
`java \
-jar jsign/jsign-4.1.jar \
--keystore jsign/eToken.cfg \
--storepass "${process.env.WINDOWS_TOKEN_PASSWORD}" \
--storetype PKCS11 \
--tsaurl http://timestamp.digicert.com \
--alias "${process.env.WINDOWS_TOKEN_ALIAS}" \
"${configuration.path}"
`,
{
stdio: 'inherit',
},
)
}
exports.default = async function(configuration) {
if(configuration.path){
require("child_process").execSync(
`smctl sign --keypair-alias=snkeypair --input "${String(configuration.path)}"`
);
}
};