@@ -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
0 commit comments