This commit is contained in:
2025-08-28 23:45:56 +08:00
parent a26d4b88d9
commit a70bc2477e
11 changed files with 153 additions and 0 deletions

View File

@@ -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

View File

@@ -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" "$@"

View File

@@ -0,0 +1 @@
/opt/apps/net.hmcl.huangyuhui.jre21/jre