Build app for Windows in CI

This commit is contained in:
Samuel Elliott 2022-07-01 22:33:02 +01:00
parent 21f5f095a0
commit 1da4f463f3
No known key found for this signature in database
GPG Key ID: 8420C7CDE43DC4D6

View File

@ -32,6 +32,32 @@ build:
- app/win-unpacked/**/*
- app/linux-unpacked/**/*
build-windows:
stage: build
image: electronuserland/builder:wine
script:
- npx tsc
# Uses CI_COMMIT_TAG
- NODE_ENV=production npx rollup --config
- node bin/nxapi.js util validate-discord-titles
- "node -e \"fs.writeFileSync('package.json', JSON.stringify((json => {json.__nxapi_release = process.env.CI_COMMIT_TAG; return json;})(JSON.parse(fs.readFileSync('package.json', 'utf-8'))), null, 4) + '\\n', 'utf-8')\""
- npx electron-builder build --win nsis --publish never
- mv dist/app/package app
artifacts:
paths:
- app
exclude:
- app/mac/**/*
- app/win-unpacked/**/*
- app/linux-unpacked/**/*
cache:
paths:
- node_modules/
policy: pull
publish-npm:
stage: deploy
script: