You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
- Premade "template" plist files for Mac, MacEditor, IOS, and added a PlistMode to choose between updating a template plist (from engine) or using a "baked" out plist that Xcode won't really mess with (this is still a work in progress, as it still needs thought on how to handle IOS premade vs Mac template, etc) - Updating icons to using xcassets instead of .icns file - Added post build step for UBT to write out build versions (increments each build) to a .xcconfig for Xcode to put into the .plist, but it reads previous value. Not terrible, but it still needs work #rb adam.king #preflight 632c7e8ee23e50651b43139b [CL 22137251 by josh adams in ue5-main branch]
46 lines
1.2 KiB
Bash
Executable File
46 lines
1.2 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
# $1 is path to product directory (engine, program or project)
|
|
# $2 is the platform we are incrementing
|
|
|
|
PRODUCT_NAME=$(basename $1)
|
|
VERSION_FILE="$1/Build/$2/$PRODUCT_NAME.PackageVersionCounter"
|
|
|
|
VERSION="0.1"
|
|
# increment version in the counter file
|
|
if [ -f $VERSION_FILE ]; then
|
|
VERSION=`cat $VERSION_FILE`
|
|
fi
|
|
|
|
# convert to array with . delimiter
|
|
VERSION_ARRAY=(${VERSION//./ })
|
|
# increment and write out
|
|
echo ${VERSION_ARRAY[0]}.$((VERSION_ARRAY[1]+1)) > "$VERSION_FILE"
|
|
|
|
|
|
MAC_VERSION="0.1"
|
|
VERSION_FILE="$1/Build/Mac/$PRODUCT_NAME.PackageVersionCounter"
|
|
if [ -f $VERSION_FILE ]; then
|
|
MAC_VERSION=`cat $VERSION_FILE`
|
|
fi
|
|
|
|
IOS_VERSION="0.1"
|
|
VERSION_FILE="$1/Build/IOS/$PRODUCT_NAME.PackageVersionCounter"
|
|
if [ -f $VERSION_FILE ]; then
|
|
IOS_VERSION=`cat $VERSION_FILE`
|
|
fi
|
|
|
|
TVOS_VERSION="0.1"
|
|
VERSION_FILE="$1/Build/$2TVOSPRODUCT_NAME.PackageVersionCounter"
|
|
if [ -f $VERSION_FILE ]; then
|
|
TVOS_VERSION=`cat $VERSION_FILE`
|
|
fi
|
|
|
|
# now write out an xcconfig containing all platform build versions relative to the project
|
|
XCCONFIG_FILE="$1/Intermediate/Build/Versions.xcconfig"
|
|
|
|
echo UE_MAC_BUILD_VERSION = $MAC_VERSION > $XCCONFIG_FILE
|
|
echo UE_IOS_BUILD_VERSION = $IOS_VERSION >> $XCCONFIG_FILE
|
|
echo UE_TVOS_BUILD_VERSION = $TVOS_VERSION >> $XCCONFIG_FILE
|
|
|