Skip to content

Commit

Permalink
build fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Eugeny committed Oct 26, 2022
1 parent b5e39dd commit 03823ba
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'))
Expand Down
1 change: 1 addition & 0 deletions scripts/build-macos.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down
1 change: 1 addition & 0 deletions scripts/prepackage-plugins.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ vars.builtinPlugins.forEach(plugin => {
electronVersion: vars.electronVersion,
arch: process.env.ARCH ?? process.arch,
force: true,
useCache: false,
})
}
sh.cd('..')
Expand Down

0 comments on commit 03823ba

Please sign in to comment.