diff options
author | Petr Mrázek <peterix@gmail.com> | 2015-06-28 11:25:32 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2015-06-28 11:25:32 +0200 |
commit | d403d12d6abfd9c89c2aaedc6e18b39fd608d798 (patch) | |
tree | 79f242a934f63c30067873d4a27eae6645ea07b2 /application/package/ubuntu/multimc_1.0-1/opt/multimc/run.sh | |
parent | b343434f995f4e7ffedf27fa46c7a2eef6ad0871 (diff) | |
download | MultiMC-d403d12d6abfd9c89c2aaedc6e18b39fd608d798.tar MultiMC-d403d12d6abfd9c89c2aaedc6e18b39fd608d798.tar.gz MultiMC-d403d12d6abfd9c89c2aaedc6e18b39fd608d798.tar.lz MultiMC-d403d12d6abfd9c89c2aaedc6e18b39fd608d798.tar.xz MultiMC-d403d12d6abfd9c89c2aaedc6e18b39fd608d798.zip |
GH-1096 simple debian/ubuntu wrapper package
Built with `fakeroot dpkg-deb --build multimc_1.0-1`
Diffstat (limited to 'application/package/ubuntu/multimc_1.0-1/opt/multimc/run.sh')
-rwxr-xr-x | application/package/ubuntu/multimc_1.0-1/opt/multimc/run.sh | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/application/package/ubuntu/multimc_1.0-1/opt/multimc/run.sh b/application/package/ubuntu/multimc_1.0-1/opt/multimc/run.sh new file mode 100755 index 00000000..3d934037 --- /dev/null +++ b/application/package/ubuntu/multimc_1.0-1/opt/multimc/run.sh @@ -0,0 +1,26 @@ +#!/bin/bash + +INSTDIR=~/MultiMC + +deploy() { + mkdir -p $INSTDIR + cd ${INSTDIR} + + wget --progress=dot:force "http://files.multimc.org/downloads/mmc-stable-lin64.tar.gz" 2>&1 | sed -u 's/.* \([0-9]\+%\)\ \+\([0-9.]\+.\) \(.*\)/\1\n# Downloading at \2\/s, ETA \3/' | zenity --progress --auto-close --auto-kill --title="Downloading MultiMC..." + + tar -xzf mmc-stable-lin64.tar.gz --strip-components=2 + rm mmc-stable-lin64.tar.gz + chmod +x MultiMC + ./MultiMC +} + +runmmc() { + cd ${INSTDIR} + ./MultiMC +} + +if [[ ! -f ${INSTDIR}/MultiMC ]]; then + deploy +else + runmmc +fi |