mirror of
https://git.webmc.xyz/Starlike-Client/Starlike-Client
synced 2025-06-05 18:32:01 -09:00
Starlike v0.1.1
This commit is contained in:
parent
d8637f6863
commit
fdb046cdce
71
.github/workflows/build.yml
vendored
Normal file
71
.github/workflows/build.yml
vendored
Normal 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
3
.gitignore
vendored
@ -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
0
CompileEPK.sh
Normal file → Executable file
0
CompileJS.sh
Normal file → Executable file
0
CompileJS.sh
Normal file → Executable 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
2
MakeOfflineDownload.sh
Normal file → Executable 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
0
MakeSignedClient.sh
Normal file → Executable 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
|
||||
|
26
desktopRuntime/eclipseProject/.classpath
Normal file
26
desktopRuntime/eclipseProject/.classpath
Normal 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>
|
44
desktopRuntime/eclipseProject/.project
Normal file
44
desktopRuntime/eclipseProject/.project
Normal 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>
|
@ -1,5 +0,0 @@
|
||||
{
|
||||
"variants": {
|
||||
"normal": { "model": "iron_grate" }
|
||||
}
|
||||
}
|
@ -1,5 +0,0 @@
|
||||
{
|
||||
"variants": {
|
||||
"normal": { "model": "platinum_block" }
|
||||
}
|
||||
}
|
@ -1,5 +0,0 @@
|
||||
{
|
||||
"variants": {
|
||||
"normal": { "model": "platinum_ore" }
|
||||
}
|
||||
}
|
@ -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
|
||||
|
@ -0,0 +1,5 @@
|
||||
{
|
||||
"variants": {
|
||||
"normal": { "model": "starlike:iron_grate" }
|
||||
}
|
||||
}
|
@ -0,0 +1,5 @@
|
||||
{
|
||||
"variants": {
|
||||
"normal": { "model": "starlike:platinum_block" }
|
||||
}
|
||||
}
|
@ -0,0 +1,5 @@
|
||||
{
|
||||
"variants": {
|
||||
"normal": { "model": "starlike:platinum_ore" }
|
||||
}
|
||||
}
|
@ -0,0 +1,5 @@
|
||||
{
|
||||
"variants": {
|
||||
"normal": { "model": "starlike:uranium_ore" }
|
||||
}
|
||||
}
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"parent": "block/cube_all",
|
||||
"textures": {
|
||||
"all": "blocks/iron_grate"
|
||||
"all": "starlike:blocks/iron_grate"
|
||||
}
|
||||
}
|
@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "block/cube_all",
|
||||
"textures": {
|
||||
"all": "starlike:blocks/platinum_block"
|
||||
}
|
||||
}
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"parent": "block/cube_all",
|
||||
"textures": {
|
||||
"all": "blocks/platinum_ore"
|
||||
"all": "starlike:blocks/platinum_ore"
|
||||
}
|
||||
}
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"parent": "block/cube_all",
|
||||
"textures": {
|
||||
"all": "blocks/platinum_block"
|
||||
"all": "starlike:blocks/uranium_ore"
|
||||
}
|
||||
}
|
@ -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 ]
|
||||
}
|
||||
}
|
||||
}
|
@ -1,5 +1,5 @@
|
||||
{
|
||||
"parent": "block/iron_grate",
|
||||
"parent": "starlike:block/iron_grate",
|
||||
"display": {
|
||||
"thirdperson": {
|
||||
"rotation": [ 10, -45, 170 ],
|
@ -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 ]
|
||||
}
|
||||
}
|
||||
}
|
@ -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
Loading…
x
Reference in New Issue
Block a user