From 64fc1eea2d8dd7768e98875cdc8c7955b0f3622c Mon Sep 17 00:00:00 2001 From: lordlogo2002 Date: Sun, 21 Dec 2025 12:31:26 +0100 Subject: [PATCH] Bump version to 0.0.2, remove old build script, add new build tool, and update options configuration --- build.gradle | 2 +- build.sh | 1 - chipper | 119 ++++++++++++++++++++ config/options.txt | 137 +++++++++++++++++++++++ gradle/wrapper/gradle-wrapper.properties | 2 +- 5 files changed, 258 insertions(+), 3 deletions(-) delete mode 100755 build.sh create mode 100755 chipper create mode 100644 config/options.txt diff --git a/build.gradle b/build.gradle index d72747b..677dedf 100644 --- a/build.gradle +++ b/build.gradle @@ -3,7 +3,7 @@ plugins { id 'maven-publish' } -version = "0.0.1" +version = "0.0.2" group = "net.Chipperfluff" repositories { diff --git a/build.sh b/build.sh deleted file mode 100755 index 83cbfcc..0000000 --- a/build.sh +++ /dev/null @@ -1 +0,0 @@ -clear;rm -rf run;./gradlew runClient --stacktrace --info;echo '';tree --gitignore \ No newline at end of file diff --git a/chipper b/chipper new file mode 100755 index 0000000..84fd3b7 --- /dev/null +++ b/chipper @@ -0,0 +1,119 @@ +#!/usr/bin/env bash + +# Do NOT use `set -e` with Gradle +set -u + +RUN_DIR="run" +OPTIONS_SRC="./config/options.txt" +OPTIONS_DST="$RUN_DIR/options.txt" + +GRADLE="./gradlew" +GRADLE_FLAGS=( + "--console=plain" + "--configuration-cache" +) + +# ---------- helpers ---------- + +inject_options() { + if [[ -f "$OPTIONS_SRC" ]]; then + echo "[*] Injecting options.txt..." + cp "$OPTIONS_SRC" "$OPTIONS_DST" + else + echo "[!] Warning: $OPTIONS_SRC not found, skipping injection" + fi +} + +ensure_run_dir() { + if [[ ! -d "$RUN_DIR" ]]; then + echo "[*] Creating run directory..." + mkdir -p "$RUN_DIR" + fi +} + +# ---------- actions ---------- + +clean() { + clear + echo "[*] Running gradle clean..." + $GRADLE clean "${GRADLE_FLAGS[@]}" +} + +build() { + clear + + ensure_run_dir + inject_options + + echo "[*] Running client..." + $GRADLE runClient "${GRADLE_FLAGS[@]}" +} + +show_tree() { + clear + echo "[*] Project tree (respecting .gitignore):" + tree --gitignore +} + +ship() { + clear + echo "[*] Building project..." + $GRADLE build "${GRADLE_FLAGS[@]}" + echo "[+] Build ready to ship." +} + +# ---------- help ---------- + +help_menu() { + cat <<'EOF' +🐿️ S Q U I R R E L B U I L D T O O L 🐿️ + +Usage: + ./chipper [option] + +Options: + --clean Run gradle clean + --build Run client (fast path) + --tree Show project tree only + --ship Build project + --help Show this help menu + +Notes: +- Uses Gradle configuration cache +- Plain console output (no fake progress) +- Safe to Ctrl+C after EXECUTION starts + +The squirrel believes in you. +EOF +} + +# ---------- argument parsing ---------- + +if [[ $# -eq 0 ]]; then + help_menu + exit 0 +fi + +case "$1" in + --clean) + clean + ;; + --build) + build + ;; + --tree) + show_tree + ;; + --ship) + ship + ;; + --help|-h) + help_menu + ;; + *) + echo "[!] Unknown option: $1" + echo "" + help_menu + exit 1 + ;; +esac diff --git a/config/options.txt b/config/options.txt new file mode 100644 index 0000000..3e3dfc2 --- /dev/null +++ b/config/options.txt @@ -0,0 +1,137 @@ +version:3465 +autoJump:false +operatorItemsTab:false +autoSuggestions:true +chatColors:true +chatLinks:true +chatLinksPrompt:true +enableVsync:true +entityShadows:true +forceUnicodeFont:false +discrete_mouse_scroll:false +invertYMouse:false +realmsNotifications:true +reducedDebugInfo:false +showSubtitles:false +directionalAudio:false +touchscreen:false +fullscreen:false +bobView:true +toggleCrouch:false +toggleSprint:false +darkMojangStudiosBackground:false +hideLightningFlashes:false +mouseSensitivity:0.5 +fov:0.0 +screenEffectScale:1.0 +fovEffectScale:1.0 +darknessEffectScale:1.0 +glintSpeed:0.5 +glintStrength:0.75 +damageTiltStrength:1.0 +highContrast:false +gamma:0.5 +renderDistance:12 +simulationDistance:12 +entityDistanceScaling:1.0 +guiScale:0 +particles:0 +maxFps:120 +graphicsMode:1 +ao:true +prioritizeChunkUpdates:0 +biomeBlendRadius:2 +renderClouds:"true" +resourcePacks:["fabric"] +incompatibleResourcePacks:[] +lastServer: +lang:en_us +soundDevice:"" +chatVisibility:0 +chatOpacity:1.0 +chatLineSpacing:0.0 +textBackgroundOpacity:0.5 +backgroundForChatOnly:true +hideServerAddress:false +advancedItemTooltips:false +pauseOnLostFocus:true +overrideWidth:0 +overrideHeight:0 +chatHeightFocused:1.0 +chatDelay:0.0 +chatHeightUnfocused:0.4375 +chatScale:1.0 +chatWidth:1.0 +notificationDisplayTime:1.0 +mipmapLevels:4 +useNativeTransport:true +mainHand:"right" +attackIndicator:1 +narrator:0 +tutorialStep:movement +mouseWheelSensitivity:1.0 +rawMouseInput:true +glDebugVerbosity:1 +skipMultiplayerWarning:false +skipRealms32bitWarning:false +hideMatchedNames:true +joinedFirstServer:false +hideBundleTutorial:false +syncChunkWrites:false +showAutosaveIndicator:true +allowServerListing:true +onlyShowSecureChat:false +panoramaScrollSpeed:1.0 +telemetryOptInExtra:false +onboardAccessibility:false +key_key.attack:key.mouse.left +key_key.use:key.mouse.right +key_key.forward:key.keyboard.w +key_key.left:key.keyboard.a +key_key.back:key.keyboard.s +key_key.right:key.keyboard.d +key_key.jump:key.keyboard.space +key_key.sneak:key.keyboard.left.shift +key_key.sprint:key.keyboard.left.control +key_key.drop:key.keyboard.q +key_key.inventory:key.keyboard.e +key_key.chat:key.keyboard.t +key_key.playerlist:key.keyboard.tab +key_key.pickItem:key.mouse.middle +key_key.command:key.keyboard.slash +key_key.socialInteractions:key.keyboard.p +key_key.screenshot:key.keyboard.f2 +key_key.togglePerspective:key.keyboard.f5 +key_key.smoothCamera:key.keyboard.unknown +key_key.fullscreen:key.keyboard.f11 +key_key.spectatorOutlines:key.keyboard.unknown +key_key.swapOffhand:key.keyboard.f +key_key.saveToolbarActivator:key.keyboard.c +key_key.loadToolbarActivator:key.keyboard.x +key_key.advancements:key.keyboard.l +key_key.hotbar.1:key.keyboard.1 +key_key.hotbar.2:key.keyboard.2 +key_key.hotbar.3:key.keyboard.3 +key_key.hotbar.4:key.keyboard.4 +key_key.hotbar.5:key.keyboard.5 +key_key.hotbar.6:key.keyboard.6 +key_key.hotbar.7:key.keyboard.7 +key_key.hotbar.8:key.keyboard.8 +key_key.hotbar.9:key.keyboard.9 +soundCategory_master:1.0 +soundCategory_music:0.0 +soundCategory_record:1.0 +soundCategory_weather:1.0 +soundCategory_block:1.0 +soundCategory_hostile:1.0 +soundCategory_neutral:1.0 +soundCategory_player:1.0 +soundCategory_ambient:1.0 +soundCategory_voice:1.0 +modelPart_cape:true +modelPart_jacket:true +modelPart_left_sleeve:true +modelPart_right_sleeve:true +modelPart_left_pants_leg:true +modelPart_right_pants_leg:true +modelPart_hat:true diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index b82aa23..d6da288 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,7 +1,7 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip -networkTimeout=10000 +networkTimeout=600000 validateDistributionUrl=true zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists