Skip to content

Commit

Permalink
hi (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
zumbiepig authored Apr 22, 2024
1 parent e429eb9 commit c3babdb
Show file tree
Hide file tree
Showing 10 changed files with 36 additions and 714 deletions.
23 changes: 6 additions & 17 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,12 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- name: checkout repository
uses: actions/checkout@v4
- name: setup gradle
uses: gradle/actions/setup-gradle@v3
- uses: actions/checkout@v4
- uses: gradle/actions/setup-gradle@v3
with:
validate-wrappers: true
- name: make gradle wrapper executable
run: chmod +x ./gradlew
- name: compile javascript
run: ./gradlew generateJavascript
- name: build with gradle wrapper
run: ./gradlew build
- name: make offline download
run: bash MakeOfflineDownload.sh
- name: upload artifact
uses: actions/upload-artifact@v4
- run: bash CompileJS.sh
- run: bash MakeOfflineDownload.sh
- uses: actions/upload-artifact@v4
with:
path: |
javascript/web_files
javascript/Shadow_Client_Offline.html
path: javascript/Shadow_Client.html
2 changes: 1 addition & 1 deletion MakeOfflineDownload.bat
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@echo off
title MakeOfflineDownload
java -cp "desktopRuntime/MakeOfflineDownload.jar;desktopRuntime/CompileEPK.jar" net.lax1dude.eaglercraft.v1_8.buildtools.workspace.MakeOfflineDownload "javascript/OfflineDownloadTemplate.txt" "javascript/classes.js" "javascript/assets.epk" "/dev/null" "javascript/Shadow_Client_Offline.html" "javascript/lang"
java -cp "desktopRuntime/MakeOfflineDownload.jar;desktopRuntime/CompileEPK.jar" net.lax1dude.eaglercraft.v1_8.buildtools.workspace.MakeOfflineDownload "javascript/OfflineDownloadTemplate.txt" "javascript/classes.js" "javascript/assets.epk" "/dev/null" "javascript/Shadow_Client.html" "javascript/lang"
pause
2 changes: 1 addition & 1 deletion MakeOfflineDownload.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/bin/sh
java -cp "desktopRuntime/MakeOfflineDownload.jar:desktopRuntime/CompileEPK.jar" net.lax1dude.eaglercraft.v1_8.buildtools.workspace.MakeOfflineDownload "javascript/OfflineDownloadTemplate.txt" "javascript/classes.js" "javascript/assets.epk" "/dev/null" "javascript/Shadow_Client_Offline.html" "javascript/lang"
java -cp "desktopRuntime/MakeOfflineDownload.jar:desktopRuntime/CompileEPK.jar" net.lax1dude.eaglercraft.v1_8.buildtools.workspace.MakeOfflineDownload "javascript/OfflineDownloadTemplate.txt" "javascript/classes.js" "javascript/assets.epk" "/dev/null" "javascript/Shadow_Client.html" "javascript/lang"
70 changes: 27 additions & 43 deletions javascript/OfflineDownloadTemplate.txt
Original file line number Diff line number Diff line change
@@ -1,41 +1,41 @@
<!DOCTYPE html>



<!--

This file is from ${date}, there is no official eagler download link anymore, check the websites and discords of your favorite eagler servers for new versions

Be aware that some server owners are lazy and do not update their client regularly

Compile it yourself here: https://gitlab.com/lax1dude/eaglercraftx-1.8/

-->













<html>
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="description" content="EaglercraftX 1.8 Offline" />
<meta name="keywords" content="eaglercraft, eaglercraftx, minecraft, 1.8, 1.8.8" />
<title>Shadow Client Offline</title>
<title>Shadow Client</title>
<meta property="og:locale" content="en-US" />
<meta property="og:type" content="website" />
<meta property="og:title" content="EaglercraftX 1.8 Offline" />
<meta property="og:description" content="this file is not a website, whoever uploaded it to this URL is a dumbass" />
<script type="text/javascript">

// %%%%%%%%% launch options %%%%%%%%%%%%

window.eaglercraftXOpts = {
container: "game_frame",
assetsURI = ${assets_epk};
servers: [
{ addr: "wss://mcproxy.amogus.top", name: "EaglerProxy" }
{ addr: "wss://mc.arch.lol", name: "ArchMC" },
{ addr: "wss://mc.asspixel.net", name: "Asspixel" },
{ addr: "wss://aeon-network.net", name: "Aeon Network" },
{ addr: "wss://zentic.cc", name: "Zentic" },
{ addr: "wss://clever-teaching.com", name: "Clever Teaching" },
{ addr: "wss://ep.rufan.tech", name: "TimeLegacy"},
{ addr: "wss://vanillamc.me", name: "VanillaMC Legacy" }
],
relays: [
{ addr: "wss://relay.deev.is/", comment: "lax1dude relay #1", primary: relayId == 0 },
{ addr: "wss://relay.lax1dude.net/", comment: "lax1dude relay #2", primary: relayId == 1 },
{ addr: "wss://relay.shhnowisnottheti.me/", comment: "ayunami relay #1", primary: relayId == 2 }
]
};

// %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

function initAPI(version) {
var ModAPI = {};
ModAPI.events = {};
Expand Down Expand Up @@ -484,20 +484,6 @@ document.body.appendChild(img);
"use strict";
const relayId = Math.floor(Math.random() * 3);

// %%%%%%%%% launch options %%%%%%%%%%%%

window.eaglercraftXOpts = {
container: "game_frame",
worldsDB: "worlds",
relays: [
{ addr: "wss://relay.deev.is/", comment: "lax1dude relay #1", primary: relayId == 0 },
{ addr: "wss://relay.lax1dude.net/", comment: "lax1dude relay #2", primary: relayId == 1 },
{ addr: "wss://relay.shhnowisnottheti.me/", comment: "ayunami relay #1", primary: relayId == 2 }
]
};

// %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

</script>
<script type="text/javascript">
"use strict";
Expand All @@ -507,8 +493,6 @@ ${classes_js}
<script type="text/javascript">
"use strict";
(function(){
window.eaglercraftXOpts.assetsURI = ${assets_epk};

var launchInterval = -1;
var launchCounter = 1;
var launchCountdownNumberElement = null;
Expand All @@ -519,7 +503,7 @@ ${classes_js}
launchCountdownProgressElement.style.width = "" + launchCounter + "%";
if(++launchCounter > 100) {
clearInterval(launchInterval);
setTimeout(() => { document.getElementById("launch_countdown_screen").remove(); main(); }, 50);
setTimeout(() => { document.getElementById("launch_countdown_screen").remove(); main(); }, 0);
}
}

Expand Down
35 changes: 0 additions & 35 deletions javascript/SignedBundleTemplate.txt

This file was deleted.

110 changes: 0 additions & 110 deletions javascript/SignedClientTemplate.txt

This file was deleted.

8 changes: 0 additions & 8 deletions javascript/UpdateDownloadSources.txt

This file was deleted.

Binary file removed javascript/favicon.png
Binary file not shown.
Loading

0 comments on commit c3babdb

Please sign in to comment.