修复 单文件打包时的问题
This commit is contained in:
@@ -207,6 +207,7 @@ public class ApkBuilder {
|
|||||||
|
|
||||||
private void encrypt(FileOutputStream fos, File file) throws IOException {
|
private void encrypt(FileOutputStream fos, File file) throws IOException {
|
||||||
try {
|
try {
|
||||||
|
EncryptedScriptFileHeader.INSTANCE.writeHeader(fos, (short) new JavaScriptFileSource(file).getExecutionMode());
|
||||||
byte[] bytes = new AdvancedEncryptionStandard(mKey.getBytes(), mInitVector).encrypt(PFiles.readBytes(file.getPath()));
|
byte[] bytes = new AdvancedEncryptionStandard(mKey.getBytes(), mInitVector).encrypt(PFiles.readBytes(file.getPath()));
|
||||||
fos.write(bytes);
|
fos.write(bytes);
|
||||||
fos.close();
|
fos.close();
|
||||||
|
|||||||
Reference in New Issue
Block a user