mirror of
https://gitlab.com/ryzen-controller-team/ryzen-controller.git
synced 2024-12-22 10:03:28 +07:00
Updated win32-installer jobs.
This commit is contained in:
parent
eecb8b84c4
commit
068aeff384
@ -123,9 +123,28 @@ win32-installer:
|
|||||||
- master
|
- master
|
||||||
stage: installer
|
stage: installer
|
||||||
tags: [ docker ]
|
tags: [ docker ]
|
||||||
image: electronuserland/builder:wine-mono
|
image: docker:stable
|
||||||
|
services:
|
||||||
|
- docker:stable-dind
|
||||||
|
variables:
|
||||||
|
DOCKER_DRIVER: overlay2
|
||||||
script:
|
script:
|
||||||
- npm run-script build-win32
|
- |
|
||||||
|
if ! docker info &>/dev/null; then
|
||||||
|
if [ -z "$DOCKER_HOST" -a "$KUBERNETES_PORT" ]; then
|
||||||
|
export DOCKER_HOST='tcp://localhost:2375'
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
- mkdir installer-builds
|
||||||
|
- chmod 777 installer-builds
|
||||||
|
- docker run
|
||||||
|
--env ELECTRON_CACHE="/root/.cache/electron"
|
||||||
|
--env ELECTRON_BUILDER_CACHE="/root/.cache/electron-builder"
|
||||||
|
-v ${PWD}:/project
|
||||||
|
-v ~/.cache/electron:/root/.cache/electron
|
||||||
|
-v ~/.cache/electron-builder:/root/.cache/electron-builder
|
||||||
|
electronuserland/builder:wine-mono /bin/bash -c "npm run-script build-win32"
|
||||||
|
- ls installer-builds/RyzenControllerInstaller.exe
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
- installer-builds/
|
- installer-builds/
|
||||||
|
@ -1,15 +1,24 @@
|
|||||||
const createWindowsInstaller = require('electron-winstaller').createWindowsInstaller
|
const createWindowsInstaller = require('electron-winstaller').createWindowsInstaller
|
||||||
const path = require('path')
|
const path = require('path')
|
||||||
|
|
||||||
|
var keepAlive = false;
|
||||||
|
|
||||||
getInstallerConfig()
|
getInstallerConfig()
|
||||||
.then(createWindowsInstaller)
|
.then(createWindowsInstaller)
|
||||||
.catch((error) => {
|
.catch((error) => {
|
||||||
console.error(error.message || error)
|
console.error(error.message || error)
|
||||||
process.exit(1)
|
process.exit(1)
|
||||||
})
|
})
|
||||||
|
.then(function(){
|
||||||
|
clearInterval(keepAlive);
|
||||||
|
console.log('Installer created.');
|
||||||
|
})
|
||||||
|
|
||||||
function getInstallerConfig () {
|
function getInstallerConfig () {
|
||||||
console.log('creating windows installer')
|
console.log('creating windows installer')
|
||||||
|
keepAlive = setInterval(function(){
|
||||||
|
console.log(`I'm alive ...`);
|
||||||
|
}, 10000);
|
||||||
const rootPath = path.join('./')
|
const rootPath = path.join('./')
|
||||||
|
|
||||||
return Promise.resolve({
|
return Promise.resolve({
|
||||||
|
Loading…
Reference in New Issue
Block a user