build fixes

This commit is contained in:
Eugene Pankov 2022-10-26 09:45:12 +02:00
parent 0a1a39ebf4
commit 83d8920883
No known key found for this signature in database
GPG Key ID: 5896FCBBDD1CF4F4
3 changed files with 5 additions and 0 deletions

View File

@ -74,6 +74,9 @@ jobs:
- run: sed -i '' 's/updateInfo = await/\/\/updateInfo = await/g' node_modules/app-builder-lib/out/targets/ArchiveTarget.js
# Work around electron-builder beta bug
- run: ln -s ../../node_modules/electron app/node_modules
- name: Build and sign packages
run: scripts/build-macos.js
if: github.repository == 'Eugeny/tabby' && github.event_name == 'push' && (github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags'))

View File

@ -16,6 +16,7 @@ if (process.env.GITHUB_HEAD_REF) {
builder({
dir: true,
mac: ['pkg', 'zip'],
x64: process.env.ARCH === 'x86_64',
arm64: process.env.ARCH === 'arm64',
config: {
extraMetadata: {

View File

@ -28,6 +28,7 @@ vars.builtinPlugins.forEach(plugin => {
electronVersion: vars.electronVersion,
arch: process.env.ARCH ?? process.arch,
force: true,
useCache: false,
})
}
sh.cd('..')