forked from DeFiCh/defichain-app
-
Notifications
You must be signed in to change notification settings - Fork 0
72 lines (70 loc) · 2.17 KB
/
Copy pathdev-builds.yml
File metadata and controls
72 lines (70 loc) · 2.17 KB
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
69
70
71
72
on:
push:
branches:
- ci/*
- fix/issues-liquidity
- feature/add-receive-address-manually
- master
jobs:
build_linux_version:
runs-on: ubuntu-latest
env:
GH_TOKEN: ${{ secrets.GH_TOKEN}}
steps:
- uses: actions/checkout@v2
- name: install dependecies
run: npm cache clean --force && npm run init
- name: Build app
run: npm run build:linux
- uses: actions/upload-artifact@v2
with:
name: linux-build
path: 'dist/defi-app-2.1.5.AppImage'
build_mac_version:
runs-on: macos-latest
env:
GH_TOKEN: ${{ secrets.GH_TOKEN}}
CSC_LINK: ${{ secrets.CSC_LINK}}
CSC_KEY_PASSWORD: ${{ secrets.CSC_KEY_PASSWORD}}
steps:
- uses: actions/checkout@v2
- name: install dependecies
run: npm cache clean --force && npm run init
- name: Build app
run: npm run build:mac
- uses: actions/upload-artifact@v2
with:
name: mac-build
path: 'dist/defi-app-2.1.5.dmg'
build_windows_version:
runs-on: windows-latest
env:
GH_TOKEN: ${{ secrets.GH_TOKEN}}
steps:
- uses: actions/checkout@v2
- name: install dependecies
run: npm cache clean --force && npm run init
- name: Build app
run: |
mkdir binary -ea 0
cd binary
rm -r -fo win, mac, linux -ErrorAction Ignore
mkdir win
cd ..
mkdir temp -ea 0
cd temp
rm -r -fo win -ErrorAction Ignore
mkdir win
cd win
curl https://github.com/DeFiCh/ain/releases/download/v1.3.16/defichain-1.3.16-x86_64-w64-mingw32.zip -O defichain-1.3.16-x86_64-w64-mingw32.zip
Expand-Archive -LiteralPath .\defichain-1.3.16-x86_64-w64-mingw32.zip -DestinationPath .
Copy-Item .\defichain-1.3.16\bin\defid.exe .
cd ..\..
Copy-Item temp\win\defid.exe binary\win\defid.exe
icacls binary\win\defid.exe /grant everyone:F
npm run build:win
shell: powershell
- uses: actions/upload-artifact@v2
with:
name: win-build
path: 'dist/defi-app Setup 2.1.5.exe'