diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index cae851f..d13c303 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -84,12 +84,16 @@ jobs: - name: Upload to source host (perlis) run: | - # Upload .ipa + per-app metadata to perlis via SSH. + # Upload .ipa + per-app metadata + icon to perlis via SSH. # PERLIS_SSH_HOST is the Tailscale MagicDNS name (perlis.bueso.loc), # reachable from the iMac runner over the Tailscale mesh. + # Extract the app icon from the built bundle as icon.png (the + # metadata's iconURL points at https://apps.bueso.eu/$APP_NAME/icon.png). + APP_PATH=$(find build/Build/Products -name "*.app" -type d | head -1) + cp "$APP_PATH/AppIcon.png" icon.png 2>/dev/null || true ssh -o StrictHostKeyChecking=no \ "${{ secrets.PERLIS_SSH_USER }}@${{ secrets.PERLIS_SSH_HOST }}" \ "mkdir -p /mnt/appdata/ios-apps/$APP_NAME" scp -o StrictHostKeyChecking=no \ - $APP_NAME.ipa $APP_NAME.json \ + $APP_NAME.ipa $APP_NAME.json icon.png \ "${{ secrets.PERLIS_SSH_USER }}@${{ secrets.PERLIS_SSH_HOST }}:/mnt/appdata/ios-apps/$APP_NAME/" diff --git a/GiteaPR.xcodeproj/project.pbxproj b/GiteaPR.xcodeproj/project.pbxproj index ce3525a..870051f 100644 --- a/GiteaPR.xcodeproj/project.pbxproj +++ b/GiteaPR.xcodeproj/project.pbxproj @@ -187,7 +187,7 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_STYLE = Automatic; - CURRENT_PROJECT_VERSION = 17; + CURRENT_PROJECT_VERSION = 18; DEVELOPMENT_TEAM = ""; GENERATE_INFOPLIST_FILE = YES; INFOPLIST_KEY_CFBundleDisplayName = "GiteaPR"; @@ -197,7 +197,7 @@ "$(inherited)", "@executable_path/Frameworks", ); - MARKETING_VERSION = 2.6; + MARKETING_VERSION = 2.7; PRODUCT_BUNDLE_IDENTIFIER = com.bueso.giteapr; PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_EMIT_LOC_STRINGS = YES; @@ -211,7 +211,7 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_STYLE = Automatic; - CURRENT_PROJECT_VERSION = 17; + CURRENT_PROJECT_VERSION = 18; DEVELOPMENT_TEAM = ""; GENERATE_INFOPLIST_FILE = YES; INFOPLIST_KEY_CFBundleDisplayName = "GiteaPR"; @@ -221,7 +221,7 @@ "$(inherited)", "@executable_path/Frameworks", ); - MARKETING_VERSION = 2.6; + MARKETING_VERSION = 2.7; PRODUCT_BUNDLE_IDENTIFIER = com.bueso.giteapr; PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_EMIT_LOC_STRINGS = YES; diff --git a/GiteaPR/Assets.xcassets/AppIcon.appiconset/AppIcon.png b/GiteaPR/Assets.xcassets/AppIcon.appiconset/AppIcon.png new file mode 100644 index 0000000..b65a529 Binary files /dev/null and b/GiteaPR/Assets.xcassets/AppIcon.appiconset/AppIcon.png differ diff --git a/GiteaPR/Assets.xcassets/AppIcon.appiconset/Contents.json b/GiteaPR/Assets.xcassets/AppIcon.appiconset/Contents.json index 13613e3..cefcc87 100644 --- a/GiteaPR/Assets.xcassets/AppIcon.appiconset/Contents.json +++ b/GiteaPR/Assets.xcassets/AppIcon.appiconset/Contents.json @@ -1,6 +1,7 @@ { "images" : [ { + "filename" : "AppIcon.png", "idiom" : "universal", "platform" : "ios", "size" : "1024x1024"