3 Commits

4 changed files with 44 additions and 1 deletions

View File

@@ -9,6 +9,7 @@ windowsRelease = $(executable)-$(version)-win32-x64.zip
macosIntelRelease = $(executable)-$(version)-macos-intel.dmg
macosAppleSiliconRelease = $(executable)-$(version)-macos-apple-silicon.dmg
linuxRelease = $(executable)-$(version)-linux.tar.gz
opendinguxRelease = $(executable).opk
windows:
@echo off
@@ -140,3 +141,32 @@ linux_release:
# Remove data
rm -rdf "$(releaseFolder)"
opendingux:
/opt/gcw0-toolchain/usr/bin/mipsel-linux-g++ -D GCWZERO -I/opt/gcw0-toolchain/usr/mipsel-gcw0-linux-uclibc/sysroot/usr/include/SDL2 -D_GNU_SOURCE=1 -D_REENTRANT -lSDL2 -lSDL2_mixer -lstdc++ -std=c++11 $(source) -o "$(executable)"
opendingux_release:
# Remove data
rm -rdf "$(releaseFolder)"
# Create folders
mkdir -p "$(releaseFolder)"
# Copy data
cp -R data "$(releaseFolder)"
cp -R default.gcw0.desktop "$(releaseFolder)"
cp -R icon.png "$(releaseFolder)"
# Delete data
rm -f "$(releaseFolder)/data/room/map.world"
rm -f "$(releaseFolder)/data/room/standard.tsx"
# Build
/opt/gcw0-toolchain/usr/bin/mipsel-linux-g++ -D GCWZERO -I/opt/gcw0-toolchain/usr/mipsel-gcw0-linux-uclibc/sysroot/usr/include/SDL2 -D_GNU_SOURCE=1 -D_REENTRANT -lSDL2 -lSDL2_mixer -lstdc++ -std=c++11 $(source) -o "$(releaseFolder)/$(executable)"
# Pack files
rm -f "$(opendinguxRelease)"
cd "$(releaseFolder)" && /opt/gcw0-toolchain/usr/bin/mksquashfs ./default.gcw0.desktop ./icon.png ./data ./$(executable) "../$(opendinguxRelease)" -all-root -noappend -no-exports -no-xattrs
# Remove data
rm -rdf "$(releaseFolder)"

3
build.txt Normal file
View File

@@ -0,0 +1,3 @@
/opt/gcw0-toolchain/usr/bin/mipsel-linux-g++ -D GCWZERO -I/opt/gcw0-toolchain/usr/mipsel-gcw0-linux-uclibc/sysroot/usr/include/SDL2 -D_GNU_SOURCE=1 -D_REENTRANT -lSDL2 -lstdc++ -std=c++11 source/*.cpp source/common/*.cpp -o jdd
sftp root@10.1.1.2:jdd <<< $'put jdd'
ssh root@10.1.1.2

10
default.gcw0.desktop Normal file
View File

@@ -0,0 +1,10 @@
[Desktop Entry]
Version=1.6
Type=Application
Name=JailDoctor's Dilemma
Comment=JailDoctor's Dilemma
Icon=icon
Exec=jaildoctors_dilemma
Categories=games;Game;SDL;
Terminal=false

BIN
icon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 873 B