-
Notifications
You must be signed in to change notification settings - Fork 0
/
.drone.yml
73 lines (67 loc) · 2.93 KB
/
.drone.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
69
70
71
72
73
kind: pipeline
name: Threema Desktop-App Builder
steps:
- name: build win32 app
image: electronuserland/builder:wine-mono
commands:
- apt-get update && apt-get --yes install zip gzip tar
# wine workaround: https://github.com/electron-userland/electron-forge/issues/1080#issuecomment-650294885
- rm -rf /root/.wine
- winecfg
- npm install -g nativefier
- nativefier --name "Threema" --build-version 4.4.0 --app-version 4.4.0 --app-copyright "Threema GmbH (Threema Web App), GreenBanana GmbH (Desktop App)" --platform "windows" --arch "ia32" --icon "threema.ico" "web.threema.ch"
- mkdir -p /drone/src/dist
- zip -r /drone/src/dist/Threema-win32-ia32.zip Threema-win32-ia32/
when:
event: tag
- name: build win64 app
image: electronuserland/builder:wine-mono
commands:
- apt-get update && apt-get --yes install zip gzip tar
# wine workaround: https://github.com/electron-userland/electron-forge/issues/1080#issuecomment-650294885
- rm -rf /root/.wine
- winecfg
- npm install -g nativefier
- nativefier --name "Threema" --build-version 4.4.0 --app-version 4.4.0 --app-copyright "Threema GmbH (Threema Web App), GreenBanana GmbH (Desktop App)" --platform "windows" --arch "x64" --icon "threema.ico" "web.threema.ch"
- mkdir -p /drone/src/dist
- zip -r /drone/src/dist/Threema-win32-x64.zip Threema-win32-x64/
when:
event: tag
- name: build mac app
image: node
commands:
- apt-get update && apt-get --yes install zip gzip tar
- npm install -g nativefier
- nativefier --name "Threema" --build-version 4.4.0 --app-version 4.4.0 --app-copyright "Threema GmbH (Threema Web App), GreenBanana GmbH (Desktop App)" --platform "mac" --icon "threema.icns" "web.threema.ch"
- mkdir -p /drone/src/dist
- zip -r /drone/src/dist/Threema-darwin-x64.zip Threema-darwin-x64/
when:
event: tag
- name: build linux app 32bit
image: node
commands:
- apt-get update && apt-get --yes install zip gzip tar
- npm install -g nativefier
- nativefier --name "Threema" --build-version 4.4.0 --app-version 4.4.0 --app-copyright "Threema GmbH (Threema Web App), GreenBanana GmbH (Desktop App)" --platform "linux" --arch "ia32" --icon "threema.png" "web.threema.ch"
- mkdir -p /drone/src/dist
- zip -r /drone/src/dist/Threema-linux-ia32.zip Threema-linux-ia32/
when:
event: tag
- name: build linux app 64bit
image: node
commands:
- apt-get update && apt-get --yes install zip gzip tar
- npm install -g nativefier
- nativefier --name "Threema" --build-version 4.4.0 --app-version 4.4.0 --app-copyright "Threema GmbH (Threema Web App), GreenBanana GmbH (Desktop App)" --platform "linux" --arch "x64" --icon "threema.png" "web.threema.ch"
- mkdir -p /drone/src/dist
- zip -r /drone/src/dist/Threema-linux-x64.zip Threema-linux-x64/
when:
event: tag
- name: publish apps
image: plugins/github-release
settings:
api_key:
from_secret: GITHUB_PERSONAL_ACCESS_TOKEN
files: /drone/src/dist/*
when:
event: tag