mirror of
https://github.com/eugeny/tabby
synced 2025-11-03 16:07:23 +00:00
Compare commits
7 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8b6184e4de | ||
|
|
c848cc6046 | ||
|
|
3b282f69a1 | ||
|
|
6ab27db2b0 | ||
|
|
91e3ac1aea | ||
|
|
5f5b6a9e75 | ||
|
|
dcc93fecc9 |
27
.github/workflows/build.yml
vendored
27
.github/workflows/build.yml
vendored
@@ -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}}
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user