Last active
December 2, 2024 14:47
-
-
Save Scherso/6cb3c1e435cc2c7e22ab4066e5c76779 to your computer and use it in GitHub Desktop.
A script to launch Lunar client with the addition of the Weave-Agent.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| # Add your JVM Args here. | |
| declare -r LUNAR_JVM_ARGS="\ | |
| --add-modules jdk.naming.dns \ | |
| --add-exports jdk.naming.dns/com.sun.jndi.dns=java.naming \ | |
| -Djna.boot.library.path=natives \ | |
| -Dlog4j2.formatMsgNoLookups=true \ | |
| --add-opens java.base/java.io=ALL-UNNAMED \ | |
| -Xms3072m \ | |
| -Xmx3072m \ | |
| -Djava.library.path=natives" | |
| # Add your agent to inject here. | |
| declare -r LUNAR_AGENT="${HOME}/Downloads/Lunar-Thing/Weave-Loader-Agent-0.1.0.jar" | |
| # Version specific variable. | |
| declare -r LUNAR_VERSION="1.8.9" | |
| # Width and Height | |
| declare -r LUNAR_WIDTH="854" | |
| declare -r LUNAR_HEIGHT="480" | |
| # JVM stuff | |
| declare -r LUNAR_JRE="${HOME}/.lunarclient/jre/40fc5ff473587a781315b64674667ee1b902fe18/zulu16.32.15-ca-fx-jdk16.0.2-linux_x64/bin/java" | |
| declare -r LUNAR_CLASSPATH="lunar-lang.jar:lunar-emote.jar:lunar.jar:optifine-0.1.0-SNAPSHOT-all.jar:v1_8-0.1.0-SNAPSHOT-all.jar:common-0.1.0-SNAPSHOT-all.jar:genesis-0.1.0-SNAPSHOT-all.jar" | |
| declare -r LUNAR_MAIN_CLASS="com.moonsworth.lunar.genesis.Genesis" | |
| declare -r ICHOR_EXT_FILE="OptiFine_v1_8.jar" | |
| cd "${HOME}/.lunarclient/offline/multiver" | |
| exec "${LUNAR_JRE}" ${LUNAR_JVM_ARGS} \ | |
| -cp "${LUNAR_CLASSPATH}" \ | |
| -javaagent:"${LUNAR_AGENT}" \ | |
| "${LUNAR_MAIN_CLASS}" \ | |
| --version "${LUNAR_VERSION}" \ | |
| --accessToken 0 \ | |
| --assetIndex ${LUNAR_VERSION/.9/} \ | |
| --userProperties {} \ | |
| --gameDir "${HOME}/.minecraft" \ | |
| --texturesDir "${HOME}/.lunarclient/textures" \ | |
| --width "${LUNAR_WIDTH}" \ | |
| --height "${LUNAR_HEIGHT}" \ | |
| --workingDirectory . \ | |
| --classpathDir . \ | |
| --ichorClassPath "${LUNAR_CLASSPATH}" \ | |
| --ichorExternalFiles "${ICHOR_EXT_FILE}" |
@AnokAnA I'm not sure what you mean, this is just a reference for me to launch lunar client via a command line interface.
Oh so that is what you mean! ok I understand now
Sam ***@***.***> schrieb am So., 1. Dez. 2024, 18:47:
… ***@***.**** commented on this gist.
------------------------------
@AnokAnA <https://github.com/AnokAnA> I'm not sure what you mean, this is
just a reference for me to launch lunar client via a command line interface.
—
Reply to this email directly, view it on GitHub
<https://gist.github.com/Scherso/6cb3c1e435cc2c7e22ab4066e5c76779#gistcomment-5312253>
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BIDLR5PA6EXNYSPRJJDFJEL2DNDTPBFKMF2HI4TJMJ2XIZLTSKBKK5TBNR2WLJDUOJ2WLJDOMFWWLO3UNBZGKYLEL5YGC4TUNFRWS4DBNZ2F6YLDORUXM2LUPGBKK5TBNR2WLJDHNFZXJJDOMFWWLK3UNBZGKYLEL52HS4DFVRZXKYTKMVRXIX3UPFYGLK2HNFZXIQ3PNVWWK3TUUZ2G64DJMNZZDAVEOR4XAZNEM5UXG5FFOZQWY5LFVEYTEMJZGAZTSMBWU52HE2LHM5SXFJTDOJSWC5DF>
.
You are receiving this email because you were mentioned.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>
.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
where should i put it?