GH-1096 simple debian/ubuntu wrapper package
Built with `fakeroot dpkg-deb --build multimc_1.0-1`
This commit is contained in:
parent
b343434f99
commit
d403d12d6a
11
application/package/ubuntu/multimc_1.0-1/DEBIAN/control
Normal file
11
application/package/ubuntu/multimc_1.0-1/DEBIAN/control
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
Package: multimc
|
||||||
|
Version: 1.0.1
|
||||||
|
Architecture: amd64
|
||||||
|
Maintainer: Petr Mrázek <peterix@gmail.com>
|
||||||
|
Section: games
|
||||||
|
Priority: optional
|
||||||
|
Installed-Size: 75
|
||||||
|
Depends: zenity, default-jre
|
||||||
|
Homepage: http://multimc.org
|
||||||
|
Description: A local install wrapper for MultiMC
|
||||||
|
|
3
application/package/ubuntu/multimc_1.0-1/DEBIAN/postrm
Executable file
3
application/package/ubuntu/multimc_1.0-1/DEBIAN/postrm
Executable file
@ -0,0 +1,3 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
set -e
|
||||||
|
update-desktop-database
|
1993
application/package/ubuntu/multimc_1.0-1/opt/multimc/icon.svg
Normal file
1993
application/package/ubuntu/multimc_1.0-1/opt/multimc/icon.svg
Normal file
File diff suppressed because it is too large
Load Diff
After Width: | Height: | Size: 52 KiB |
26
application/package/ubuntu/multimc_1.0-1/opt/multimc/run.sh
Executable file
26
application/package/ubuntu/multimc_1.0-1/opt/multimc/run.sh
Executable file
@ -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
|
@ -0,0 +1,16 @@
|
|||||||
|
[Desktop Entry]
|
||||||
|
Categories=Game;
|
||||||
|
Exec=/opt/multimc/run.sh
|
||||||
|
Icon=/opt/multimc/icon.svg
|
||||||
|
Keywords=game;
|
||||||
|
MimeType=
|
||||||
|
Name=MultiMC 5
|
||||||
|
Path=
|
||||||
|
StartupNotify=true
|
||||||
|
Terminal=false
|
||||||
|
TerminalOptions=
|
||||||
|
Type=Application
|
||||||
|
X-DBUS-ServiceName=
|
||||||
|
X-DBUS-StartupType=
|
||||||
|
X-KDE-SubstituteUID=false
|
||||||
|
X-KDE-Username=
|
Loading…
Reference in New Issue
Block a user