aboutsummaryrefslogtreecommitdiff
path: root/package_OPK
diff options
context:
space:
mode:
authorgameblabla2019-10-11 13:38:25 +0200
committergameblabla2019-10-11 13:38:25 +0200
commitb029a0b25f2f0cf9775f6f720756760e1f6c6438 (patch)
treef121917aa23c48789356068faac1721278b050b8 /package_OPK
parentcc878848a45db22abe284649c7e19f896a0abeb9 (diff)
downloadsnesemu-b029a0b25f2f0cf9775f6f720756760e1f6c6438.tar.gz
snesemu-b029a0b25f2f0cf9775f6f720756760e1f6c6438.tar.bz2
snesemu-b029a0b25f2f0cf9775f6f720756760e1f6c6438.zip
Fix text issues in Menu for Retrostone port and input code.
Diffstat (limited to 'package_OPK')
-rwxr-xr-xpackage_OPK31
1 files changed, 31 insertions, 0 deletions
diff --git a/package_OPK b/package_OPK
new file mode 100755
index 0000000..bcdba1f
--- /dev/null
+++ b/package_OPK
@@ -0,0 +1,31 @@
+#!/bin/sh
+
+mkdir -p opk
+cp ./snes9x opk/snes9x
+cp ./snes9x.png opk/snes9x.png
+
+# https://unix.stackexchange.com/questions/219268/how-to-add-new-lines-when-using-echo
+print()
+ case ${IFS- } in
+ (\ *) printf %b\\n "$*";;
+ (*) IFS=\ $IFS
+ printf %b\\n "$*"
+ IFS=${IFS#?}
+esac
+
+# Create GmenuNx entry file plus other things
+
+print '[Desktop Entry]
+Type=Application
+Name=Snes9x2005
+Comment=Super NES emulator
+Exec=snes9x %f
+Icon=snes9x
+Terminal=false
+Type=Application
+Categories=emulators;
+X-OD-NeedsDownscaling=false' > opk/default."$1".desktop
+
+mksquashfs ./opk snes9x_"$1".opk -all-root -noappend -no-exports -no-xattrs
+
+rm -r opk