Skip to content

Commit d9375a4

Browse files
committed
Fixed GitHub Actions workflow and updated README
1 parent 60bca39 commit d9375a4

File tree

2 files changed

+25
-14
lines changed

2 files changed

+25
-14
lines changed

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

Lines changed: 24 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -32,31 +32,42 @@ jobs:
3232
3333
- name: Build macOS App
3434
run: |
35-
# Build without code signing for CI
36-
xcodebuild -project CopilotApp.xcodeproj -scheme CopilotApp -configuration Release -destination 'platform=macOS' clean build CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO CODE_SIGNING_ALLOWED=NO
35+
# Get available schemes
36+
echo "Available schemes:"
37+
xcodebuild -list -project CopilotApp.xcodeproj
38+
39+
# Build without code signing for CI and specify derivedDataPath to know exact output location
40+
xcodebuild -project CopilotApp.xcodeproj -scheme CopilotApp -configuration Release -destination 'platform=macOS' -derivedDataPath ./DerivedData clean build CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO CODE_SIGNING_ALLOWED=NO
3741
3842
- name: Create .app package
3943
run: |
40-
# Create the app bundle
44+
# Create the output directory
4145
mkdir -p dist
4246
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
47+
# Debug: Show all files in the derived data directory
48+
echo "Contents of DerivedData directory:"
49+
find ./DerivedData -type d -name "*.app" | sort
50+
51+
# Find the app using find command
52+
APP_PATH=$(find ./DerivedData -type d -name "GitHub Copilot.app" | head -n 1)
53+
54+
if [ -z "$APP_PATH" ]; then
55+
echo "Could not find 'GitHub Copilot.app', trying alternative names..."
56+
APP_PATH=$(find ./DerivedData -type d -name "*.app" | head -n 1)
57+
fi
58+
59+
if [ -z "$APP_PATH" ]; then
60+
echo "ERROR: Could not find any .app bundle in the build output"
61+
find ./DerivedData -type d | sort
5262
exit 1
5363
fi
5464
5565
echo "Found app at: $APP_PATH"
5666
cp -R "$APP_PATH" dist/
5767
cd dist
5868
# Compress the .app bundle
59-
zip -r "GitHubCopilotApp-$RELEASE_VERSION.zip" "GitHub Copilot.app"
69+
APP_NAME=$(basename "$APP_PATH")
70+
zip -r "GitHubCopilotApp-$RELEASE_VERSION.zip" "$APP_NAME"
6071
ls -la
6172
6273
- name: Upload app as artifact

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ I built this app to create a simple, distraction-free way to use GitHub Copilot
2626

2727
### Option 1: Download Pre-built App (Recommended)
2828

29-
1. Go to the [Releases](https://github.com/YOURUSERNAME/GitHubCopilotWrapperApp/releases) page on GitHub
29+
1. Go to the [Releases](https://github.com/JamesLautner/GitHubCopilotWrapperApp/releases) page on GitHub
3030
2. Download the latest `.zip` file
3131
3. Extract the zip and move `GitHub Copilot.app` to your Applications folder
3232
4. When opening for the first time, right-click the app and select "Open" to bypass Gatekeeper

0 commit comments

Comments
 (0)