diff --git a/ios/Stemify/Resources/Assets.xcassets/AppIconDev.appiconset/Contents.json b/ios/Stemify/Resources/Assets.xcassets/AppIconDev.appiconset/Contents.json new file mode 100644 index 0000000..7c85906 --- /dev/null +++ b/ios/Stemify/Resources/Assets.xcassets/AppIconDev.appiconset/Contents.json @@ -0,0 +1 @@ +{"images":[{"filename":"icon.png","idiom":"universal","platform":"ios","size":"1024x1024"}],"info":{"author":"xcode","version":1}} diff --git a/ios/Stemify/Resources/Assets.xcassets/AppIconDev.appiconset/icon.png b/ios/Stemify/Resources/Assets.xcassets/AppIconDev.appiconset/icon.png new file mode 100644 index 0000000..4b05ee9 Binary files /dev/null and b/ios/Stemify/Resources/Assets.xcassets/AppIconDev.appiconset/icon.png differ diff --git a/ios/project.yml b/ios/project.yml index 11c54ca..1790b11 100644 --- a/ios/project.yml +++ b/ios/project.yml @@ -13,6 +13,7 @@ settings: # Dev builds override these (build-ipa.sh dev) so they install next to the release app. APP_ID: org.cdnutter.stemify APP_NAME: Stemify + APP_ICON: AppIcon targets: Stemify: type: application @@ -24,7 +25,7 @@ targets: base: PRODUCT_BUNDLE_IDENTIFIER: $(APP_ID) TARGETED_DEVICE_FAMILY: "1" - ASSETCATALOG_COMPILER_APPICON_NAME: AppIcon + ASSETCATALOG_COMPILER_APPICON_NAME: $(APP_ICON) CODE_SIGN_ENTITLEMENTS: Stemify/Stemify.entitlements entitlements: path: Stemify/Stemify.entitlements diff --git a/ios/scripts/build-ipa.sh b/ios/scripts/build-ipa.sh index a9b6170..8bb6eb9 100755 --- a/ios/scripts/build-ipa.sh +++ b/ios/scripts/build-ipa.sh @@ -11,8 +11,8 @@ cd "$(dirname "$0")/.." export PATH=/opt/homebrew/bin:$PATH B=build; OUT=$B/work; APP=$OUT/Payload/Stemify.app; EXT=$APP/PlugIns/StemifyWidgets.appex MODE=${1:-release} -if [ "$MODE" = dev ]; then APP_ID=org.cdnutter.stemify-dev; APP_NAME="Stemify Dev"; DD=$B/dd-dev -else APP_ID=org.cdnutter.stemify; APP_NAME=Stemify; DD=$B/dd; fi +if [ "$MODE" = dev ]; then APP_ID=org.cdnutter.stemify-dev; APP_NAME="Stemify Dev"; APP_ICON=AppIconDev; DD=$B/dd-dev +else APP_ID=org.cdnutter.stemify; APP_NAME=Stemify; APP_ICON=AppIcon; DD=$B/dd; fi rm -rf $OUT && mkdir -p $OUT/Payload $B/public $B/prov $B/dev # "1.0 RC 1" -> 1.0-rc1, used in file names and release tags. VERSION=$(sed -nE 's/^ *VERSION_LABEL: "(.*)"/\1/p' project.yml | tr 'A-Z' 'a-z' | sed -E 's/ rc /-rc/; s/ /-/g') @@ -20,7 +20,7 @@ VERSION=$(sed -nE 's/^ *VERSION_LABEL: "(.*)"/\1/p' project.yml | tr 'A-Z' 'a-z' # xcodebuild compiles the app, the widget extension, the asset catalog and the App Intents metadata. xcodegen generate -q xcodebuild -project Stemify.xcodeproj -scheme Stemify -configuration Release -sdk iphoneos \ - -destination generic/platform=iOS -derivedDataPath $DD APP_ID=$APP_ID APP_NAME="$APP_NAME" CODE_SIGNING_ALLOWED=NO -quiet build + -destination generic/platform=iOS -derivedDataPath $DD APP_ID=$APP_ID APP_NAME="$APP_NAME" APP_ICON=$APP_ICON CODE_SIGNING_ALLOWED=NO -quiet build cp -R $DD/Build/Products/Release-iphoneos/Stemify.app $APP [ -d $EXT ] || { echo "widget extension missing" >&2; exit 1; }