Skip to content

Commit

Permalink
🐛 Fix: electron builder actions bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Molunerfinn committed Jan 5, 2022
1 parent 5cb8151 commit 5dd6e72
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 26 deletions.
10 changes: 1 addition & 9 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,16 +48,8 @@ jobs:
yarn
yarn global add xvfb-maybe
- name: Build & release app linux
if: matrix.os == 'ubuntu-latest'
run: |
yarn release
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
- name: Build & release app mac
if: matrix.os == 'macos-11'
- name: Build & release app
run: |
yarn build --arm64
yarn release
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
10 changes: 1 addition & 9 deletions .github/workflows/manually.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,16 +45,8 @@ jobs:
yarn
yarn global add xvfb-maybe
- name: Build & release app linux
if: matrix.os == 'ubuntu-latest'
run: |
yarn release
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
- name: Build & release app mac
if: matrix.os == 'macos-11'
- name: Build & release app
run: |
yarn build --arm64
yarn release
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
1 change: 0 additions & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ install:

build_script:
#- yarn test
- yarn build --win --ia32
- yarn release

test: false
16 changes: 9 additions & 7 deletions vue.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@ function resolve (dir) {
return path.join(__dirname, dir)
}

const arch = process.argv.includes('--ia32') ? 'ia32' : 'x64'
const macArch = process.argv.includes('--arm64') ? 'arm64' : 'x64'

const config = {
configureWebpack: {
devtool: 'nosources-source-map'
Expand Down Expand Up @@ -69,18 +66,23 @@ const config = {
},
target: [{
target: 'dmg',
arch: macArch
arch: [
'x64',
'arm64'
]
}],
artifactName: `PicGo-\${version}-${macArch}.dmg`
// eslint-disable-next-line no-template-curly-in-string
artifactName: 'PicGo-${version}-${arch}.dmg'
},
win: {
icon: 'build/icons/icon.ico',
// eslint-disable-next-line no-template-curly-in-string
artifactName: `PicGo Setup \${version}-${arch}.exe`,
artifactName: 'PicGo Setup ${version}-${arch}.exe',
target: [{
target: 'nsis',
arch: [
arch
'x64',
'ia32'
]
}]
},
Expand Down

0 comments on commit 5dd6e72

Please sign in to comment.