Skip to content

Commit 60bca39

Browse files
committed
Updated GitHub Actions workflow to use latest Xcode version and improve app packaging logic
1 parent 4cfd86c commit 60bca39

File tree

2 files changed

+28
-9
lines changed

2 files changed

+28
-9
lines changed

.github/workflows/build-macos-app.yml

Lines changed: 24 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,14 @@ jobs:
1919
- name: Set up Xcode
2020
uses: maxim-lobanov/setup-xcode@v1
2121
with:
22-
xcode-version: '16.0'
22+
xcode-version: 'latest-stable'
2323

2424
- name: Set environment variables
2525
run: |
26-
echo "RELEASE_VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
27-
# Extract short SHA for development builds
28-
if [[ "$GITHUB_REF" != "refs/tags/"* ]]; then
26+
if [[ "$GITHUB_REF" == "refs/tags/"* ]]; then
27+
echo "RELEASE_VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
28+
else
29+
# Extract short SHA for development builds
2930
echo "RELEASE_VERSION=dev-$(git rev-parse --short HEAD)" >> $GITHUB_ENV
3031
fi
3132
@@ -38,24 +39,38 @@ jobs:
3839
run: |
3940
# Create the app bundle
4041
mkdir -p dist
41-
cp -R build/Release/GitHub\ Copilot.app dist/
42+
43+
# Find the app - check both potential locations
44+
if [ -d "build/Release/GitHub Copilot.app" ]; then
45+
APP_PATH="build/Release/GitHub Copilot.app"
46+
elif [ -d "build/Release-macosx/GitHub Copilot.app" ]; then
47+
APP_PATH="build/Release-macosx/GitHub Copilot.app"
48+
else
49+
echo "Could not find built app. Searching for it..."
50+
find . -name "GitHub Copilot.app" -type d
51+
find build -type d -maxdepth 3
52+
exit 1
53+
fi
54+
55+
echo "Found app at: $APP_PATH"
56+
cp -R "$APP_PATH" dist/
4257
cd dist
4358
# Compress the .app bundle
44-
zip -r "GitHubCopilotApp-${{ env.RELEASE_VERSION }}.zip" "GitHub Copilot.app"
59+
zip -r "GitHubCopilotApp-$RELEASE_VERSION.zip" "GitHub Copilot.app"
4560
ls -la
4661
4762
- name: Upload app as artifact
4863
uses: actions/upload-artifact@v4
4964
with:
50-
name: GitHubCopilotApp-${{ env.RELEASE_VERSION }}
51-
path: dist/GitHubCopilotApp-${{ env.RELEASE_VERSION }}.zip
65+
name: GitHubCopilotApp
66+
path: dist/GitHubCopilotApp-*.zip
5267

5368
# Only run this step for tagged releases
5469
- name: Create GitHub Release
5570
if: startsWith(github.ref, 'refs/tags/')
5671
uses: softprops/action-gh-release@v1
5772
with:
58-
files: dist/GitHubCopilotApp-${{ env.RELEASE_VERSION }}.zip
73+
files: dist/GitHubCopilotApp-*.zip
5974
draft: false
6075
prerelease: false
6176
generate_release_notes: true

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
A simple macOS application that provides a clean wrapper for GitHub Copilot's web interface.
44

5+
## Why I Created This
6+
7+
I built this app to create a simple, distraction-free way to use GitHub Copilot chat with my Pro subscription. This wrapper removes all the extra UI elements from the web interface to provide a clean, focused experience.
8+
59
## Screenshot
610

711
![GitHub Copilot App Screenshot](screenshot.png)

0 commit comments

Comments
 (0)