Adding stuff

This commit is contained in:
2023-01-02 21:32:46 +00:00
parent 572bc36804
commit 0b2cbe90a6
5 changed files with 79 additions and 0 deletions

42
.local/bin/setup/installdice Executable file
View File

@@ -0,0 +1,42 @@
#! /bin/bash
#
# Dice (Discrete Integrated Circuit Emulator) is an emulation engine for very
# old arcade games that did not have a CPU. This emulator accurately simulates
# the logic gates on the board.
doas pacman --noconfirm --needed -S wine winetricks
winetricks
doas mkdir /opt/DICE
dir=$(mktemp -d)
wget https://netix.dl.sourceforge.net/project/dice/DICE/DICE%200.9/dice.0.9.win.x64.zip -O ${dir}/dice.zip
doas unzip -qq ${dir}/dice.zip -d /opt/DICE
doas touch /opt/DICE/dice.sh
doas tee /opt/DICE/dice.sh <<HRD
#! /bin/sh
wine /opt/DICE/dice.exe \$1
HRD
doas chmod 755 /opt/DICE
doas chmod +x /opt/DICE/dice.sh
doas ln -fs /opt/DICE/dice.sh /usr/bin/dice
doas touch /opt/DICE/DICE.desktop
doas tee /opt/DICE/DICE.desktop <<HRD
[Desktop Entry]
Version=0.9
Name=DICE
Comment=DICE is an emulator for integrated circuits of old arcade games
Exec=/opt/dice.sh
Path=/opt/DICE
Terminal=false
Type=Application
Categories=Games
HRD