Updated package script and bumped submodules

This commit is contained in:
root 2021-08-14 19:53:37 +02:00
parent 51242010ca
commit ddf7ea2e7b
5 changed files with 14 additions and 4 deletions

View File

@ -5,6 +5,7 @@ git pull
./submodule_update.sh
cp icons/picodrive.png opk/
cp AUTHORS COPYING README opk/
cp picodrive.sh opk/
cd /opt/FunKey-OS
rm -rf FunKey/output/build/picodrive-*
@ -27,7 +28,7 @@ esac
print '[Desktop Entry]
Name=Mega Drive
Comment=MS/MD/MCD/32X emulator
Exec=PicoDrive %f
Exec=picodrive.sh %f
Icon=picodrive
Categories=emulators;
SelectorFilter=zip,md,smd,sms,32x,cue,cso,iso,chd' > opk/picodrive.funkey-s.desktop

@ -1 +1 @@
Subproject commit d3ffd20ca71686877372dea7f9eed359dbf65ba2
Subproject commit 15ff8d67554f8651f4c971f4d42176214b96ce7b

9
picodrive.sh Executable file
View File

@ -0,0 +1,9 @@
#!/bin/sh
# Check md5 of the PicoDrive binary in /usr/games
myhash=$(md5sum /usr/games/PicoDrive | cut -d' ' -f1)
if [ $myhash != "5b42024e8e3a20e5a8b58ccd203b7c90" ] || [ ! -f /usr/games/PicoDrive ]; then
rw
cp -f PicoDrive /usr/games
ro
fi
./PicoDrive "$1"

@ -1 +1 @@
Subproject commit 61fcf380728dc7fc7b781aae058b44055831b3e7
Subproject commit 8ed0226390948788220d24e7c5d9f2945534714d

@ -1 +1 @@
Subproject commit a4e25853c7aa3fd7e665a1811a2a80788ecc794b
Subproject commit ca7c706001331a5a8e3182ce3b3ce3b243589154