mirror of
https://github.com/vitalygashkov/crextractor.git
synced 2026-07-15 17:40:03 +02:00
update workflow
This commit is contained in:
@@ -10,50 +10,38 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
# Give the default GITHUB_TOKEN write permission to commit and push the
|
|
||||||
# added or changed files to the repository.
|
|
||||||
contents: write
|
contents: write
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
# JADX requires Java 11 or higher to run
|
- name: Setup Node.js
|
||||||
- name: Set up JDK 17
|
uses: actions/setup-node@v4
|
||||||
|
with:
|
||||||
|
node-version: 22
|
||||||
|
|
||||||
|
- name: Setup JDK 17
|
||||||
uses: actions/setup-java@v4
|
uses: actions/setup-java@v4
|
||||||
with:
|
with:
|
||||||
java-version: '17'
|
java-version: '17'
|
||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
|
|
||||||
# Download and install the latest version of JADX
|
|
||||||
- name: Install JADX
|
- name: Install JADX
|
||||||
run: |
|
run: |
|
||||||
# Fetch the latest version tag from the JADX GitHub repository
|
|
||||||
JADX_VERSION=$(curl -s "https://api.github.com/repos/skylot/jadx/releases/latest" | grep -Po '"tag_name": "v\K[0-9.]+')
|
JADX_VERSION=$(curl -s "https://api.github.com/repos/skylot/jadx/releases/latest" | grep -Po '"tag_name": "v\K[0-9.]+')
|
||||||
echo "Installing JADX version ${JADX_VERSION}..."
|
|
||||||
|
|
||||||
# Download the release zip file
|
|
||||||
curl -Lo jadx.zip "https://github.com/skylot/jadx/releases/download/v${JADX_VERSION}/jadx-${JADX_VERSION}.zip"
|
curl -Lo jadx.zip "https://github.com/skylot/jadx/releases/download/v${JADX_VERSION}/jadx-${JADX_VERSION}.zip"
|
||||||
|
|
||||||
# Unzip the archive
|
|
||||||
unzip -q jadx.zip -d jadx-dist
|
unzip -q jadx.zip -d jadx-dist
|
||||||
|
|
||||||
# Add the JADX bin directory to the GitHub Actions path
|
|
||||||
# This makes the 'jadx' command available in subsequent steps
|
|
||||||
echo "$(pwd)/jadx-dist/bin" >> $GITHUB_PATH
|
echo "$(pwd)/jadx-dist/bin" >> $GITHUB_PATH
|
||||||
|
|
||||||
# Clean up the downloaded zip file
|
|
||||||
rm jadx.zip
|
rm jadx.zip
|
||||||
|
|
||||||
# Verify that JADX was installed correctly
|
|
||||||
- name: Verify JADX installation
|
- name: Verify JADX installation
|
||||||
run: jadx --version
|
run: jadx --version
|
||||||
|
|
||||||
# Verify that JADX was installed correctly
|
- name: Install dependencies
|
||||||
- name: Extract app credentials
|
run: npm install
|
||||||
run: |
|
|
||||||
npm install
|
- name: Extract app credentials
|
||||||
node . --target mobile --output ./credentials.mobile.json && node . --target tv --output ./credentials.tv.json
|
run: node . --target mobile --output ./credentials.mobile.json && node . --target tv --output ./credentials.tv.json
|
||||||
|
|
||||||
# Commit all changed files back to the repository
|
|
||||||
- uses: stefanzweifel/git-auto-commit-action@v5
|
- uses: stefanzweifel/git-auto-commit-action@v5
|
||||||
|
|||||||
Reference in New Issue
Block a user