diff --git a/appveyor.yml b/appveyor.yml index fa701102..ee103ae4 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -26,6 +26,7 @@ install: build_script: #- yarn test - - npm run release + - yarn build --win --ia32 + - yarn release test: off diff --git a/vue.config.js b/vue.config.js index 0811a030..d8d782db 100644 --- a/vue.config.js +++ b/vue.config.js @@ -3,6 +3,10 @@ function resolve (dir) { return path.join(__dirname, dir) } +console.log(process.argv) + +const arch = process.argv.includes('--ia32') ? 'ia32' : 'x64' + const config = { configureWebpack: { devtool: 'nosources-source-map' @@ -66,11 +70,12 @@ const config = { }, win: { icon: 'build/icons/icon.ico', + // eslint-disable-next-line no-template-curly-in-string + artifactName: `PicGo Setup \${version}-${arch}.exe`, target: [{ - targe: 'nsis', + target: 'nsis', arch: [ - 'x64', - 'ia32' + arch ] }] },