mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-12-21 23:47:39 +00:00
Adjust java paths
This commit is contained in:
parent
fe1439fbac
commit
e97bdb53f4
9
build.py
9
build.py
@ -151,7 +151,8 @@ def build_snet(args):
|
||||
os.chdir('..')
|
||||
|
||||
def sign_adjust_zip(unsigned, output):
|
||||
jarsigner = os.path.join('java', 'jarsigner', 'build', 'libs', 'jarsigner-fat.jar')
|
||||
signer_name = 'zipsigner-1.0.jar'
|
||||
jarsigner = os.path.join('java', 'crypto', 'build', 'libs', signer_name)
|
||||
|
||||
if os.name != 'nt' and not os.path.exists(os.path.join('ziptools', 'zipadjust')):
|
||||
header('* Building zipadjust')
|
||||
@ -160,11 +161,11 @@ def sign_adjust_zip(unsigned, output):
|
||||
if proc.returncode != 0:
|
||||
error('Build zipadjust failed!')
|
||||
if not os.path.exists(jarsigner):
|
||||
header('* Building jarsigner-fat.jar')
|
||||
header('* Building ' + signer_name)
|
||||
os.chdir('java')
|
||||
proc = subprocess.run('{} jarsigner:shadowJar'.format(os.path.join('.', 'gradlew')), shell=True)
|
||||
proc = subprocess.run('{} crypto:shadowJar'.format(os.path.join('.', 'gradlew')), shell=True)
|
||||
if proc.returncode != 0:
|
||||
error('Build jarsigner-fat.jar failed!')
|
||||
error('Build {} failed!'.format(signer_name))
|
||||
os.chdir('..')
|
||||
|
||||
header('* Signing / Adjusting Zip')
|
||||
|
2
java
2
java
@ -1 +1 @@
|
||||
Subproject commit 4956d826fbdbad35645260aa3edb3b746651cceb
|
||||
Subproject commit 05f41928cd0f72ddab557c8db6c2fc11c3fd08e6
|
Loading…
x
Reference in New Issue
Block a user