-
Notifications
You must be signed in to change notification settings - Fork 3
86 lines (70 loc) · 2.45 KB
/
build-standalone.yml
File metadata and controls
86 lines (70 loc) · 2.45 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
# name: Build Standalone Apps
# on:
# push:
# tags: ['v*']
# workflow_dispatch: # Allow manual trigger for testing
# jobs:
# build-macos:
# if: startsWith(github.ref, 'refs/tags/v')
# runs-on: macos-latest
# steps:
# - uses: actions/checkout@v4
# - uses: actions/setup-python@v5
# with:
# python-version: '3.12'
# - name: Install uv
# run: pip install uv
# - name: Install dependencies
# run: |
# uv venv
# uv pip install -e ".[app,dev]"
# - name: Build standalone app
# run: |
# source .venv/bin/activate && pyinstaller sarcasm.spec
# - name: Prepare DMG contents
# run: |
# mkdir -p dmg_contents
# cp -r dist/SarcAsM-*.app dmg_contents/
# cp docs/INSTALL.txt dmg_contents/"📖 READ ME FIRST.txt"
# ln -s /Applications dmg_contents/Applications
# - name: Create DMG
# run: |
# hdiutil create -volname "SarcAsM-${{ github.ref_name }}" \
# -srcfolder dmg_contents \
# -ov -format UDZO \
# dist/SarcAsM-${{ github.ref_name }}-macos.dmg
# - name: Upload to Release
# uses: softprops/action-gh-release@v1
# with:
# files: |
# dist/SarcAsM-*.dmg
# draft: false
# prerelease: ${{ contains(github.ref_name, '-test') }}
# build-windows:
# if: startsWith(github.ref, 'refs/tags/v')
# runs-on: windows-latest
# steps:
# - uses: actions/checkout@v4
# - uses: actions/setup-python@v5
# with:
# python-version: '3.12'
# - name: Install uv
# run: pip install uv
# - name: Install dependencies
# shell: pwsh
# run: |
# uv venv
# uv pip install -e ".[app,dev]"
# - name: Build standalone app
# shell: pwsh
# run: |
# .venv\Scripts\Activate.ps1
# pyinstaller --noconfirm sarcasm.spec 2>&1 | Tee-Object build-log.txt
# - name: Create ZIP
# run: Compress-Archive -Path dist\SarcAsM-*.exe -DestinationPath dist\SarcAsM-${{ github.ref_name }}-windows.zip
# - name: Upload to Release
# uses: softprops/action-gh-release@v1
# with:
# files: dist/SarcAsM-*.zip
# draft: false
# prerelease: ${{ contains(github.ref_name, '-test') }}