blob: 82e0625917fd8206125d8c650339c4210b3e604a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
#!/bin/sh
mkdir -p opk
cp ./snes9x opk/snes9x
cp ./icon.png opk/icon.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=icon
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
|