From 5dd6e72b506de99e1251028fe3c13bf9f613e98f Mon Sep 17 00:00:00 2001 From: PiEgg Date: Thu, 6 Jan 2022 00:01:26 +0800 Subject: [PATCH] :bug: Fix: electron builder actions bug --- .github/workflows/main.yml | 10 +--------- .github/workflows/manually.yml | 10 +--------- appveyor.yml | 1 - vue.config.js | 16 +++++++++------- 4 files changed, 11 insertions(+), 26 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 21a02ce..b097cc5 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -48,16 +48,8 @@ jobs: yarn yarn global add xvfb-maybe - - name: Build & release app linux - if: matrix.os == 'ubuntu-latest' + - name: Build & release app run: | yarn release env: GH_TOKEN: ${{ secrets.GH_TOKEN }} - - name: Build & release app mac - if: matrix.os == 'macos-11' - run: | - yarn build --arm64 - yarn release - env: - GH_TOKEN: ${{ secrets.GH_TOKEN }} diff --git a/.github/workflows/manually.yml b/.github/workflows/manually.yml index 5d8a454..5f067e7 100644 --- a/.github/workflows/manually.yml +++ b/.github/workflows/manually.yml @@ -45,16 +45,8 @@ jobs: yarn yarn global add xvfb-maybe - - name: Build & release app linux - if: matrix.os == 'ubuntu-latest' + - name: Build & release app run: | yarn release env: GH_TOKEN: ${{ secrets.GH_TOKEN }} - - name: Build & release app mac - if: matrix.os == 'macos-11' - run: | - yarn build --arm64 - yarn release - env: - GH_TOKEN: ${{ secrets.GH_TOKEN }} diff --git a/appveyor.yml b/appveyor.yml index 835cfec..616611c 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -26,7 +26,6 @@ install: build_script: #- yarn test - - yarn build --win --ia32 - yarn release test: false diff --git a/vue.config.js b/vue.config.js index 32536f6..2bf1fd7 100644 --- a/vue.config.js +++ b/vue.config.js @@ -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' @@ -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' ] }] },