fix(macos): patch electron-sign for spaces [skip ci]

This commit is contained in:
Baptiste Augrain
2024-06-01 22:56:59 +02:00
parent c703bf5868
commit 8e077dc483
2 changed files with 6 additions and 60 deletions

View File

@@ -1,10 +1,12 @@
#!/usr/bin/env bash
# shellcheck disable=SC1091
# shellcheck disable=SC1091,2016
set -e
APP_NAME_LC="$( echo "${APP_NAME}" | awk '{print tolower($0)}' )"
. ./utils.sh
npm install -g checksum
sum_file() {
@@ -19,6 +21,9 @@ mkdir -p assets
if [[ "${OS_NAME}" == "osx" ]]; then
if [[ "${CI_BUILD}" != "no" ]]; then
# By default, electron-osx-sign don't support app name with spaces ("VSCodium - Insiders")
replace 's|opts.app|"${opts.app}"|' vscode/build/node_modules/electron-osx-sign/sign.js
CERTIFICATE_P12="${APP_NAME}.p12"
KEYCHAIN="${RUNNER_TEMP}/buildagent.keychain"
AGENT_TEMPDIRECTORY="${RUNNER_TEMP}"