├── na.json ├── jp.json ├── README.md └── .github └── workflows └── next.yml /na.json: -------------------------------------------------------------------------------- 1 | {"verCode":"55db6f74ad7c4fdfc576bb0524700b727df7626e5f7a858ef3f0e825bcccaecd","appVer":"2.85.0"} -------------------------------------------------------------------------------- /jp.json: -------------------------------------------------------------------------------- 1 | {"verCode":"33172478fae336bf2490fea3187b8367068d3ece7537884b868b47a7e8cd4a1c","appVer":"2.128.0"} -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | > [!IMPORTANT] 2 | > The **FGO VerCode Extractor** repository has been **updated**, resulting in its disassociation from applications like FGO-Daily-Bonus. Previously, FGO-Daily-Login obtained the verCode directly from this repository. With the recent restructuring of **JSON** files to `jp.json` and `na.json`, users relying on these applications or their forks may encounter **issues**. 3 | > 4 | > Affected users are advised to adjust their implementations or develop alternative methods to extract the verCode, adapting to the new data structure. 5 | 6 | 7 | 8 | # Fate VerCode Extract - Next 9 | This repository will upload app.json which contain appVer & verCode, this work throght action 10 | where you can check if need some change. 11 | 12 | # FGO-VCE 13 | This tools i've created to extract verCode by searching sha256 hash in stringliterals, if you want you can check the source code of fgo-vce in this repository 14 | https://github.com/O-Isaac/FGO-VCE 15 | 16 | # Roadmap 17 | - [x] Generate to app.json `app.na.json` & `app.jp.json` 18 | 19 | -------------------------------------------------------------------------------- /.github/workflows/next.yml: -------------------------------------------------------------------------------- 1 | name: Extracting VerCode - Next 2 | on: 3 | workflow_dispatch: 4 | schedule: 5 | - cron: '0 8 * * *' 6 | - cron: '19 15 * * *' 7 | push: 8 | branches: [next] 9 | 10 | jobs: 11 | jp: 12 | runs-on: ubuntu-latest 13 | permissions: 14 | packages: write 15 | contents: write 16 | steps: 17 | - name: Checkout Repository 18 | uses: actions/checkout@v2 19 | 20 | - name: Install Dependencies 21 | run: sudo apt-get update && sudo apt-get install -y jq 22 | 23 | - name: Set Game Version 24 | run: | 25 | VERSION=$(curl -s "https://gplay-ver.atlasacademy.workers.dev/?id=com.aniplex.fategrandorder") 26 | echo "VERSION=$VERSION" >> $GITHUB_ENV 27 | 28 | - name: Compare Version with jp.json 29 | run: | 30 | APP_VERSION=$(jq -r '.appVer' "jp.json") 31 | if [ "$APP_VERSION" == "$VERSION" ]; then 32 | echo "UPDATE=false" >> $GITHUB_ENV 33 | else 34 | echo "UPDATE=true" >> $GITHUB_ENV 35 | fi 36 | 37 | - name: Set up JDK 38 | if: env.UPDATE == 'true' 39 | uses: actions/setup-java@v4 40 | with: 41 | distribution: 'temurin' 42 | java-version: '21' 43 | 44 | - name: Download Edit Tools 45 | if: env.UPDATE == 'true' 46 | run: wget -O fgo-vce.jar "https://github.com/O-Isaac/FGO-VCE/releases/download/v1.0.51-beta/FGO-VCE-1.0-SNAPSHOT-jar-with-dependencies.jar" 47 | 48 | - name: Download Game APK 49 | if: env.UPDATE == 'true' 50 | run: wget -O fate.xapk "https://fgo.bigcereal.com/apk/com.aniplex.fategrandorder.v${{ env.VERSION }}.xapk" 51 | 52 | - name: Extract verCode from APK 53 | if: env.UPDATE == 'true' 54 | run: java -jar fgo-vce.jar -av ${{ env.VERSION }} -o jp.json -xa fate.xapk 55 | 56 | - name: Set Current Date 57 | if: env.UPDATE == 'true' 58 | run: echo "DATE=$(date -u +"%Y-%m-%dT%H:%M:%SZ")" >> $GITHUB_ENV 59 | 60 | - name: Upload verCode 61 | if: env.UPDATE == 'true' 62 | uses: EndBug/add-and-commit@v9 63 | with: 64 | pull: '--rebase --autostash' 65 | add: 'jp.json' 66 | default_author: github_actions 67 | message: '✨ Update for JP - Commit on ${{ env.DATE }} 🚀' 68 | 69 | na: 70 | needs: jp 71 | runs-on: ubuntu-latest 72 | permissions: 73 | packages: write 74 | contents: write 75 | steps: 76 | - name: Checkout Repository 77 | uses: actions/checkout@v2 78 | 79 | - name: Install Dependencies 80 | run: sudo apt-get update && sudo apt-get install -y jq 81 | 82 | - name: Set Game Version 83 | run: | 84 | VERSION=$(curl -s "https://gplay-ver.atlasacademy.workers.dev/?id=com.aniplex.fategrandorder.en") 85 | echo "VERSION=$VERSION" >> $GITHUB_ENV 86 | 87 | - name: Compare Version with na.json 88 | run: | 89 | APP_VERSION=$(jq -r '.appVer' "na.json") 90 | if [ "$APP_VERSION" == "$VERSION" ]; then 91 | echo "UPDATE=false" >> $GITHUB_ENV 92 | else 93 | echo "UPDATE=true" >> $GITHUB_ENV 94 | fi 95 | 96 | - name: Set up JDK 97 | if: env.UPDATE == 'true' 98 | uses: actions/setup-java@v4 99 | with: 100 | distribution: 'temurin' 101 | java-version: '21' 102 | 103 | - name: Download Edit Tools 104 | if: env.UPDATE == 'true' 105 | run: wget -O fgo-vce.jar "https://github.com/O-Isaac/FGO-VCE/releases/download/v1.0.51-beta/FGO-VCE-1.0-SNAPSHOT-jar-with-dependencies.jar" 106 | 107 | - name: Download Game APK 108 | if: env.UPDATE == 'true' 109 | run: wget -O fate.xapk "https://fgo.bigcereal.com/apk/com.aniplex.fategrandorder.en.v${{ env.VERSION }}.xapk" 110 | 111 | - name: Extract verCode from APK 112 | if: env.UPDATE == 'true' 113 | run: java -jar fgo-vce.jar -av ${{ env.VERSION }} -o na.json -xa fate.xapk 114 | 115 | - name: Set Current Date 116 | if: env.UPDATE == 'true' 117 | run: echo "DATE=$(date -u +"%Y-%m-%dT%H:%M:%SZ")" >> $GITHUB_ENV 118 | 119 | - name: Upload verCode 120 | if: env.UPDATE == 'true' 121 | uses: EndBug/add-and-commit@v9 122 | with: 123 | pull: '--rebase --autostash' 124 | add: 'na.json' 125 | default_author: github_actions 126 | message: '✨ Update for NA - Commit on ${{ env.DATE }} 🚀' 127 | --------------------------------------------------------------------------------