forked from jaildesigner-jailgames/jaildoctors_dilemma
- Added opendingux build stage to Makefile
This commit is contained in:
32
Makefile
32
Makefile
@@ -9,6 +9,7 @@ windowsRelease = $(executable)-$(version)-win32-x64.zip
|
|||||||
macosIntelRelease = $(executable)-$(version)-macos-intel.dmg
|
macosIntelRelease = $(executable)-$(version)-macos-intel.dmg
|
||||||
macosAppleSiliconRelease = $(executable)-$(version)-macos-apple-silicon.dmg
|
macosAppleSiliconRelease = $(executable)-$(version)-macos-apple-silicon.dmg
|
||||||
linuxRelease = $(executable)-$(version)-linux.tar.gz
|
linuxRelease = $(executable)-$(version)-linux.tar.gz
|
||||||
|
opendinguxRelease = $(executable).opk
|
||||||
|
|
||||||
windows:
|
windows:
|
||||||
@echo off
|
@echo off
|
||||||
@@ -139,4 +140,33 @@ linux_release:
|
|||||||
cd "$(releaseFolder)" && tar -czvf "../$(linuxRelease)" *
|
cd "$(releaseFolder)" && tar -czvf "../$(linuxRelease)" *
|
||||||
|
|
||||||
# Remove data
|
# Remove data
|
||||||
rm -rdf "$(releaseFolder)"
|
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)"
|
||||||
|
|||||||
Reference in New Issue
Block a user