Fully adj to 103 (no OSK yet)
This commit is contained in:
+8
-1
@@ -14,6 +14,11 @@ let patch = fs.readFileSync("./EFB/efb-js.patch").toString();
|
||||
let patchedFile = applyPatch(file1Contents, patch);
|
||||
fs.writeFileSync(`${outPath}/efb.js`, patchedFile);
|
||||
|
||||
file1Contents = fs.readFileSync("./EFB/efb.index.js").toString();
|
||||
patch = fs.readFileSync("./EFB/efb-index-js.patch").toString();
|
||||
patchedFile = applyPatch(file1Contents, patch);
|
||||
fs.writeFileSync(`${outPath}/efb.index.js`, patchedFile);
|
||||
|
||||
file1Contents = fs.readFileSync("./EFB/efb.html").toString();
|
||||
patch = fs.readFileSync("./EFB/efb-html.patch").toString();
|
||||
patchedFile = applyPatch(file1Contents, patch);
|
||||
@@ -24,8 +29,10 @@ var lineReader = readline.createInterface({
|
||||
input: fs.createReadStream(`${outPath}/App.js`),
|
||||
});
|
||||
lineReader.on("line", (line) => {
|
||||
if (line.startsWith("import") || line.startsWith("export")) {
|
||||
if (line.startsWith("import")) {
|
||||
output += "// " + line + "\n";
|
||||
} else if (line.startsWith("export")) {
|
||||
output += "window.KH_LM = App;\n";
|
||||
} else {
|
||||
output += line + "\n";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user