foxygit / fake-08-xbox360 Log in
commit e25b40d4be976af408341135f252aae5b6eb892f
Author:     Jon Bell <j.to.the.bell@gmail.com>
AuthorDate: Fri Mar 18 20:20:53 2022 -0600
Commit:     Jon Bell <j.to.the.bell@gmail.com>
CommitDate: Fri Mar 18 20:22:09 2022 -0600

    Update gcw0 build to prep for CI build
---
 .github/workflows/buildGcw0.sh |   8 ++++++++
 .gitignore                     |   2 ++
 platform/gcw0/icon.png         | Bin 0 -> 358 bytes
 platform/gcw0/package.sh       |  35 +++++++++++++++++++++++++++++++++++
 4 files changed, 45 insertions(+)

diff --git a/.github/workflows/buildGcw0.sh b/.github/workflows/buildGcw0.sh
new file mode 100644
index 0000000..4db826c
--- /dev/null
+++ b/.github/workflows/buildGcw0.sh
@@ -0,0 +1,8 @@
+
+cd /build_dir
+
+make gcw0
+
+cd platform/gcw0
+
+./package.sh gcw0
diff --git a/.gitignore b/.gitignore
index 3a726e2..2c09d64 100644
--- a/.gitignore
+++ b/.gitignore
@@ -38,3 +38,5 @@ platform/vita/param.sfo
 platform/SDL1_2/FAKE08
 platform/bittboy/FAKE08
 platform/miyoomini/FAKE08
+platform/gcw0/FAKE08
+platform/gcw0/fake08_gcw0.opk
diff --git a/platform/gcw0/icon.png b/platform/gcw0/icon.png
new file mode 100644
index 0000000..b0340d1
Binary files /dev/null and b/platform/gcw0/icon.png differ
diff --git a/platform/gcw0/package.sh b/platform/gcw0/package.sh
new file mode 100644
index 0000000..5bdeeed
--- /dev/null
+++ b/platform/gcw0/package.sh
@@ -0,0 +1,35 @@
+#!/bin/sh
+
+mkdir -p opk
+cp ./icon.png opk/icon.png
+cp ./FAKE08 opk/FAKE08
+
+# 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=FAKE08
+Comment=PICO-8 Emulator (port gameblabla)
+Exec=FAKE08 %f
+Icon=icon
+Terminal=false
+Type=Application
+Categories=emulators;
+X-OD-NeedsDownscaling=true
+X-OD-Filter=.png,.p8
+selectorbrowser=true
+SelectorFilter=p8,P8,png,PNG
+' > opk/default."$1".desktop
+
+mksquashfs ./opk fake08_"$1".opk -all-root -noappend -no-exports -no-xattrs
+
+rm -r opk