-
Notifications
You must be signed in to change notification settings - Fork 100
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
disable feature toggles and bump 2.0.0-beta.8
- Loading branch information
Showing
10 changed files
with
120 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,80 @@ | ||
# http://www.appveyor.com/docs/appveyor-yml | ||
|
||
# TODO share artifacts properly, track the following issues resolving: | ||
# - https://github.com/appveyor/ci/issues/2438 | ||
# - https://github.com/appveyor/ci/issues/1623 | ||
|
||
branches: | ||
only: | ||
- master | ||
- master | ||
- 2.0.0 | ||
skip_tags: true | ||
os: unstable | ||
image: | ||
# WARN "image" items ordering matters | ||
- Ubuntu1804 | ||
- Visual Studio 2017 | ||
platform: | ||
- x64 | ||
cache: false | ||
- x64 | ||
build: off | ||
test: off | ||
install: | ||
# - ps: Install-Product node $env:nodejs_version $env:platform | ||
- ps: Install-Product node 10 $env:platform | ||
- SET CI=true | ||
- npm install --global yarn | ||
- set PATH=%PATH%;C:\.yarn\bin | ||
- node --version | ||
- npm --version | ||
- yarn --version | ||
- yarn install --pure-lockfile --mutex file | ||
- yarn generate-npm-lockfile | ||
- npm audit | ||
build_script: | ||
- yarn run app:dist | ||
- yarn run electron-builder:publish:x64 | ||
cache: false | ||
matrix: | ||
fast_finish: true | ||
environment: | ||
nodejs_version: 10 | ||
linuxJobNamePattern: 'image: Ubuntu1804' | ||
linuxJobArtifactFile: 'app.zip' | ||
for: | ||
- matrix: | ||
only: | ||
- image: Ubuntu1804 | ||
install: | ||
- sudo apt-get --yes install gnome-keyring libgnome-keyring-dev libsecret-1-dev nasm | ||
- cmd: powershell Install-Product node $env:nodejs_version | ||
- nvm install $nodejs_version | ||
- npm install --global yarn | ||
- node --version | ||
- npm --version | ||
- yarn install --pure-lockfile | ||
build_script: | ||
- yarn run assets:protonmail-webclient | ||
- zip -r $linuxJobArtifactFile ./app | ||
- ls | ||
- appveyor PushArtifact $linuxJobArtifactFile | ||
- matrix: | ||
only: | ||
- image: Visual Studio 2017 | ||
install: | ||
- ps: Install-Product node $env:nodejs_version | ||
- SET CI=true | ||
- npm install --global yarn | ||
- set PATH=%PATH%;C:\.yarn\bin | ||
- node --version | ||
- npm --version | ||
- yarn --version | ||
- yarn install --pure-lockfile --mutex file | ||
- yarn generate-npm-lockfile | ||
- npm audit | ||
build_script: | ||
- ps: | | ||
$headers = @{ | ||
"Authorization" = "Bearer $EMAIL_SECURELY_APP_APPVEYOR_API_KEY" | ||
"Content-type" = "application/json" | ||
} | ||
$project = Invoke-RestMethod -Uri "https://ci.appveyor.com/api/projects/$env:APPVEYOR_ACCOUNT_NAME/$env:APPVEYOR_PROJECT_SLUG" -Headers $headers -Method GET | ||
$linuxJob = $project.build.jobs | where {$_.name -eq $env:linuxJobNamePattern} | ||
$linuxJobId = $linuxJob.jobId; | ||
$linuxJobCompleted = $linuxJob.status -eq "success" | ||
if (!$linuxJobCompleted) { | ||
throw "Job `"$env:linuxJobNamePattern`" has been finished with `"$linuxJob.status`" status" | ||
} | ||
if (!$linuxJobId) { | ||
throw "Failed to resolve i`"$env:linuxJobNamePattern`" job id" | ||
} | ||
Start-FileDownload https://ci.appveyor.com/api/buildjobs/$linuxJobId/artifacts/$env:linuxJobArtifactFile | ||
7z.exe x $env:linuxJobArtifactFile | ||
- yarn run app:dist | ||
- yarn run electron-builder:publish:x64 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"name": "email-securely-app", | ||
"description": "Unofficial desktop app for E2E encrypted email providers", | ||
"version": "1.5.5", | ||
"version": "2.0.0-beta.8", | ||
"author": "Vladimir Yakovlev <[email protected]>", | ||
"license": "MIT", | ||
"homepage": "https://github.com/vladimiry/email-securely-app", | ||
|
@@ -13,7 +13,7 @@ | |
"scripts": { | ||
"generate-npm-lockfile": "synp --source-file yarn.lock", | ||
"precommit": "lint-staged", | ||
"app:dist": "npm-run-all lint test:electron-main test:web build assets electron-builder:install-app-deps test:e2e", | ||
"app:dist": "npm-run-all lint test:electron-main test:web build assets assets:protonmail-webclient electron-builder:install-app-deps test:e2e", | ||
"build": "npm-run-all build:electron-main build:electron-preload build:web", | ||
"build:dev": "cross-env NODE_ENV=development npm-run-all build", | ||
"build:electron-main": "webpack --config ./src/webpack/electron-main.ts", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters