Build system
This commit is contained in:
parent
a1c77f74a5
commit
cd3b21d129
8
.gitignore
vendored
8
.gitignore
vendored
|
@ -1,2 +1,10 @@
|
||||||
|
|
||||||
config/points.json
|
config/points.json
|
||||||
|
|
||||||
|
lovr-x86_64.AppImage
|
||||||
|
|
||||||
|
playspace.lovr
|
||||||
|
|
||||||
|
build/
|
||||||
|
|
||||||
|
*.gz
|
||||||
|
|
13
build.sh
Executable file
13
build.sh
Executable file
|
@ -0,0 +1,13 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
if [ ! -f "$(dirname "$0")/lovr-x86_64.AppImage" ]; then
|
||||||
|
echo "Error: lovr-x86_64.AppImage not found!"
|
||||||
|
echo "Please download a LÖVR AppImage from https://github.com/bjornbytes/lovr/actions and save it as lovr-x86_64.AppImage in this repository"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
rm -f playspace.lovr && zip -9qr playspace.lovr json/json.lua conf.lua main.lua
|
||||||
|
|
||||||
|
rm -rf build && mkdir build && cp playspace.lovr lovr-playspace.sh lovr-x86_64.AppImage build/
|
||||||
|
|
||||||
|
tar -czf "lovr-playspace-$(git describe --tags --abbrev=0).tar.gz" -C build/ .
|
3
lovr-playspace.sh
Executable file
3
lovr-playspace.sh
Executable file
|
@ -0,0 +1,3 @@
|
||||||
|
#!/bin/bash
|
||||||
|
dir="$(dirname "$(readlink -f "$0")")"
|
||||||
|
"$dir/lovr-x86_64.AppImage" "$dir/playspace.lovr"
|
2
main.lua
2
main.lua
|
@ -290,7 +290,7 @@ function modeConfigure(pass)
|
||||||
if inputDev ~= nil then
|
if inputDev ~= nil then
|
||||||
saveProg = saveProg - (deltaTime / 3)
|
saveProg = saveProg - (deltaTime / 3)
|
||||||
if saveProg <= 0 then
|
if saveProg <= 0 then
|
||||||
lovr.filesystem.write("config/points.json", json.encode(settings.points))
|
lovr.filesystem.write("points.json", json.encode(settings.points))
|
||||||
deinitConfigure()
|
deinitConfigure()
|
||||||
modeDraw(pass)
|
modeDraw(pass)
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in a new issue