-
Notifications
You must be signed in to change notification settings - Fork 1
168 lines (140 loc) · 4.14 KB
/
build.yaml
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
name: "Build"
on:
workflow_dispatch:
release:
types: [published]
jobs:
windows:
name: "Windows"
runs-on: windows-latest
timeout-minutes: 5
steps:
- name: "Checkout"
uses: actions/checkout@v4
- name: "Setup Python"
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: "Build"
run: |
python -m pip install pyinstaller
pyinstaller --noconfirm client.spec
python manifest.py
- name: "Download FFmpeg"
uses: robinraju/release-downloader@v1.10
with:
repository: "BtbN/FFmpeg-Builds"
fileName: "ffmpeg-master-latest-win64-gpl.zip"
out-file-path: "dist"
latest: true
extract: true
- name: "Move FFmpeg"
run: |
mv dist/ffmpeg-master-latest-win64-gpl/bin/ffmpeg.exe dist/ffmpeg.exe
ls dist
- name: "Inno Setup"
uses: Minionguyjpro/Inno-Setup-Action@v1.2.2
with:
path: install-win.iss
options: "/DMyAppVersion=${{ github.ref_name }}"
- name: "Debug"
run: |
ls -R out
- name: "Upload to Actions"
uses: actions/upload-artifact@v4
with:
name: install-win
path: out
- name: "Upload to Release"
uses: svenstaro/upload-release-action@v2
if: ${{ github.event_name == 'release' }}
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: out/*
tag: ${{ github.ref }}
overwrite: true
file_glob: true
linux:
name: "Linux"
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: "Checkout"
uses: actions/checkout@v4
- name: "Setup Python"
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: "Download FFmpeg"
uses: robinraju/release-downloader@v1.10
with:
repository: "BtbN/FFmpeg-Builds"
fileName: "ffmpeg-master-latest-linux64-gpl.tar.xz"
out-file-path: "dist"
latest: true
- name: "Move FFmpeg"
run: |
tar -xf dist/ffmpeg-master-latest-linux64-gpl.tar.xz -C dist ffmpeg-master-latest-linux64-gpl/bin/ffmpeg
mv dist/ffmpeg-master-latest-linux64-gpl/bin/ffmpeg dist/ffmpeg
ls dist
- name: "Debian Package"
run: |
python manifest.py
bash install-linux.sh
- name: "Debug"
run: |
ls -R
- name: "Upload to Actions"
uses: actions/upload-artifact@v4
with:
name: install-linux
path: out
- name: "Upload to Release"
uses: svenstaro/upload-release-action@v2
if: ${{ github.event_name == 'release' }}
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: out/*
tag: ${{ github.ref }}
overwrite: true
file_glob: true
macos:
name: "macOS"
runs-on: macos-latest
timeout-minutes: 5
steps:
- name: "Checkout"
uses: actions/checkout@v4
- name: "Setup Python"
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: "Setup Packages"
run: |
curl http://s.sudre.free.fr/Software/files/Packages.dmg -o Packages.dmg
hdiutil attach Packages.dmg
sudo installer -pkg "/Volumes/Packages 1.2.10/Install Packages.pkg" -target /
hdiutil detach "/Volumes/Packages 1.2.10"
- name: "Build"
run: |
python -m pip install pyinstaller
pyinstaller --noconfirm client.spec
python manifest.py
bash install-mac.sh
- name: "Debug"
run: |
ls -R
- name: "Upload to Actions"
uses: actions/upload-artifact@v4
with:
name: install-macos
path: out
- name: "Upload to Release"
uses: svenstaro/upload-release-action@v2
if: ${{ github.event_name == 'release' }}
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: out/*
tag: ${{ github.ref }}
overwrite: true
file_glob: true