diff --git a/.github/resources/altstore-diagonal-badge.png b/.github/resources/altstore-diagonal-badge.png new file mode 100644 index 00000000..9b7568a0 Binary files /dev/null and b/.github/resources/altstore-diagonal-badge.png differ diff --git a/.github/resources/feather-diagonal-badge.png b/.github/resources/feather-diagonal-badge.png new file mode 100644 index 00000000..2cacc649 Binary files /dev/null and b/.github/resources/feather-diagonal-badge.png differ diff --git a/.github/resources/github-releases-linear-badge.png b/.github/resources/github-releases-linear-badge.png new file mode 100644 index 00000000..6583de99 Binary files /dev/null and b/.github/resources/github-releases-linear-badge.png differ diff --git a/.github/resources/sidestore-diagonal-badge.png b/.github/resources/sidestore-diagonal-badge.png new file mode 100644 index 00000000..ffc7121a Binary files /dev/null and b/.github/resources/sidestore-diagonal-badge.png differ diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 23bf90a8..7f91d081 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -24,6 +24,7 @@ on: paths-ignore: - '.github/**' - '**.md' + - 'mobile/ios/app-repo.json' workflow_dispatch: inputs: version: @@ -383,6 +384,47 @@ jobs: echo "Published release $tag" + - name: Update iOS app repository + if: github.repository == 'bryanthaboi/gen1recomp' + run: | + set -euo pipefail + v="${{ steps.ver.outputs.version }}" + ipa="dist/release/gen1recomp-${v}-ios.ipa" + app_repo="mobile/ios/app-repo.json" + [ -f "$ipa" ] || { echo "::error::$ipa not found"; exit 1; } + [ -f "$app_repo" ] || { echo "::error::$app_repo not found"; exit 1; } + + date="$(date -u +"%Y-%m-%d")" + size="$(wc -c < "$ipa" | tr -d '[:space:]')" + download_url="https://github.com/${GITHUB_REPOSITORY}/releases/download/v${v}/gen1recomp-${v}-ios.ipa" + entry="$(jq -n \ + --arg version "$v" \ + --arg date "$date" \ + --arg download_url "$download_url" \ + --argjson size "$size" \ + '{version: $version, date: $date, size: $size, downloadURL: $download_url, localizedDescription: "Gen1Recomp - A native Lua / LÖVE2D recreation of Gen 1 Poke"}')" + + if jq -e --arg version "$v" \ + 'any(.apps[] | select(.bundleIdentifier == "com.theboisclub.gen1recomp").versions[]?; .version == $version)' \ + "$app_repo" >/dev/null; then + jq --arg version "$v" --argjson entry "$entry" \ + '(.apps[] | select(.bundleIdentifier == "com.theboisclub.gen1recomp").versions) |= map(if .version == $version then $entry else . end)' \ + "$app_repo" > "$app_repo.tmp" + else + jq --argjson entry "$entry" \ + '(.apps[] | select(.bundleIdentifier == "com.theboisclub.gen1recomp").versions) |= [$entry] + .' \ + "$app_repo" > "$app_repo.tmp" + fi + mv "$app_repo.tmp" "$app_repo" + + - name: Commit iOS app repository + if: github.repository == 'bryanthaboi/gen1recomp' + uses: EndBug/add-and-commit@v10 + with: + add: mobile/ios/app-repo.json + default_author: github_actions + message: "chore(ios): update app-repo.json [skip ci]" + - name: Clean up signing keychain if: ${{ always() && github.repository == 'bryanthaboi/gen1recomp' }} run: | diff --git a/README.md b/README.md index a8d8aee9..f84aadea 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ A native LÖVE2D recreation of Poke Red, Blue and Yellow. The engine and map behavior are hand-written Lua; game data and graphics are decoded from a ROM supplied by the player. -> [!WARNING] +> [!CAUTION] > **We are NOT affiliated with the website `gen1recomp[.]com`** That website is not run by this project, was not authorized by us, and we have no idea who operates it. It is impersonating this project; do not download anything from it, and treat anything it hosts or claims as untrustworthy. Even if the site currently links back to this repository, the people behind it can change its content at any time, so nothing on it should ever be trusted. This GitHub repository and the Discord linked below are the only official sources for this project.

@@ -211,6 +211,16 @@ Every release ships `gen1recomp-*-ios.ipa`. Sideload it with AltStore build and install from source on a Mac instead, see [docs/ios-install.md](docs/ios-install.md). +
+ Add to SideStore +   + Add to Feather +   + Add to AltStore +   + Download from GitHub +
+ ## Handhelds A PortMaster-style port for the **Anbernic RG34XXSP** on Stock OS 64-bit MOD diff --git a/mobile/ios/app-repo.json b/mobile/ios/app-repo.json new file mode 100644 index 00000000..2557086a --- /dev/null +++ b/mobile/ios/app-repo.json @@ -0,0 +1,17 @@ +{ + "name": "gen1recomp App Repo", + "identifier": "com.theboisclub.gen1recomp.repo", + "iconURL": "https://raw.githubusercontent.com/bryanthaboi/gen1recomp/main/assets/logo/logo.png", + "apps": [ + { + "name": "gen1recomp", + "bundleIdentifier": "com.theboisclub.gen1recomp", + "developerName": "bryanthaboi", + "iconURL": "https://raw.githubusercontent.com/bryanthaboi/gen1recomp/main/assets/logo/logo.png", + "localizedDescription": "Gen1Recomp - A native Lua / LÖVE2D recreation of Gen 1 Poke", + "tintColor": "3b5ca8", + "category": "games", + "versions": [] + } + ] +}