Skip to content

Commit

Permalink
Added version to archive name
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshisuga committed Jan 4, 2022
1 parent 0910a48 commit 386bb2c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion xcode/MAME4iOS/build-release-ipas.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ C_RESET="\033[0m"

# get the DEVELOPMENT_TEAM out of the xcconfig
DEVELOPMENT_TEAM=`grep -oe "^DEVELOPMENT_TEAM\s*=\s*[a-zA-Z0-9]*" MAME4iOS.xcconfig | cut -w -f3`
VERSION=`grep -oe "^CURRENT_PROJECT_VERSION\s*=\s*[\.0-9]*" MAME4iOS.xcconfig | cut -w -f3`

if [ "$DEVELOPMENT_TEAM" == "" ] || [ "$DEVELOPMENT_TEAM" == "ABC8675309" ]; then
echo "${C_RED}Before running, edit the DEVELOPMENT_TEAM identifier in the .xcconfig file so that code signing works.${C_RESET}"
Expand Down Expand Up @@ -46,7 +47,7 @@ do
for j in "${!CONFIGS[@]}"
do
CONFIG="${CONFIGS[$j]}"
ARCHIVE_NAME="${NAME}-${CONFIG_NAMES[$j]}"
ARCHIVE_NAME="${NAME}-${VERSION}-${CONFIG_NAMES[$j]}"
echo "${C_BLUE}Scheme: ${SCHEME} Config: ${CONFIG} Archive: ${ARCHIVE_NAME}${C_RESET}"

xcodebuild -project MAME4iOS.xcodeproj \
Expand Down

0 comments on commit 386bb2c

Please sign in to comment.