File tree 2 files changed +15
-0
lines changed
2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -516,6 +516,16 @@ jobs:
516
516
exit 1
517
517
fi
518
518
519
+ # Verify PkgInfo is present
520
+ echo "🔎 Checking for PkgInfo in the app bundle..."
521
+ if [[ -f "${{env.APP_NAME}}.app/PkgInfo" ]]; then
522
+ echo "✅ PkgInfo exists."
523
+ else
524
+ echo "❌ PkgInfo is missing! Creating it now..."
525
+ echo "APPL????" > "${{env.APP_NAME}}.app/PkgInfo"
526
+ ls -l "${{env.APP_NAME}}.app/PkgInfo" # Verify it's created
527
+ echo "✅ PkgInfo has been successfully created."
528
+ fi
519
529
520
530
# Run macdeployqt to bundle the app
521
531
echo "🚀 Running macdeployqt to create macOS bundle..."
Original file line number Diff line number Diff line change @@ -231,6 +231,11 @@ elseif(APPLE AND NOT IOS)
231
231
MACOSX_BUNDLE_ICON_FILE "socnetv.icns"
232
232
)
233
233
234
+ # 🔧 Ensure PkgInfo is explicitly created in the app bundle
235
+ add_custom_command (TARGET ${TARGET_NAME} POST_BUILD
236
+ COMMAND echo -n "APPL????" > "${CMAKE_BINARY_DIR} /${TARGET_NAME} .app/PkgInfo"
237
+ COMMENT "🔍 Ensuring PkgInfo exists in the macOS app bundle"
238
+ )
234
239
235
240
# Install the main app bundle
236
241
install (TARGETS ${TARGET_NAME}
You can’t perform that action at this time.
0 commit comments