- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH # Run this job when when commits are pushed to the default branch
script:
- echo "Release $VERSION"
- - release-cli create --name "Release $VERSION" --tag-name v$VERSION --description Release $CI_COMMIT_TITLE --ref $CI_COMMIT_SHA --assets-link '{"name":${APPNAME},"url":"${PACKAGE_REGISTRY_URL}/${PACKAGE}"}'
+ - release-cli create --name "Release $VERSION" --tag-name v$VERSION --description "Release $CI_COMMIT_TITLE" --ref $CI_COMMIT_SHA --assets-link '{"name":${APPNAME},"url":"${PACKAGE_REGISTRY_URL}/${PACKAGE}"}'
type: 'info',
buttons: ['Restart', 'Later'],
title: 'Application Update',
- message: releaseName,
- detail: 'A new version has been downloaded. Restart to update.'
+ message: 'A new version has been downloaded. Restart to update.'
}
autoUpdater.on('update-downloaded', () => {
- autoUpdater.quitAndInstall()
+ dialog.showMessageBox(dialogConfig).then((returnValue) => {
+ if (returnValue.response === 0) autoUpdater.quitAndInstall()
+ })
})
autoUpdater.checkForUpdatesAndNotify()