mirror of
https://github.com/bitwarden/browser
synced 2024-12-28 19:02:42 +01:00
cleanup variables
This commit is contained in:
parent
43b051cc37
commit
6a65901b87
29
appveyor.yml
29
appveyor.yml
@ -18,10 +18,11 @@ init:
|
|||||||
|
|
||||||
install:
|
install:
|
||||||
- ps: |
|
- ps: |
|
||||||
$env:package_version = (Get-Content -Raw -Path .\src\package.json | ConvertFrom-Json).version
|
$packageVersion = (Get-Content -Raw -Path .\src\package.json | ConvertFrom-Json).version
|
||||||
$env:prod_deploy=$false
|
$prodDeploy = $false
|
||||||
if($env:APPVEYOR_REPO_TAG_NAME -and $env:APPVEYOR_RE_BUILD) {
|
if($env:APPVEYOR_REPO_TAG -eq "true" -and $env:APPVEYOR_RE_BUILD -eq "True") {
|
||||||
$env:prod_deploy=$true
|
$prodDeploy = $true
|
||||||
|
echo "This is a production deployment."
|
||||||
}
|
}
|
||||||
if($isWindows) {
|
if($isWindows) {
|
||||||
choco install cloc --no-progress
|
choco install cloc --no-progress
|
||||||
@ -37,23 +38,23 @@ build_script:
|
|||||||
- ps: |
|
- ps: |
|
||||||
if($isLinux) {
|
if($isLinux) {
|
||||||
npm run dist:lin
|
npm run dist:lin
|
||||||
Push-AppveyorArtifact ./dist/Bitwarden-$env:package_version-x86_64.AppImage
|
Push-AppveyorArtifact ./dist/Bitwarden-${packageVersion}-x86_64.AppImage
|
||||||
Push-AppveyorArtifact ./dist/bitwarden_${env:package_version}_amd64.snap
|
Push-AppveyorArtifact ./dist/bitwarden_${packageVersion}_amd64.snap
|
||||||
Push-AppveyorArtifact ./dist/Bitwarden-$env:package_version-amd64.deb
|
Push-AppveyorArtifact ./dist/Bitwarden-${packageVersion}-amd64.deb
|
||||||
Push-AppveyorArtifact ./dist/Bitwarden-$env:package_version-x64.freebsd
|
Push-AppveyorArtifact ./dist/Bitwarden-${packageVersion}-x64.freebsd
|
||||||
Push-AppveyorArtifact ./dist/Bitwarden-$env:package_version-x86_64.rpm
|
Push-AppveyorArtifact ./dist/Bitwarden-${packageVersion}-x86_64.rpm
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
npm run dist:win:ci
|
npm run dist:win:ci
|
||||||
Push-AppveyorArtifact .\dist\Bitwarden-Portable-$env:package_version.exe
|
Push-AppveyorArtifact .\dist\Bitwarden-Portable-${packageVersion}.exe
|
||||||
Push-AppveyorArtifact .\dist\nsis-web\Bitwarden-Installer-$env:package_version.exe
|
Push-AppveyorArtifact .\dist\nsis-web\Bitwarden-Installer-${packageVersion}.exe
|
||||||
Push-AppveyorArtifact .\dist\Bitwarden-$env:package_version-x64.appx
|
Push-AppveyorArtifact .\dist\Bitwarden-${packageVersion}-x64.appx
|
||||||
Push-AppveyorArtifact .\dist\Bitwarden-$env:package_version-ia32.appx
|
Push-AppveyorArtifact .\dist\Bitwarden-${packageVersion}-ia32.appx
|
||||||
}
|
}
|
||||||
|
|
||||||
after_build:
|
after_build:
|
||||||
- ps: |
|
- ps: |
|
||||||
if($env:prod_deploy) {
|
if($prodDeploy) {
|
||||||
if($isLinux) {
|
if($isLinux) {
|
||||||
echo "Deploy Linux..."
|
echo "Deploy Linux..."
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user