File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 7979 # Set Xcode version to latest version available
8080 # XCODE_VERSION=$(ls -d /Applications/Xcode*.app 2>/dev/null | sort -V | tail -n 1)
8181 # echo "Path to latest Xcode version: ${XCODE_VERSION}"
82- XCODE_VERSION="/Applications/Xcode_16.app "
82+ XCODE_VERSION="${{env.XCODE_VERSION}} "
8383
8484 # Select Xcode version
8585 sudo xcode-select -s "${XCODE_VERSION}"
9191
9292 - name : Notarize and package macOS app
9393 run :
94- ./build_pkg_automated.zsh "${{env.APP_VERSION}}" "${{ secrets.APPLE_ID }}" "${{ secrets.APPLE_ID_APP_SPECIFIC_PASSWORD }}"
94+ ./build_pkg_automated.zsh "${{env.APP_VERSION}}" "${{ secrets.APPLE_ID }}" "${{ secrets.APPLE_ID_APP_SPECIFIC_PASSWORD }}" "${{env.XCODE_VERSION}}"
9595
9696 - name : Upload package
9797 uses : actions/upload-artifact@v4
Original file line number Diff line number Diff line change 4848 # Set Xcode version to latest version available
4949 # XCODE_VERSION=$(ls -d /Applications/Xcode*.app 2>/dev/null | sort -V | tail -n 1)
5050 # echo "Path to latest Xcode version: ${XCODE_VERSION}"
51- XCODE_VERSION="/Applications/Xcode_16.app "
51+ XCODE_VERSION="${{env.XCODE_VERSION}} "
5252
5353 # Select Xcode version
5454 sudo xcode-select -s "${XCODE_VERSION}"
6060
6161 - name : Notarize and package macOS app
6262 run :
63- ./build_pkg_automated.zsh "${{env.APP_VERSION}}" "${{ secrets.APPLE_ID }}" "${{ secrets.APPLE_ID_APP_SPECIFIC_PASSWORD }}"
63+ ./build_pkg_automated.zsh "${{env.APP_VERSION}}" "${{ secrets.APPLE_ID }}" "${{ secrets.APPLE_ID_APP_SPECIFIC_PASSWORD }}" "${{env.XCODE_VERSION}}"
6464
6565 - name : Upload package
6666 uses : actions/upload-artifact@v4
Original file line number Diff line number Diff line change @@ -34,6 +34,9 @@ apple_id=$2
3434# Apple ID password
3535apple_id_app_specific_password=$3
3636
37+ # Xcode version
38+ xcode_version=$4
39+
3740# App Name
3841app_name=" Support"
3942
@@ -66,11 +69,6 @@ keychain_profile="Root3"
6669
6770# --------------------- do not edit below this line ----------------------
6871
69- # Set Xcode version to latest version available
70- # xcode_version=$(ls -d /Applications/Xcode*.app 2>/dev/null | sort -V | tail -n 1)
71- # echo "Path to latest Xcode version: ${xcode_version}"
72- xcode_version=" /Applications/Xcode_16.app"
73-
7472# Create directory
7573mkdir -p " ${current_directory} /${app_name} "
7674
8482cp -r " ${current_directory} /build/${app_name} .app" " ${payload} "
8583
8684# Set credentials for notarization
85+ echo " Xcode version: ${xcode_version} "
8786" ${xcode_version} /Contents/Developer/usr/bin/notarytool" store-credentials --apple-id " ${apple_id} " --team-id " 98LJ4XBGYK" --password " ${apple_id_app_specific_password} " " ${keychain_profile} "
8887
8988# Build and sign pkg
You can’t perform that action at this time.
0 commit comments