Add Descent 2 app
parent
9dc31d2d05
commit
8da121c097
@ -0,0 +1,5 @@
|
|||||||
|
D2X-Rebirth - source port of Descent 2: Counterstrike from 1996
|
||||||
|
This package installs the shareware version, if you own the full game you can copy the game data to ~/.d2x-rebirth directory (replacing existing files).
|
||||||
|
To run: Menu -> Games -> Descent 2
|
||||||
|
To run in a terminal: ~/.d1x-rebirth/d1x-rebirth-rpi -hogdir ~/.d1x-rebirth
|
||||||
|
To exit: select "Quit" in the game's main menu.
|
Binary file not shown.
After Width: | Height: | Size: 1.5 KiB |
Binary file not shown.
After Width: | Height: | Size: 6.7 KiB |
@ -0,0 +1,47 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
DIRECTORY="$(dirname "$(dirname "$( cd "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )")")"
|
||||||
|
|
||||||
|
function error {
|
||||||
|
echo -e "\\e[91m$1\\e[39m"
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
|
||||||
|
echo ' __________'
|
||||||
|
echo '__________/ DXX-Rebirth /'
|
||||||
|
|
||||||
|
"${DIRECTORY}/pkg-install" "libsdl-mixer1.2 libsdl-image1.2 libphysfs1 libglu1-mesa" "$(dirname "$0")" || exit 1
|
||||||
|
|
||||||
|
mkdir ~/.d2x-rebirth
|
||||||
|
cd ~/.d2x-rebirth
|
||||||
|
|
||||||
|
# rename existing files to lower case
|
||||||
|
for i in $( ls | grep [A-Z] ); do mv -f $i `echo $i | tr 'A-Z' 'a-z'`; done
|
||||||
|
|
||||||
|
if [ ! -f descent2.hog -a ! -f d2demo.hog ]; then
|
||||||
|
echo No game content detected, downloading shareware version
|
||||||
|
wget -q --show-progress https://www.dxx-rebirth.com/download/dxx/content/descent2-pc-demo.zip || error "failed to download game content!"
|
||||||
|
unzip descent2-pc-demo.zip
|
||||||
|
rm descent2-pc-demo.zip
|
||||||
|
fi
|
||||||
|
|
||||||
|
wget -N -q --show-progress https://www.dxx-rebirth.com/download/dxx/res/d2xr-sc55-music.dxa || error "failed to download ogg soundtrack!"
|
||||||
|
wget -N -q --show-progress https://github.com/dimag0g/dxx-rebirth/releases/download/v0.61-switch/d2x-rebirth-rpi || error "failed to download the executable!"
|
||||||
|
chmod a+x d2x-rebirth-rpi
|
||||||
|
|
||||||
|
echo "ResolutionX=640
|
||||||
|
ResolutionY=480
|
||||||
|
WindowMode=1" > descent.cfg
|
||||||
|
|
||||||
|
echo "[Desktop Entry]
|
||||||
|
Name=Descent 2
|
||||||
|
Comment=DXX-Rebirth source port of Descent 2: Counterstrike from 1996...
|
||||||
|
Exec=$HOME/.d2x-rebirth/d2x-rebirth-rpi -hogdir $HOME/.d2x-rebirth
|
||||||
|
Icon=$(dirname "$0")/icon-64.png
|
||||||
|
Terminal=false
|
||||||
|
Type=Application
|
||||||
|
Categories=Game;ActionGame;
|
||||||
|
StartupNotify=false
|
||||||
|
" > ~/.local/share/applications/d2x-rebirth.desktop || error "Failed to create menu entry!"
|
||||||
|
|
||||||
|
exit 0
|
@ -0,0 +1,7 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
DIRECTORY="$(dirname "$(dirname "$( cd "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )")")"
|
||||||
|
|
||||||
|
rm -fr ~/.d2x-rebirth
|
||||||
|
rm ~/.local/share/applications/d2x-rebirth.desktop
|
||||||
|
"${DIRECTORY}/purge-installed" "$(dirname "$0")" || exit 1
|
@ -0,0 +1 @@
|
|||||||
|
https://www.dxx-rebirth.com/
|
Loading…
Reference in New Issue