@@ -111,6 +111,7 @@ jobs:
111
111
112
112
- name : Publish to PyPI
113
113
uses : pypa/gh-action-pypi-publish@release/v1
114
+
114
115
build-binaries :
115
116
needs : test
116
117
if : startsWith(github.ref, 'refs/tags/v')
@@ -138,7 +139,8 @@ jobs:
138
139
os_name : windows
139
140
arch : arm64
140
141
python-version : " 3.12"
141
- cross_compile : true # macOS architectures
142
+ cross_compile : true
143
+ # macOS architectures
142
144
- os : macos-13 # Intel-based runner
143
145
os_name : macos
144
146
arch : x86_64
@@ -173,7 +175,7 @@ jobs:
173
175
174
176
- name : Build binary
175
177
run : |
176
- python -m PyInstaller --onefile --name tzst --console src/main.py
178
+ python -m PyInstaller --onefile --name tzst --console --icon docs/_static/favicon.ico src/main.py
177
179
178
180
- name : Verify binary (Linux/macOS)
179
181
if : matrix.os != 'windows-latest'
@@ -194,12 +196,12 @@ jobs:
194
196
- name : Build binary for ARM64 on macOS
195
197
if : matrix.os == 'macos-14' && matrix.arch == 'arm64'
196
198
run : |
197
- python -m PyInstaller --onefile --name tzst --console --target-arch arm64 src/main.py
199
+ python -m PyInstaller --onefile --name tzst --console --target-arch arm64 --icon docs/_static/favicon.ico src/main.py
198
200
199
201
- name : Build binary for ARM64 on Windows
200
202
if : matrix.os == 'windows-latest' && matrix.arch == 'arm64'
201
203
run : |
202
- python -m PyInstaller --onefile --name tzst --console --target-arch arm64 src/main.py
204
+ python -m PyInstaller --onefile --name tzst --console --target-arch arm64 --icon docs/_static/favicon.ico src/main.py
203
205
204
206
- name : Setup cross-compilation for Linux ARM64
205
207
if : matrix.os == 'ubuntu-latest' && matrix.arch == 'aarch64'
@@ -212,7 +214,7 @@ jobs:
212
214
env :
213
215
CC : aarch64-linux-gnu-gcc
214
216
run : |
215
- python -m PyInstaller --onefile --name tzst --console --target-arch aarch64 src/main.py
217
+ python -m PyInstaller --onefile --name tzst --console --target-arch aarch64 --icon docs/_static/favicon.ico src/main.py
216
218
217
219
- name : Prepare archive contents (Linux/macOS)
218
220
if : matrix.os != 'windows-latest'
0 commit comments