package 825 B

12345678910111213141516171819202122232425262728293031323334353637
  1. #!/bin/sh
  2. mkdir opk/
  3. git pull
  4. ./submodule_update.sh
  5. cp icons/picodrive.png opk/
  6. cp AUTHORS COPYING README opk/
  7. cd /opt/FunKey-OS
  8. rm -rf FunKey/output/build/picodrive-*
  9. git pull
  10. make
  11. cp FunKey/output/target/usr/games/PicoDrive /opt/picodrive-irixxxx/opk
  12. cd -
  13. # https://unix.stackexchange.com/questions/219268/how-to-add-new-lines-when-using-echo
  14. print()
  15. case ${IFS- } in
  16. (\ *) printf %b\\n "$*";;
  17. (*) IFS=\ $IFS
  18. printf %b\\n "$*"
  19. IFS=${IFS#?}
  20. esac
  21. # Create GMenu2X entry file plus other things
  22. print '[Desktop Entry]
  23. Name=Mega Drive
  24. Comment=MS/MD/MCD/32X emulator
  25. Exec=PicoDrive %f
  26. Icon=picodrive
  27. Categories=emulators;
  28. SelectorFilter=zip,md,smd,sms,32x,cue,cso,iso,chd' > opk/picodrive.funkey-s.desktop
  29. mksquashfs opk/ picodrive_v1.98_funkey-s.opk -all-root -noappend -no-exports -no-xattrs
  30. rm -rf opk/