@@ -32,31 +32,42 @@ jobs:
32
32
33
33
- name : Build macOS App
34
34
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
37
41
38
42
- name : Create .app package
39
43
run : |
40
- # Create the app bundle
44
+ # Create the output directory
41
45
mkdir -p dist
42
46
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
52
62
exit 1
53
63
fi
54
64
55
65
echo "Found app at: $APP_PATH"
56
66
cp -R "$APP_PATH" dist/
57
67
cd dist
58
68
# 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"
60
71
ls -la
61
72
62
73
- name : Upload app as artifact
0 commit comments