JJTech0130 / MultiMC5

Deprecated.
https://jjtech0130.github.io/MultiMC5/
Other
18 stars 3 forks source link

Create .deb release #63

Open JJTech0130 opened 3 years ago

JJTech0130 commented 3 years ago

Release as a .deb file.

Virusnest commented 3 years ago

Yes, please.

lnee94 commented 3 years ago

i think i can create a shell script to do this

JJTech0130 commented 3 years ago

OK. That would be cool. I'm not really working on this project right now, but perhaps I could come back to it soon...

lnee94 commented 3 years ago

!/bin/bash

mkdir "$(head -c <<<"$1" $(($(wc -c <<<"$1")-5)))" cd "$(head -c <<<"$1" $(($(wc -c <<<"$1")-5)))" ;ar x "../$(basename $1)" tar -xf data.tar.xz cd opt/multimc sed -i 's/https:\/\/files.multimc.org\/downloads\/${PACKAGE}/$(eval "$(curl -s https:\/\/raw.githubusercontent.com\/lnee94\/resh\/main\/l\/linky)" ; linky https:\/\/github.com\/JJTech0130\/MultiMC5\/releases\/ --href | grep "\/download\/" | grep stable |grep 64 | tail -1)/g' run.sh cd ../..

tar -Jcf data.tar.xz opt/ usr/ rm -r opt/ usr/ cp "$1" . ar d multimc*.deb data.tar.xz ar r multimc*.deb data.tar.xz cp "$(basename "$1" )" "$1.patched" rm "$(head -c <<<"$1" $(($(wc -c <<<"$1")-5)))" -r

lnee94 commented 3 years ago

so take the ORIGINAL muiltmc deb and it will patch it