1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-12-28 17:27:50 +01:00

move linux build to ps

This commit is contained in:
Kyle Spearrin 2019-03-12 12:52:59 -04:00
parent e72d59150a
commit cc54f85744

View File

@ -6,21 +6,25 @@ branches:
except: except:
- l10n_master - l10n_master
environment:
APPVEYOR_YML_DISABLE_PS_LINUX: true
services: services:
- docker - docker
stack: node 10 stack: node 10
init: init:
- ps: Install-Product node $env:nodejs_version - ps: |
if($isWindows) {
Install-Product node 10
}
install: install:
- ps: choco install cloc --no-progress - sh: sudo apt-get install pkg-config libxss-dev libsecret-1-dev rpm
- ps: cloc --include-lang TypeScript,JavaScript,HTML,Sass,CSS --vcs git - ps: $env:package_version = (Get-Content -Raw -Path .\src\package.json | ConvertFrom-Json).version
- ps: $env:package_version = (Get-Content -Raw -Path package.json | ConvertFrom-Json).version - ps: |
if($isWindows) {
choco install cloc --no-progress
cloc --include-lang TypeScript,JavaScript,HTML,Sass,CSS --vcs git
}
before_build: before_build:
- node --version - node --version
@ -28,10 +32,15 @@ before_build:
build_script: build_script:
- npm install - npm install
- sh: npm run build:prod - sh: npm run dist:lin
- ps: npm run dist:win:ci - ps: npm run dist:win:ci
- ps: | - ps: |
if($isLinux) {
}
else {
Push-AppveyorArtifact .\dist\Bitwarden-Portable-$env:package_version.exe Push-AppveyorArtifact .\dist\Bitwarden-Portable-$env:package_version.exe
Push-AppveyorArtifact .\dist\nsis-web\Bitwarden-Installer-$env:package_version.exe Push-AppveyorArtifact .\dist\nsis-web\Bitwarden-Installer-$env:package_version.exe
Push-AppveyorArtifact .\dist\Bitwarden-$env:package_version-x64.appx Push-AppveyorArtifact .\dist\Bitwarden-$env:package_version-x64.appx
Push-AppveyorArtifact .\dist\Bitwarden-$env:package_version-ia32.appx Push-AppveyorArtifact .\dist\Bitwarden-$env:package_version-ia32.appx
}