Starlike v0.1.1

This commit is contained in:
zumbiepig 2025-01-20 11:13:17 -08:00
parent d8637f6863
commit fdb046cdce
No known key found for this signature in database
GPG Key ID: B50A3F986EC14691
2173 changed files with 42692 additions and 147442 deletions

71
.github/workflows/build.yml vendored Normal file
View File

@ -0,0 +1,71 @@
name: Build
on: [push, pull_request, workflow_dispatch]
jobs:
build:
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: "temurin"
java-version: "21"
cache: "gradle"
- name: Validate Gradle Wrapper
uses: gradle/actions/wrapper-validation@v3
- name: Compile JavaScript
run: ./gradlew generateJavaScript
- name: Compile assets
run: bash ./CompileEPK.sh
- name: Generate offline download
if: github.ref != 'refs/heads/main'
run: bash ./MakeOfflineDownload.sh
- name: Generate signed client
if: github.ref == 'refs/heads/main'
run: source ./SIGNED_CLIENT.env && echo -e "${{ vars.SIGNED_CLIENT_INPUT }}${{ secrets.SIGNED_CLIENT_SECRET }}" | bash ./MakeSignedClient.sh
- name: Prepare files - standard
if: github.ref != 'refs/heads/main'
run: |
mkdir -p ${{ runner.temp }}/gh-pages
cp -t ${{ runner.temp }}/gh-pages \
javascript/assets.epk \
javascript/classes.js \
javascript/classes.js.map \
javascript/favicon.png \
javascript/index.html
cp javascript/Starlike_Client_Offline.html ${{ runner.temp }}/gh-pages/offline.html
- name: Prepare files - signed
if: github.ref == 'refs/heads/main'
run: |
mkdir -p ${{ runner.temp }}/gh-pages
cp -t ${{ runner.temp }}/gh-pages \
javascript/assets.epk \
javascript/classes.js \
javascript/classes.js.map \
javascript/favicon.png \
javascript/index.html
cp javascript/Starlike_Client_Offline_Signed.html ${{ runner.temp }}/gh-pages/offline.html
cp javascript/Starlike_Client_Offline_Signed.html.dat ${{ runner.temp }}/gh-pages/latest_update.dat
- name: Upload web files
continue-on-error: true
uses: actions/upload-artifact@v4
with:
name: web_files
path: ${{ runner.temp }}/gh-pages
retention-days: 1
compression-level: 9
- name: Deploy to GitHub Pages
if: github.ref == 'refs/heads/main'
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ${{ runner.temp }}/gh-pages
cname: starlike.orionzleon.me
force_orphan: true
user_name: 'github-actions[bot]'
user_email: '41898282+github-actions[bot]@users.noreply.github.com'
commit_message: 'github-actions: deploy'

3
.gitignore vendored
View File

@ -1,7 +1,5 @@
.gradle
.settings
.classpath
.project
build
bin
proxyServer/bin
@ -19,3 +17,4 @@ javascript/assets.epk
javascript/classes.js
javascript/classes.js.map
javascript/Starlike_Client_Offline.html
/.metadata/

0
CompileEPK.sh Normal file → Executable file
View File

0
CompileJS.sh Normal file → Executable file
View File

View File

@ -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" "NUL" "javascript/Starlike_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" "javascript/Starlike_Client_Offline.html"
pause

2
MakeOfflineDownload.sh Normal file → Executable file
View File

@ -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/Starlike_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" "javascript/Starlike_Client_Offline.html"

0
MakeSignedClient.sh Normal file → Executable file
View File

View File

@ -45,7 +45,7 @@ teavm.js {
obfuscated = true
sourceMap = true
targetFileName = "../" + name
optimization = OptimizationLevel.BALANCED // Change to "AGGRESSIVE" for release
optimization = OptimizationLevel.AGGRESSIVE
outOfProcess = false
fastGlobalAnalysis = false
processMemory = 512

View File

@ -0,0 +1,26 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src_main_java"/>
<classpathentry kind="src" path="src_game_java"/>
<classpathentry kind="src" path="src_protocol-game_java"/>
<classpathentry kind="src" path="src_protocol-relay_java"/>
<classpathentry kind="src" path="src_lwjgl_java"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER">
<attributes>
<attribute name="module" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="lib" path="deps_fix/codecjorbis-20101023.jar"/>
<classpathentry kind="lib" path="deps_fix/codecwav-20101023.jar"/>
<classpathentry kind="lib" path="deps_fix/Java-WebSocket-1.5.1-with-dependencies.jar"/>
<classpathentry kind="lib" path="deps_fix/lwjgl.jar"/>
<classpathentry kind="lib" path="deps_fix/lwjgl-egl.jar"/>
<classpathentry kind="lib" path="deps_fix/lwjgl-glfw.jar"/>
<classpathentry kind="lib" path="deps_fix/lwjgl-jemalloc.jar"/>
<classpathentry kind="lib" path="deps_fix/lwjgl-openal.jar"/>
<classpathentry kind="lib" path="deps_fix/lwjgl-opengles.jar"/>
<classpathentry kind="lib" path="deps_fix/soundsystem-20120107.jar"/>
<classpathentry kind="lib" path="deps_fix/webrtc-java-0.8.0.jar"/>
<classpathentry kind="lib" path="deps_fix/UnsafeMemcpy.jar"/>
<classpathentry kind="output" path="bin"/>
</classpath>

View File

@ -0,0 +1,44 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>eclipseProject</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
<linkedResources>
<link>
<name>src_main_java</name>
<type>2</type>
<locationURI>PARENT-2-PROJECT_LOC../src/main/java</locationURI>
</link>
<link>
<name>src_game_java</name>
<type>2</type>
<locationURI>PARENT-2-PROJECT_LOC../src/game/java</locationURI>
</link>
<link>
<name>src_protocol-game_java</name>
<type>2</type>
<locationURI>PARENT-2-PROJECT_LOC../src/protocol-game/java</locationURI>
</link>
<link>
<name>src_protocol-relay_java</name>
<type>2</type>
<locationURI>PARENT-2-PROJECT_LOC../src/protocol-relay/java</locationURI>
</link>
<link>
<name>src_lwjgl_java</name>
<type>2</type>
<locationURI>PARENT-2-PROJECT_LOC../src/lwjgl/java</locationURI>
</link>
</linkedResources>
</projectDescription>

View File

@ -1,5 +0,0 @@
{
"variants": {
"normal": { "model": "iron_grate" }
}
}

View File

@ -1,5 +0,0 @@
{
"variants": {
"normal": { "model": "platinum_block" }
}
}

View File

@ -1,5 +0,0 @@
{
"variants": {
"normal": { "model": "platinum_ore" }
}
}

View File

@ -3294,10 +3294,12 @@ item.banner.straight_cross.lightBlue=Light Blue Cross
item.banner.straight_cross.magenta=Magenta Cross
item.banner.straight_cross.orange=Orange Cross
item.banner.straight_cross.white=White Cross
tile.ironGrate.name=Iron Grate
tile.orePlatinum.name=Platinum Ore
item.platinumIngot.name=Platinum Ingot
item.swordPlatinum.name=Platinum Sword
item.pickaxePlatinum.name=Platinum Pickaxe
tile.platinum_block.name=Platinum Block
tile.iron_grate.name=Iron Grate
tile.platinum_ore.name=Platinum Ore
tile.platinum_block.name=Platinum Block
tile.platinum_ingot.name=Platinum Ingot
item.platinum_sword.name=Platinum Sword
item.platinum_pickaxe.name=Platinum Pickaxe
tile.uranium_ore.name=Uranium Ore
item.normal_drill.name=Drill

View File

@ -0,0 +1,5 @@
{
"variants": {
"normal": { "model": "starlike:iron_grate" }
}
}

View File

@ -0,0 +1,5 @@
{
"variants": {
"normal": { "model": "starlike:platinum_block" }
}
}

View File

@ -0,0 +1,5 @@
{
"variants": {
"normal": { "model": "starlike:platinum_ore" }
}
}

View File

@ -0,0 +1,5 @@
{
"variants": {
"normal": { "model": "starlike:uranium_ore" }
}
}

View File

@ -1,6 +1,6 @@
{
"parent": "block/cube_all",
"textures": {
"all": "blocks/iron_grate"
"all": "starlike:blocks/iron_grate"
}
}

View File

@ -0,0 +1,6 @@
{
"parent": "block/cube_all",
"textures": {
"all": "starlike:blocks/platinum_block"
}
}

View File

@ -1,6 +1,6 @@
{
"parent": "block/cube_all",
"textures": {
"all": "blocks/platinum_ore"
"all": "starlike:blocks/platinum_ore"
}
}

View File

@ -1,6 +1,6 @@
{
"parent": "block/cube_all",
"textures": {
"all": "blocks/platinum_block"
"all": "starlike:blocks/uranium_ore"
}
}

View File

@ -0,0 +1,18 @@
{
"parent": "builtin/generated",
"textures": {
"layer0": "starlike:items/normal_drill"
},
"display": {
"thirdperson": {
"rotation": [ 0, 90, -35 ],
"translation": [ 0, 1.25, -3.5 ],
"scale": [ 0.85, 0.85, 0.85 ]
},
"firstperson": {
"rotation": [ 0, -135, 25 ],
"translation": [ 0, 4, 2 ],
"scale": [ 1.7, 1.7, 1.7 ]
}
}
}

View File

@ -1,5 +1,5 @@
{
"parent": "block/iron_grate",
"parent": "starlike:block/iron_grate",
"display": {
"thirdperson": {
"rotation": [ 10, -45, 170 ],

View File

@ -0,0 +1,10 @@
{
"parent": "starlike:block/platinum_block",
"display": {
"thirdperson": {
"rotation": [ 10, -45, 170 ],
"translation": [ 0, 1.5, -2.75 ],
"scale": [ 0.375, 0.375, 0.375 ]
}
}
}

View File

@ -1,7 +1,7 @@
{
"parent": "builtin/generated",
"textures": {
"layer0": "items/platinum_ingot"
"layer0": "starlike:items/platinum_ingot"
},
"display": {
"thirdperson": {

Some files were not shown because too many files have changed in this diff Show More