Skip to content

Commit 5b93176

Browse files
committed
Fix packaging: handle dynamic mac build directory structure
1 parent 5e6acd0 commit 5b93176

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

.github/workflows/auto-release.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,17 @@ jobs:
5959
6060
- name: Package App
6161
run: |
62-
cd app/dist/mac
62+
cd app/dist
63+
# List directories to see what was created
64+
ls -la
65+
# Find the mac build directory (could be mac, mac-arm64, mac-universal, etc.)
66+
MAC_DIR=$(find . -name "mac*" -type d | head -1)
67+
echo "Found Mac directory: $MAC_DIR"
68+
cd "$MAC_DIR"
6369
# Find the .app directory and zip it
6470
find . -name "*.app" -type d | head -1 | xargs -I {} zip -r "Tether-v${{ steps.get_version.outputs.VERSION }}-mac.zip" "{}"
71+
# Move zip to parent dist directory for easier access
72+
mv "Tether-v${{ steps.get_version.outputs.VERSION }}-mac.zip" ../
6573
6674
- name: Create Release
6775
id: create_release
@@ -86,7 +94,7 @@ jobs:
8694
### What's New:
8795
See the auto-generated release notes below.
8896
files: |
89-
app/dist/mac/*.zip
97+
app/dist/*.zip
9098
token: ${{ secrets.GITHUB_TOKEN }}
9199

92100
- name: Set release visibility to public

0 commit comments

Comments
 (0)