22w35b Added some, uhh, features and stuff
This commit is contained in:
parent
8e62c673b4
commit
abe87fce2a
Binary file not shown.
37279
javascript/classes.js
37279
javascript/classes.js
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
63698
stable-download/Offline_Download_Version.html
vendored
63698
stable-download/Offline_Download_Version.html
vendored
File diff suppressed because one or more lines are too long
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
|
@ -162,7 +162,7 @@ function countdown() {
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
</head>
|
</head>
|
||||||
<body style="margin:0px;width:100vw;height:100vh;" id="game_frame">
|
<body style="margin:0px;width:100vw;height:100vh;font-family:sans-serif;" id="game_frame">
|
||||||
<div id="locally" style="text-align:center;">
|
<div id="locally" style="text-align:center;">
|
||||||
<div style="height:5vh;"></div>
|
<div style="height:5vh;"></div>
|
||||||
<h2>you are running eaglercraft locally, check <a href="https://github.com/LAX1DUDE/eaglercraft/blob/main/stable-download/Offline_Download_Version.html" target="_blank">this link</a> regularly for an updated version</h2>
|
<h2>you are running eaglercraft locally, check <a href="https://github.com/LAX1DUDE/eaglercraft/blob/main/stable-download/Offline_Download_Version.html" target="_blank">this link</a> regularly for an updated version</h2>
|
||||||
|
|
|
@ -46,7 +46,7 @@ public class ZipGenerator {
|
||||||
"--js_output_file", "stable-download/web/eagswebrtc.js", "-O", "SIMPLE" }, "[ClosureCompiler]");
|
"--js_output_file", "stable-download/web/eagswebrtc.js", "-O", "SIMPLE" }, "[ClosureCompiler]");
|
||||||
|
|
||||||
System.out.println("Loading 'javascript/classes.js'");
|
System.out.println("Loading 'javascript/classes.js'");
|
||||||
String classesJs = FileUtils.readFileToString(new File("javascript/classes.js"), "UTF-8").replaceFirst("\\/\\/# sourceMappingURL=.*(\\r\\n|\\r|\\n)*", "").trim();
|
String classesJs = FileUtils.readFileToString(new File("javascript/classes.js"), "UTF-8");
|
||||||
|
|
||||||
File f = new File("crash_report_override.txt");
|
File f = new File("crash_report_override.txt");
|
||||||
if(f.isFile()) {
|
if(f.isFile()) {
|
||||||
|
@ -68,7 +68,8 @@ public class ZipGenerator {
|
||||||
|
|
||||||
System.out.println("Writing 'stable-download/Offline_Download_Version.html'");
|
System.out.println("Writing 'stable-download/Offline_Download_Version.html'");
|
||||||
|
|
||||||
offlineTemplate = offlineTemplate.replace("${date}", date).replace("${assets_epk_base64}", assetsEpk).replace("${classes_js}", classesJs);
|
offlineTemplate = offlineTemplate.replace("${date}", date).replace("${assets_epk_base64}", assetsEpk).replace("${classes_js}",
|
||||||
|
classesJs.replaceFirst("\\/\\/# sourceMappingURL=.*(\\r\\n|\\r|\\n)*", "").trim());
|
||||||
offlineTemplate = offlineTemplate.replace("${eagswebrtc_js}", classesWebRTCJs).replace("${classes_server_js}", classesServerJs);
|
offlineTemplate = offlineTemplate.replace("${eagswebrtc_js}", classesWebRTCJs).replace("${classes_server_js}", classesServerJs);
|
||||||
|
|
||||||
FileUtils.writeStringToFile(new File("stable-download/Offline_Download_Version.html"), offlineTemplate, "UTF-8");
|
FileUtils.writeStringToFile(new File("stable-download/Offline_Download_Version.html"), offlineTemplate, "UTF-8");
|
||||||
|
|
Binary file not shown.
Loading…
Reference in New Issue
Block a user