Compare commits

...

7 Commits
master ... tmp

Author SHA1 Message Date
Eugene
8b6184e4de Update build.yml
Some checks failed
Package-Build / Lint (push) Has been cancelled
Package-Build / Windows-Build (arm64, aarch64-pc-windows-msvc) (push) Has been cancelled
Package-Build / Windows-Build (x64, x86_64-pc-windows-msvc) (push) Has been cancelled
Docs / build (push) Has been cancelled
Package-Build / macOS-Build (arm64, aarch64-apple-darwin) (push) Has been cancelled
Package-Build / macOS-Build (x86_64, x86_64-apple-darwin) (push) Has been cancelled
Package-Build / Linux-Build (amd64, x64, ubuntu-24.04, x86_64-unknown-linux-gnu) (push) Has been cancelled
Package-Build / Linux-Build (arm64, arm64, ubuntu-24.04-arm, aarch64-unknown-linux-gnu, aarch64-linux-gnu-) (push) Has been cancelled
Package-Build / Linux-Build (armhf, arm, ubuntu-24.04, arm-unknown-linux-gnueabihf, arm-linux-gnueabihf-) (push) Has been cancelled
2025-10-16 01:46:47 +02:00
Eugene
c848cc6046 . 2025-10-16 01:42:51 +02:00
Eugene
3b282f69a1 . 2025-10-16 01:36:18 +02:00
Eugene
6ab27db2b0 . 2025-10-16 01:27:00 +02:00
Eugene
91e3ac1aea Update build.yml 2025-10-16 01:12:09 +02:00
Eugene
5f5b6a9e75 Update build-windows.mjs 2025-10-16 00:42:35 +02:00
Eugene
dcc93fecc9 log signing errors 2025-10-16 00:42:08 +02:00
2 changed files with 25 additions and 14 deletions

View File

@@ -299,7 +299,7 @@ jobs:
Windows-Build:
runs-on: windows-latest
needs: Lint
# needs: Lint
strategy:
matrix:
include:
@@ -320,8 +320,10 @@ jobs:
fetch-depth: 0
- name: Code signing with Software Trust Manager
uses: digicert/ssm-code-signing@v1.0.0
uses: digicert/ssm-code-signing@v1.1.1
if: github.event_name == 'push' && (startsWith(github.ref, 'refs/tags'))
env:
FORCE_DOWNLOAD_TOOLS: 'true'
- name: Installing Node
uses: actions/setup-node@v4.4.0
@@ -336,15 +338,15 @@ jobs:
npm install --global node-gyp@10.2.0
npm prefix -g | % {npm config set node_gyp "$_\node_modules\node-gyp\bin\node-gyp.js"}
- name: Build
shell: powershell
run: |
npm i -g yar node-gyp
yarn --network-timeout 1000000
yarn run build
node scripts/prepackage-plugins.mjs
env:
ARCH: ${{matrix.arch}}
# - name: Build
# shell: powershell
# run: |
# npm i -g yar node-gyp
# yarn --network-timeout 1000000
# yarn run build
# node scripts/prepackage-plugins.mjs
# env:
# ARCH: ${{matrix.arch}}
- name: Decode certificate
if: github.event_name == 'push' && (startsWith(github.ref, 'refs/tags'))
@@ -372,6 +374,9 @@ jobs:
# not used but necessary for electron-builder to run
$env:WIN_CSC_LINK=$env:SM_CLIENT_CERT_FILE
$env:WIN_CSC_KEY_PASSWORD=$env:SM_CLIENT_CERT_PASSWORD
smctl sign --keypair-alias=key_1502388686 --input extras\uac.exe
node scripts/build-windows.mjs
env:
ARCH: ${{matrix.arch}}

View File

@@ -36,15 +36,21 @@ builder({
console.log('Signing', configuration)
if (configuration.path) {
try {
const out = execSync(
`smctl sign --keypair-alias=${keypair} --input "${String(configuration.path)}"`
)
const cmd = `smctl sign --keypair-alias=${keypair} --input "${String(configuration.path)}"`
console.log(cmd)
const out = execSync(cmd)
if (out.toString().includes('FAILED')) {
throw new Error(out.toString())
}
console.log(out.toString())
} catch (e) {
console.error(`Failed to sign ${configuration.path}`)
if (e.stdout) {
console.error('stdout:', e.stdout.toString())
}
if (e.stderr) {
console.error('stderr:', e.stderr.toString())
}
console.error(e)
process.exit(1)
}