Skip to content

Commit 58c4fc9

Browse files
committed
fix: Update app path handling in macOS release workflow
1 parent 96cebbb commit 58c4fc9

1 file changed

Lines changed: 13 additions & 3 deletions

File tree

.github/workflows/macos-release.yml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,25 @@ jobs:
2727
MACOSX_DEPLOYMENT_TARGET=15.0 \
2828
CODE_SIGNING_ALLOWED=NO build
2929
30+
- name: Find built app
31+
id: find_app
32+
run: |
33+
APP_PATH=$(find build -name "Launchpad_Back.app" -type d | head -n 1)
34+
if [ -z "$APP_PATH" ]; then
35+
echo "❌ Error: Launchpad_Back.app not found!"
36+
exit 1
37+
fi
38+
echo "Found app at $APP_PATH"
39+
echo "APP_PATH=$APP_PATH" >> $GITHUB_ENV
40+
3041
- name: Zip App
3142
run: |
32-
cd build/Build/Products/Release-macOS
33-
zip -r Launchpad_Back-macOS.zip Launchpad_Back.app
43+
zip -r Launchpad_Back-macOS.zip "$APP_PATH"
3444
3545
- name: Create GitHub Release
3646
uses: softprops/action-gh-release@v2
3747
with:
3848
tag_name: ${{ github.ref_name }}
39-
files: build/Build/Products/Release-macOS/Launchpad_Back-macOS.zip
49+
files: Launchpad_Back-macOS.zip
4050
env:
4151
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)