mirror of
https://github.com/NekoMonci12/mine-compress.git
synced 2025-12-19 15:09:20 +00:00
c1b0fbae0d57ee29ce8d06201ee7641481d2be5e
🛠️ Mine Compress
A Linux shell script to optimize Minecraft resource packs by reducing the size of .png and .ogg files without losing significant quality.
✨ Features
- 🔍 Recursively scans a target folder
- 🖼️ Optimizes
.pngfiles usingoptipng -o7 - 🔊 Re-encodes
.oggfiles withffmpegto mono, 64kbps - 📦 Automatically installs required dependencies (Debian, Fedora, Arch)
- ✅ Interactive CLI input
🚀 How It Works
- User submits an issue using the issue template.
- The issue is labeled
optimize-request. - GitHub Actions parses the issue form, downloads the
.zip, optimizes assets, and re‑uploads the optimized.zipas an artifact.
🧾 Usage
1. Clone Repository
git clone https://github.com/NekoMonci12/mine-compress.git
cd mine-compress
chmod +x optimize_resources.sh
2. Run The Scripts
./optimize_resources.sh
📦 Requirements
- optipng
- ffmpeg
- zip
📥 Github Workflows
- Click Here For Create New Issue.
- Provide a public
.zipURL of your resource pack. - The issue is automatically tagged with
optimize-request. - GitHub Actions runs the optimization workflow.
Once the workflow completes, you’ll find the optimized .zip under the Actions → Artifacts → optimized-pack section.
Languages
Shell
100%