build fixes

This commit is contained in:
Eugene Pankov 2022-10-26 09:45:12 +02:00
parent b5e39dd42f
commit 03823bac34
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 - 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 - name: Build and sign packages
run: scripts/build-macos.js run: scripts/build-macos.js
if: github.repository == 'Eugeny/tabby' && github.event_name == 'push' && (github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags')) 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({ builder({
dir: true, dir: true,
mac: ['pkg', 'zip'], mac: ['pkg', 'zip'],
x64: process.env.ARCH === 'x86_64',
arm64: process.env.ARCH === 'arm64', arm64: process.env.ARCH === 'arm64',
config: { config: {
extraMetadata: { extraMetadata: {

View File

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