NOISSUE add a linux system packaging install layout
This commit is contained in:
11
application/package/linux/multimc.desktop
Executable file
11
application/package/linux/multimc.desktop
Executable file
@ -0,0 +1,11 @@
|
||||
[Desktop Entry]
|
||||
Version=1.0
|
||||
Encoding=UTF-8
|
||||
Name=MultiMC
|
||||
GenericName=Minecraft launcher
|
||||
Comment=Free, open source launcher and instance manager for Minecraft.
|
||||
Type=Application
|
||||
Terminal=false
|
||||
Exec=multimc
|
||||
Icon=multimc
|
||||
Categories=Application;Game
|
@ -1,11 +0,0 @@
|
||||
Package: multimc
|
||||
Version: 1.1-2
|
||||
Architecture: all
|
||||
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
|
||||
|
@ -1,3 +0,0 @@
|
||||
#!/bin/sh
|
||||
set -e
|
||||
update-desktop-database
|
File diff suppressed because it is too large
Load Diff
Before Width: | Height: | Size: 52 KiB |
@ -1,33 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
INSTDIR="${XDG_DATA_HOME-$HOME/.local/share}/multimc"
|
||||
|
||||
if [ `getconf LONG_BIT` = "64" ]
|
||||
then
|
||||
PACKAGE="mmc-stable-lin64.tar.gz"
|
||||
else
|
||||
PACKAGE="mmc-stable-lin32.tar.gz"
|
||||
fi
|
||||
|
||||
deploy() {
|
||||
mkdir -p $INSTDIR
|
||||
cd ${INSTDIR}
|
||||
|
||||
wget --progress=dot:force "https://files.multimc.org/downloads/${PACKAGE}" 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 ${PACKAGE} --transform='s,MultiMC/,,'
|
||||
rm ${PACKAGE}
|
||||
chmod +x MultiMC
|
||||
}
|
||||
|
||||
runmmc() {
|
||||
cd ${INSTDIR}
|
||||
./MultiMC
|
||||
}
|
||||
|
||||
if [[ ! -f ${INSTDIR}/MultiMC ]]; then
|
||||
deploy
|
||||
runmmc
|
||||
else
|
||||
runmmc
|
||||
fi
|
@ -1,16 +0,0 @@
|
||||
[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=
|
@ -1,12 +0,0 @@
|
||||
# What is this?
|
||||
A simple ubuntu package for MultiMC that wraps the contains a script that downloads and installs real MultiMC on ubuntu based systems.
|
||||
|
||||
It contains a `.dekstop` file, an icon, and a simple script that does the heavy lifting.
|
||||
|
||||
# How to build this?
|
||||
You need dpkg utils and then run:
|
||||
```
|
||||
fakeroot dpkg-deb --build multimc_1.1-1
|
||||
```
|
||||
|
||||
Replace the version with whatever is appropriate.
|
Reference in New Issue
Block a user