Skip to content

Commit

Permalink
config macOs bundles names
Browse files Browse the repository at this point in the history
  • Loading branch information
victorwads committed Aug 14, 2024
1 parent 5dbdeb9 commit f7b0684
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/macos_bundle_arm64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@ jobs:
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.TOKEN }}
file: macOs/QRookie_arm64.dmg
asset_name: QRookie_${{ github.ref }}_macOs_arm64.dmg
file: macOs/QRookie_${{ github.ref }}_arm64.dmg
asset_name: QRookie_${{ github.ref }}_arm64.dmg
tag: ${{ github.ref }}
4 changes: 2 additions & 2 deletions .github/workflows/macos_bundle_x86_64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@ jobs:
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.TOKEN }}
file: macOs/QRookie_x86_64.dmg
asset_name: QRookie_${{ github.ref }}_macOs_x86_64.dmg
file: macOs/QRookie_${{ github.ref }}_x86_64.dmg
asset_name: QRookie_${{ github.ref }}_x86_64.dmg
tag: ${{ github.ref }}
2 changes: 2 additions & 0 deletions macOs/projectConfig.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#!/bin/bash
export ARCH=$(arch)
export OS_TARGET="13"
export APP_VERSION=$(/usr/libexec/PlistBuddy -c "Print CFBundleVersion" Info.plist)

if [[ "$ARCH" == "arm64" ]]; then
export ARCH_NAME="arm64"
eval "$(/opt/homebrew/bin/brew shellenv)"
Expand Down
4 changes: 2 additions & 2 deletions macOs/signApp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ cd "${BUILD_DIR}"

printf "\e[1;32mAssign all the libraries inside the app bundle\e[0m\n"
find "$APP_PATH" -type f -name "*.dylib" -exec \
codesign --deep --force --verify --verbose --timestamp --options runtime --sign "$DEVELOPER_ID" {} \;
codesign --deep --force --verify --verbose --timestamp --options runtime --sign "$DEVELOPER_ID" {} \;

printf "\e[1;32mAssign .app\e[0m\n"
codesign --deep --force --verify --verbose --timestamp --options runtime --sign "$DEVELOPER_ID" "$APP_PATH"
Expand All @@ -26,7 +26,7 @@ rm -rf "$DMG_DIR"
mkdir -p "$DMG_DIR"
cp -r "$APP_PATH" "$DMG_DIR/"

DMG_NAME="$WORKING_DIR/${APP_NAME}_${ARCH_NAME}.dmg"
DMG_NAME="$WORKING_DIR/${APP_NAME}_${APP_VERSION}_${ARCH_NAME}.dmg"
hdiutil create -volname "$APP_NAME" -srcfolder "$DMG_DIR" -ov -format UDBZ "$DMG_NAME"
rm -rf "$DMG_DIR"

Expand Down

0 comments on commit f7b0684

Please sign in to comment.