private void SignApplication() { NativeExecutionHelper.FireAndForgetOnHost($"cd {ToolsBasePath}/Downloads/creation/{_packageName}/dist && {ToolsBasePath}/apksigner " + "sign --v1-signing-enabled true --v2-signing-enabled true --v3-signing-enabled true --v4-signing-enabled " + $"--key {ToolsBasePath}/testkey.pk8 --cert {ToolsBasePath}/testkey.x509.pem " + "out-za.apk"); }
private void UnpackTemplateZip() { var zipPath = Path.Combine(ToolsBasePath, "template.zip"); NativeExecutionHelper.FireAndForgetOnHost($"unzip {zipPath} -d {ToolsBasePath}/Downloads/creation/{_packageName}/"); }
private void ZipAlignApplication() { NativeExecutionHelper.FireAndForgetOnHost($"cd {ToolsBasePath}/Downloads/creation/{_packageName}/ && mv dist/*.apk dist/out.apk && " + $"{ToolsBasePath}/zipalign -f 4 dist/out.apk dist/out-za.apk"); }
private void BuildApplication() { NativeExecutionHelper.FireAndForgetOnHost($"cd {ToolsBasePath}/Downloads/creation/{_packageName}/ && java -jar {ToolsBasePath}/apktool.jar b ."); }