This commit is contained in:
riqo 2021-04-12 08:26:23 -05:00
commit fa34bf989f
2 changed files with 16 additions and 1 deletions

15
.gitlab.ci.yml Normal file
View file

@ -0,0 +1,15 @@
variables:
VERSION_ID: '1.0:$CI_PIPELINE_ID'
stages:
- build
build:
image: crimata/electron-builder-mac
stage: build
artifacts:
paths:
- $CI_PROJECT_DIR/dist/*.*
script:
- sed "s/0.0.0/${VERSION_ID}/g" package.json > _package.json && mv _package.json package.json
- yarn && yarn electron:build

View file

@ -58,7 +58,7 @@ export function initApp(dev: boolean): void {
if (dev) {
process.on("SIGTERM", () => {
app.quit();
});
});
}
}