diff --git a/appveyor.yml b/appveyor.yml index 035a435..029d033 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -6,19 +6,15 @@ image: Visual Studio 2017 init: - ps: >- git config --global core.autocrlf input - git config --global credential.helper store install: - ps: >- Install-Product node 7 x64 - $env:package_version = (Get-Content -Raw -Path package.json | ConvertFrom-Json).version - Update-AppveyorBuild -Version "$env:package_version-$env:APPVEYOR_BUILD_NUMBER" build_script: - cmd: >- npm install - npm run dist test: off artifacts: @@ -27,6 +23,7 @@ artifacts: type: WebDeployPackage deploy: - provider: GitHub + release: v$(package_version) auth_token: secure: qR6cJCEAjzYYgJKkpa9aJmpTgX11HlSZTrDWRg38icikDeE7hOPCp+K3VqxgZ9ex - force_update: true \ No newline at end of file + force_update: true diff --git a/index.js b/index.js index f2c7b4d..c9413e3 100644 --- a/index.js +++ b/index.js @@ -103,7 +103,7 @@ autoUpdater.on('checking-for-update', () => { }) }) autoUpdater.on('update-available', (ev, info) => { - var string = 'Update available.Installed version: ' + require('./package').version + " / Available version: " + ev.version + var string = 'Update available.Installed version: ' + require('./package').version + " / Available version: " + ev.version + ". Starting Download...\n"; var output = { 'command': 'autoupdate', 'response': string @@ -116,7 +116,7 @@ autoUpdater.on('update-available', (ev, info) => { }) }) autoUpdater.on('update-not-available', (ev, info) => { - var string = 'Update not available. Installed version: ' + require('./package').version + " / Available version: " + ev.version + ". Starting Download...\n"; + var string = 'Update not available. Installed version: ' + require('./package').version + " / Available version: " + ev.version + ".\n"; var output = { 'command': 'autoupdate', 'response': string