Skip to content
This repository was archived by the owner on Apr 18, 2024. It is now read-only.

Commit ea9c176

Browse files
author
caticer
committed
rooooooound app icon
1 parent ca1da6a commit ea9c176

File tree

11 files changed

+43
-3
lines changed

11 files changed

+43
-3
lines changed

App/apktool.bat

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
@echo off
2+
setlocal
3+
set BASENAME=apktool_
4+
chcp 65001 2>nul >nul
5+
6+
set java_exe=java.exe
7+
8+
if defined JAVA_HOME (
9+
set java_exe="%JAVA_HOME%\bin\java.exe"
10+
)
11+
12+
rem Find the highest version .jar available in the same directory as the script
13+
setlocal EnableDelayedExpansion
14+
pushd "%~dp0"
15+
if exist apktool.jar (
16+
set BASENAME=apktool
17+
goto skipversioned
18+
)
19+
set max=0
20+
for /f "tokens=1* delims=-_.0" %%A in ('dir /b /a-d %BASENAME%*.jar') do if %%~B gtr !max! set max=%%~nB
21+
:skipversioned
22+
popd
23+
setlocal DisableDelayedExpansion
24+
25+
rem Find out if the commandline is a parameterless .jar or directory, for fast unpack/repack
26+
if "%~1"=="" goto load
27+
if not "%~2"=="" goto load
28+
set ATTR=%~a1
29+
if "%ATTR:~0,1%"=="d" (
30+
rem Directory, rebuild
31+
set fastCommand=b
32+
)
33+
if "%ATTR:~0,1%"=="-" if "%~x1"==".apk" (
34+
rem APK file, unpack
35+
set fastCommand=d
36+
)
37+
38+
:load
39+
%java_exe% -jar -Duser.language=en -Dfile.encoding=UTF8 "%~dp0%BASENAME%%max%.jar" %fastCommand% %*
40+
41+
rem Pause when ran non interactively
42+
for /f "tokens=2" %%# in ("%cmdcmdline%") do if /i "%%#" equ "/c" pause
874 Bytes
Loading
4.56 KB
Loading
6.97 KB
Loading
945 Bytes
Loading
4.34 KB
Loading
6.91 KB
Loading

Module/README.md

Lines changed: 0 additions & 2 deletions
This file was deleted.
12.4 KB
Binary file not shown.

0 commit comments

Comments
 (0)