Skip to content

Commit c3b3a3e

Browse files
committed
Xcode version in environment
Xcode version in environment
1 parent 5f6c38c commit c3b3a3e

3 files changed

Lines changed: 8 additions & 9 deletions

File tree

.github/workflows/build_pkg_beta.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ jobs:
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}"
@@ -91,7 +91,7 @@ jobs:
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

.github/workflows/build_pkg_release_manual.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
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}"
@@ -60,7 +60,7 @@ jobs:
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

build_pkg_automated.zsh

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ apple_id=$2
3434
# Apple ID password
3535
apple_id_app_specific_password=$3
3636

37+
# Xcode version
38+
xcode_version=$4
39+
3740
# App Name
3841
app_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
7573
mkdir -p "${current_directory}/${app_name}"
7674

@@ -84,6 +82,7 @@ fi
8482
cp -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

0 commit comments

Comments
 (0)