Latest compatible version of Classicube from the original GitHub repository (https://github.com/ClassiCube/ClassiCube) that can be compiled on Classicube for PowerMac PPC running Mac OS X 10.4.
This commit is contained in:
43
misc/linux/install-desktop-entry.sh
Normal file
43
misc/linux/install-desktop-entry.sh
Normal file
@@ -0,0 +1,43 @@
|
||||
DESKTOP_FILE=ClassiCube.desktop
|
||||
GAME_DIR=`pwd`
|
||||
|
||||
# remove existing ClassiCube desktop entry file
|
||||
rm $DESKTOP_FILE
|
||||
|
||||
# download ClassiCube icon from github if necessary
|
||||
if [ -f "CCicon.png" ]
|
||||
then
|
||||
echo "CCicon.png exists already. Skipping download."
|
||||
else
|
||||
echo "CCicon.png doesn't exist. Attempting to download it.."
|
||||
wget "https://raw.githubusercontent.com/ClassiCube/classicube/master/misc/CCicon.png"
|
||||
fi
|
||||
|
||||
# create ClassiCube desktop entry
|
||||
echo 'Creating ClassiCube.desktop..'
|
||||
cat >> $DESKTOP_FILE << EOF
|
||||
[Desktop Entry]
|
||||
Type=Application
|
||||
Comment=Minecraft Classic inspired sandbox game
|
||||
Name=ClassiCube
|
||||
Exec=$GAME_DIR/ClassiCube
|
||||
Icon=$GAME_DIR/CCicon.png
|
||||
Path=$GAME_DIR
|
||||
Terminal=false
|
||||
Categories=Game;
|
||||
Actions=singleplayer;resume;
|
||||
|
||||
[Desktop Action singleplayer]
|
||||
Name=Start singleplayer
|
||||
Exec=$GAME_DIR/ClassiCube --singleplayer
|
||||
|
||||
[Desktop Action resume]
|
||||
Name=Resume last server
|
||||
Exec=$GAME_DIR/ClassiCube --resume
|
||||
EOF
|
||||
chmod +x $DESKTOP_FILE
|
||||
|
||||
echo 'Installing ClassiCube.desktop..'
|
||||
# install ClassiCube desktop entry into the system
|
||||
sudo desktop-file-install --dir=/usr/share/applications ClassiCube.desktop
|
||||
sudo update-desktop-database /usr/share/applications
|
||||
Reference in New Issue
Block a user