修复 单文件打包时的问题

This commit is contained in:
hyb1996
2018-12-14 12:35:34 +08:00
parent f3025110a7
commit 549021b18a

View File

@@ -207,6 +207,7 @@ public class ApkBuilder {
private void encrypt(FileOutputStream fos, File file) throws IOException {
try {
EncryptedScriptFileHeader.INSTANCE.writeHeader(fos, (short) new JavaScriptFileSource(file).getExecutionMode());
byte[] bytes = new AdvancedEncryptionStandard(mKey.getBytes(), mInitVector).encrypt(PFiles.readBytes(file.getPath()));
fos.write(bytes);
fos.close();