fix: built apk showing unpacked script's path on console

This commit is contained in:
hyb1996
2018-01-30 11:00:45 +08:00
parent d3899fa3f3
commit ec7a0412af
2 changed files with 6 additions and 1 deletions

View File

@@ -43,7 +43,7 @@ public class AssetsProjectLauncher {
private void runScript() {
try {
JavaScriptFileSource source = new JavaScriptFileSource(mMainScriptFile);
JavaScriptFileSource source = new JavaScriptFileSource("main", mMainScriptFile);
AutoJs.getInstance().getScriptEngineService().execute(source, new ExecutionConfig()
.executePath(mProjectDir));
} catch (Exception e) {