add HMCL
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
[Desktop Entry]
|
||||
Categories=Game;
|
||||
Comment=The Minecraft Launcher
|
||||
Exec="/opt/apps/net.hmcl.huangyuhui/files/bin/hmcl"
|
||||
Icon=hmcl
|
||||
Name=HMCL(dstore)
|
||||
Name[zh_CN]=HMCL我的世界启动器
|
||||
Terminal=false
|
||||
Type=Application
|
||||
X-Deepin-Vendor=user-custom
|
||||
X-Deepin-CreatedBy=com.deepin.dde.daemon.Launcher
|
||||
X-Deepin-AppID=HMCL
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 12 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 12 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 12 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 12 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 12 KiB |
@@ -0,0 +1,19 @@
|
||||
#!/bin/bash
|
||||
VER=$(basename $(ls /opt/apps/net.hmcl.huangyuhui/files/lib/hmcl/*.jar)).version
|
||||
if [[ "$1" != "-p" ]]; then
|
||||
WORKDIR=${XDG_CONFIG_HOME:-$HOME/.config}/hmcl
|
||||
mkdir -p $WORKDIR
|
||||
cd $WORKDIR
|
||||
if [ ! -e "${VER}" ];then
|
||||
rm $WORKDIR/*.version
|
||||
rm $WORKDIR/*.jar
|
||||
touch ${VER}
|
||||
cp /opt/apps/net.hmcl.huangyuhui/files/lib/hmcl/*.jar .
|
||||
fi
|
||||
ls hmcl.json > /dev/null 2>&1 || touch hmcl.json
|
||||
ls *.jar > /dev/null 2>&1 || cp /opt/apps/net.hmcl.huangyuhui/files/lib/hmcl/*.jar .
|
||||
fi
|
||||
|
||||
JAR_FILE=$(ls $WORKDIR/*.jar)
|
||||
|
||||
exec /opt/apps/net.hmcl.huangyuhui/files/lib/jre/bin/java -jar "$JAR_FILE" "$@"
|
||||
@@ -0,0 +1 @@
|
||||
/opt/apps/net.hmcl.huangyuhui.jre21/jre
|
||||
Reference in New Issue
Block a user