mirror of
https://github.com/revanced/Apktool.git
synced 2025-01-06 01:55:53 +01:00
parent
9ca830e8a1
commit
a4b5c926f4
@ -23,8 +23,6 @@
|
|||||||
prog="$0"
|
prog="$0"
|
||||||
while [ -h "${prog}" ]; do
|
while [ -h "${prog}" ]; do
|
||||||
newProg=`/bin/ls -ld "${prog}"`
|
newProg=`/bin/ls -ld "${prog}"`
|
||||||
echo ${newProg}
|
|
||||||
|
|
||||||
|
|
||||||
newProg=`expr "${newProg}" : ".* -> \(.*\)$"`
|
newProg=`expr "${newProg}" : ".* -> \(.*\)$"`
|
||||||
if expr "x${newProg}" : 'x/' >/dev/null; then
|
if expr "x${newProg}" : 'x/' >/dev/null; then
|
||||||
@ -41,7 +39,6 @@ progdir=`pwd`
|
|||||||
prog="${progdir}"/`basename "${prog}"`
|
prog="${progdir}"/`basename "${prog}"`
|
||||||
cd "${oldwd}"
|
cd "${oldwd}"
|
||||||
|
|
||||||
|
|
||||||
jarfile=apktool.jar
|
jarfile=apktool.jar
|
||||||
libdir="$progdir"
|
libdir="$progdir"
|
||||||
if [ ! -r "$libdir/$jarfile" ]
|
if [ ! -r "$libdir/$jarfile" ]
|
||||||
@ -77,4 +74,4 @@ fi
|
|||||||
# add current location to path for aapt
|
# add current location to path for aapt
|
||||||
PATH=$PATH:`pwd`;
|
PATH=$PATH:`pwd`;
|
||||||
export PATH;
|
export PATH;
|
||||||
exec java $javaOpts -jar "$jarpath" "$@"
|
exec java $javaOpts -jar "$jarpath" "$@"
|
@ -23,8 +23,6 @@
|
|||||||
prog="$0"
|
prog="$0"
|
||||||
while [ -h "${prog}" ]; do
|
while [ -h "${prog}" ]; do
|
||||||
newProg=`/bin/ls -ld "${prog}"`
|
newProg=`/bin/ls -ld "${prog}"`
|
||||||
echo ${newProg}
|
|
||||||
|
|
||||||
|
|
||||||
newProg=`expr "${newProg}" : ".* -> \(.*\)$"`
|
newProg=`expr "${newProg}" : ".* -> \(.*\)$"`
|
||||||
if expr "x${newProg}" : 'x/' >/dev/null; then
|
if expr "x${newProg}" : 'x/' >/dev/null; then
|
||||||
@ -41,7 +39,6 @@ progdir=`pwd`
|
|||||||
prog="${progdir}"/`basename "${prog}"`
|
prog="${progdir}"/`basename "${prog}"`
|
||||||
cd "${oldwd}"
|
cd "${oldwd}"
|
||||||
|
|
||||||
|
|
||||||
jarfile=apktool.jar
|
jarfile=apktool.jar
|
||||||
libdir="$progdir"
|
libdir="$progdir"
|
||||||
if [ ! -r "$libdir/$jarfile" ]
|
if [ ! -r "$libdir/$jarfile" ]
|
||||||
@ -77,4 +74,4 @@ fi
|
|||||||
# add current location to path for aapt
|
# add current location to path for aapt
|
||||||
PATH=$PATH:`pwd`;
|
PATH=$PATH:`pwd`;
|
||||||
export PATH;
|
export PATH;
|
||||||
exec java $javaOpts -Djava.awt.headless=true -jar "$jarpath" "$@"
|
exec java $javaOpts -Djava.awt.headless=true -jar "$jarpath" "$@"
|
@ -1,4 +1,4 @@
|
|||||||
@echo off
|
@echo off
|
||||||
if "%PATH_BASE%" == "" set PATH_BASE=%PATH%
|
if "%PATH_BASE%" == "" set PATH_BASE=%PATH%
|
||||||
set PATH=%CD%;%PATH_BASE%;
|
set PATH=%CD%;%PATH_BASE%;
|
||||||
java -jar -Duser.language=en "%~dp0\apktool.jar" %1 %2 %3 %4 %5 %6 %7 %8 %9
|
java -jar -Duser.language=en "%~dp0\apktool.jar" %1 %2 %3 %4 %5 %6 %7 %8 %9
|
Loading…
Reference in New Issue
Block a user