This repository has been archived by the owner on Nov 4, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.appveyor.yml
68 lines (57 loc) · 2.16 KB
/
.appveyor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
version: "0.1.9-{build}"
platform: x64
init:
- git config --global core.autocrlf input
# TODO: Needs select-str to get version from package.json to save in env and update below
- ps: Update-AppveyorBuild -Version "0.1.9-$($env:APPVEYOR_REPO_COMMIT.substring(0,7))-Windows"
# - set BUILDVER=%APPVEYOR_BUILD_VERSION%-$($env:APPVEYOR_REPO_COMMIT.substring(0,7))
cache:
- electron\node_modules
- '%APPDATA%\npm-cache'
- '%USERPROFILE%\.electron'
clone_folder: c:\gopath\src\github.com\APTrust\dart
environment:
GOPATH: c:\gopath
access_token:
secure: "0muZEDVGEpw8OhnyWFnafYkUgrt+7kl6MdWEA2guW8oLX6s3dMoRrhQjuF3Sbpi5"
# artifactName: DART.Setup.0.1.8.$(APPVEYOR_BUILD_VERSION).$(APPVEYOR_REPO_COMMIT).exe
install:
- ps: Install-Product node 8 x64
- git reset --hard HEAD
- npm install npm -g
- npm install --prefix ./electron electron-builder@next # force install next version to test electron-builder
- cd electron && npm install
- echo %PATH%
- echo %GOPATH%
- set PATH=%GOPATH%\bin;c:\go\bin;%PATH%
- set PATH=%APPVEYOR_BUILD_FOLDER%/electron/node_modules/.bin;%PATH%
build_script:
- npm run --prefix ./electron
- cd %APPVEYOR_BUILD_FOLDER%/electron && electron-builder . --em.version=%APPVEYOR_BUILD_VERSION%
#- cd %APPVEYOR_BUILD_FOLDER%/electron && electron-builder .
#artifacts:
# - file: electron/dist/*.exe
# name: DART-Windows
test: off
after_build:
- ps: Get-ChildItem .\electron\dist\*.exe | % { Push-AppveyorArtifact $_.FullName -FileName $_.Name -DeploymentName S3-public-deployment }
deploy:
provider: S3
name: S3-public-deployment
access_key_id:
secure: u4NH7eUlYuzO9hl5Hk/7P5K1qvo31iqZ19BW484x8BE=
secret_access_key:
secure: FMvYL/QE+0kHdy9L7GxtayJwx3KwQB3AA2mcIBqGGeEM0lqLLv4tq2b4wH9y3nJ8
bucket: aptrust.public.download
region: us-east-1
set_public: true
folder: DART-Prototype
# artifact: DART-Windows
reduced_redundancy: true
notifications:
- provider: Slack
incoming_webhook:
secure: wQc/CYuw0WsjVvpj92QtP6//CzBNp/eFYpvlxiH6lIdhCbrh+cgQ3vExTygXJFA3xPg0attMwE/dOWipSS+vsk0EGsf0iipIaf/133/1RgQ=
on_build_success: false
on_build_failure: true
on_build_status_changed: true