forked from distok/cutthecord
		
	ctcci: Get xmlpatch command from config
This commit is contained in:
		
							parent
							
								
									2786de6c73
								
							
						
					
					
						commit
						b6f80bbee0
					
				
					 2 changed files with 2 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -21,7 +21,7 @@ def xmlpatch(patch_file, workdir, patch_name=""):
 | 
			
		|||
 | 
			
		||||
    print(f"Applying {patch_file}")
 | 
			
		||||
 | 
			
		||||
    subprocess.run(f"java -cp /opt/ctc/tools/xml-patch.jar com.github.dnault.xmlpatch.BatchPatcher --patch {patch_file} --srcdir {workdir}",
 | 
			
		||||
    subprocess.run(f"{XML_PATCH_BIN} com.github.dnault.xmlpatch.BatchPatcher --patch {patch_file} --srcdir {workdir}",
 | 
			
		||||
                   shell=True, check=True, cwd=workdir)
 | 
			
		||||
 | 
			
		||||
def patch(patch_file, workdir, patch_name=""):
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -2,6 +2,7 @@ import os
 | 
			
		|||
 | 
			
		||||
APKTOOL_BIN = "java -jar /opt/ctc/tools/apktool.jar"
 | 
			
		||||
DEX2JAR_BIN = "java -jar /opt/ctc/tools/dex2jar.jar"
 | 
			
		||||
XML_PATCH_BIN = "java -cp /opt/ctc/tools/xml-patch.jar"
 | 
			
		||||
 | 
			
		||||
# APKs must be placed under $DISTOK_FOLDER/android/$PACKAGE_ID-$VERSION_NUMBER.apk
 | 
			
		||||
# Example: /home/ave/distok/android/com.discord-909.apk
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue