-
Notifications
You must be signed in to change notification settings - Fork 340
45 lines (36 loc) · 1022 Bytes
/
Copy pathbuild-macos-dmg.yml
File metadata and controls
45 lines (36 loc) · 1022 Bytes
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
name: Build macOS DMG
on:
workflow_dispatch:
jobs:
build-dmg:
runs-on: macos-latest
steps:
- name: Checkout repository
uses: actions/checkout@v5
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: '3.14.5'
cache: 'pip'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install pyinstaller
- name: Install create-dmg
run: brew install create-dmg
- name: Build app with PyInstaller
env:
MACOSX_DEPLOYMENT_TARGET: '12.0'
run: pyinstaller ct-mac.spec
- name: Build DMG
run: |
chmod +x builddmg.sh
./builddmg.sh
- name: Upload DMG artifact
uses: actions/upload-artifact@v6
with:
name: Comic-Translate-macOS
path: "dist/Comic Translate.dmg"
if-no-files-found: error
retention-days: 30