This commit is contained in:
khlam 2019-12-12 14:36:30 -08:00
parent da7f0b2211
commit e9d4dd3fd2

View File

@ -2,13 +2,13 @@ branches:
only: only:
- master - master
- dev - dev
skip_tags: true skip_tags: true
cache: cache:
- node_modules - node_modules
environment: environment:
matrix: matrix:
- nodejs_version: 8 - nodejs_version: 8
install: install:
- ps: $env:package_version = (Get-Content -Raw -Path package.json | ConvertFrom-Json).version - ps: $env:package_version = (Get-Content -Raw -Path package.json | ConvertFrom-Json).version
- ps: Install-Product node $env:nodejs_version - ps: Install-Product node $env:nodejs_version
- ps: If ($env:APPVEYOR_REPO_BRANCH -eq "master") { $env:toggle_prerelease="false"; $env:rel_type="stable"} Else {$env:toggle_prerelease="true"; $env:rel_type="nightly"} - ps: If ($env:APPVEYOR_REPO_BRANCH -eq "master") { $env:toggle_prerelease="false"; $env:rel_type="stable"} Else {$env:toggle_prerelease="true"; $env:rel_type="nightly"}
@ -16,19 +16,19 @@ branches:
- npm install -g npm@latest - npm install -g npm@latest
- set PATH=%APPDATA%\npm;%PATH% - set PATH=%APPDATA%\npm;%PATH%
- npm install - npm install
matrix: matrix:
fast_finish: true fast_finish: true
build_script: build_script:
- npm run package-win - npm run package-win
after_build: after_build:
- ps: 7z a DiscordSandbox-$env:package_version-$env:rel_type-win32x64.zip $env:APPVEYOR_BUILD_FOLDER\release\*.exe $env:APPVEYOR_BUILD_FOLDER\README.md $env:APPVEYOR_BUILD_FOLDER\LICENSE.md - ps: 7z a DiscordSandbox-$env:package_version-$env:rel_type-win32x64.zip $env:APPVEYOR_BUILD_FOLDER\release\*.exe $env:APPVEYOR_BUILD_FOLDER\README.md $env:APPVEYOR_BUILD_FOLDER\LICENSE.md
artifacts: artifacts:
- path: DiscordSandbox-$(package_version)-$(rel_type)-win32x64.zip - path: DiscordSandbox-$(package_version)-$(rel_type)-win32x64.zip
name: DiscordSandbox-$(package_version)-$(rel_type)-win32x64 name: DiscordSandbox-$(package_version)-$(rel_type)-win32x64
shallow_clone: true shallow_clone: true
clone_depth: 1 clone_depth: 1
deploy: deploy:
- provider: GitHub - provider: GitHub
release: $(package_version)-$(rel_type) release: $(package_version)-$(rel_type)
prerelease: $(toggle_prerelease) prerelease: $(toggle_prerelease)
description: Automatically built from branch `$(APPVEYOR_REPO_BRANCH)`, AppVeyor build `$(APPVEYOR_BUILD_VERSION)`</br></br>$(APPVEYOR_REPO_COMMIT_MESSAGE) description: Automatically built from branch `$(APPVEYOR_REPO_BRANCH)`, AppVeyor build `$(APPVEYOR_BUILD_VERSION)`</br></br>$(APPVEYOR_REPO_COMMIT_MESSAGE)