diff --git a/.github/workflows/next.yml b/.github/workflows/next.yml index 9cfd05d..ee18a10 100644 --- a/.github/workflows/next.yml +++ b/.github/workflows/next.yml @@ -1,7 +1,9 @@ name: Extracting VerCode - Next on: - workflow_dispatch: + schedule: + - cron: '0 8 * * *' + - cron: '19 15 * * *' push: branches: [next] @@ -35,7 +37,7 @@ jobs: run: | Invoke-WebRequest -Uri "https://bitbucket.org/iBotPeaches/apktool/downloads/apktool_2.10.0.jar" -OutFile "apktool.jar" Invoke-WebRequest -Uri "https://github.com/REAndroid/APKEditor/releases/download/V1.4.1/APKEditor-1.4.1.jar" -OutFile "apkeditor.jar" - Invoke-WebRequest -Uri "https://github.com/O-Isaac/FGO-VCE/releases/download/v1.0.2/FGO-VCE-1.0-SNAPSHOT-jar-with-dependencies.jar" -OutFile "fgo-vce.jar" + Invoke-WebRequest -Uri "https://github.com/O-Isaac/FGO-VCE/releases/latest/download/FGO-VCE-1.0-SNAPSHOT-jar-with-dependencies.jar" -OutFile "fgo-vce.jar" - name: Download Dump Tools run: | Invoke-WebRequest -Uri "https://github.com/Perfare/Il2CppDumper/releases/download/v6.7.40/Il2CppDumper-win-v6.7.40.zip" -OutFile "dumper.zip" @@ -61,14 +63,7 @@ jobs: il2cppdumper/Il2CppDumper.exe files/lib/arm64-v8a/libil2cpp.so files/assets/bin/Data/Managed/Metadata/global-metadata.dat decrypt - name: Get verCode from apk run: | - java -jar fgo-vce.jar -s decrypt/stringliteral.json -av ${{ env.VERSION }} - $regionFile = "${{ matrix.region }}.json" - - if (Test-Path $regionFile) { - Remove-Item $regionFile -Force - } - - Rename-Item -Path "app.json" -NewName $regionFile + java -jar fgo-vce.jar -s decrypt/stringliteral.json -av ${{ env.VERSION }} -o ${{ matrix.region }}.json - name: Upload app.json uses: EndBug/add-and-commit@v9 with: