2023-09-13 03:22:31 +00:00
|
|
|
#get locations of scripts, libraries, engine
|
2023-09-12 01:00:00 +00:00
|
|
|
SRC_DIR="src"
|
2023-09-13 03:22:31 +00:00
|
|
|
LIB_DIR="lib"
|
2023-09-12 01:00:00 +00:00
|
|
|
LOVE_DIR="../../love"
|
|
|
|
BUILD_DIR="build"
|
|
|
|
|
2023-09-13 03:22:31 +00:00
|
|
|
#build LuaJIT for target platform
|
|
|
|
|
|
|
|
|
|
|
|
#build LuaSocket shared library for target platform
|
|
|
|
|
|
|
|
|
|
|
|
#get appropriate copy of love
|
|
|
|
|
|
|
|
|
|
|
|
#zip client scripts into .love file
|
2023-09-12 01:00:00 +00:00
|
|
|
cp -r $SRC_DIR/ $BUILD_DIR/
|
|
|
|
cd $BUILD_DIR/
|
|
|
|
zip -9 -r vision.love
|
|
|
|
|
2023-09-13 03:22:31 +00:00
|
|
|
#zip .love file with LOVE and dependencies (and license!)
|
|
|
|
|
|
|
|
|
|
|
|
#zip server scripts with LuaJIT and dependencies
|
|
|
|
|
|
|
|
|
|
|
|
#zip metaserver with LuaJIT and dependencies
|
|
|
|
|
|
|
|
|
|
|
|
#WINDOWS: make fused client executable
|
|
|
|
cat ../../love/love.exe vision.love > vision.exe
|
|
|
|
|
|
|
|
#LINUX: get official LOVE AppImage
|