mirror of
https://github.com/ReVanced/revanced-cli.git
synced 2026-01-18 00:43:58 +00:00
chore: Add click-to-run scripts
This commit is contained in:
28
scripts/modules/patch.bat
Normal file
28
scripts/modules/patch.bat
Normal file
@@ -0,0 +1,28 @@
|
||||
@echo off
|
||||
setlocal
|
||||
|
||||
if "%~1"=="" (
|
||||
set INVALID_ARGS=true
|
||||
)
|
||||
if "%~2"=="" (
|
||||
set INVALID_ARGS=true
|
||||
)
|
||||
if defined INVALID_ARGS (
|
||||
echo Patches an application using the specified patches.
|
||||
echo:
|
||||
echo Usage: patch ^<apk^> ^<workspace^>
|
||||
echo Example: patch C:/app.apk C:/workspace
|
||||
exit /b 1
|
||||
)
|
||||
|
||||
set APK=%1
|
||||
set WORKSPACE=%2
|
||||
|
||||
call run java -jar %WORKSPACE%/revanced-cli.jar patch ^
|
||||
--patch-bundle %WORKSPACE%/patches.rvp ^
|
||||
--temporary-files-path %WORKSPACE%/temporary-files ^
|
||||
--out %WORKSPACE%/patched.apk ^
|
||||
--purge ^
|
||||
%APK%
|
||||
|
||||
mv %WORKSPACE%/patched.apk
|
||||
Reference in New Issue
Block a user