go back to what worked

This commit is contained in:
duncathan 2020-03-13 03:01:43 -06:00
parent e1b24f451d
commit 9a7dac435d
4 changed files with 8 additions and 10 deletions

View file

@ -6,6 +6,9 @@ addons:
update: true
packages:
- libzip-dev
- xvfb
services:
- xvfb
before_install:
- |
pip install hererocks
@ -13,6 +16,9 @@ before_install:
export 'PATH='"$TRAVIS_BUILD_DIR"'/env/bin'":$PATH"
install:
- |
sudo add-apt-repository -y ppa:bartbes/love-stable
sudo apt-get -q update
sudo apt-get -y install love
luarocks install --server="http://luarocks.org/dev" lua-zip
luarocks install love-release
script:

View file

@ -1,12 +1,9 @@
set -ev
if [ "$TRAVIS_EVENT_TYPE" != "cron" ]; then exit 0; fi
sudo add-apt-repository -y ppa:bartbes/love-stable
sudo apt-get -q update
sudo apt-get -y install love
cd src
love-release
love "releases/CaveStoryRandomizer.love" --daily --headless
sudo xvfb-run --server-args="-screen 0 1024x768x24" love "releases/CaveStoryRandomizer.love" --daily
cat daily.txt
curl -H "Content-Type: application/json" -X POST -d @daily.txt "$WEBHOOK"

View file

@ -24,12 +24,6 @@ function love.conf(t)
t.modules.touch = false
t.modules.video = false
for _,a in pairs(arg) do
if a == "--headless" then
t.window, t.modules.window, t.modules.graphics = false, false, false
end
end
t.releases = {
-- This is the name of the zip archive which contains your game.
title = 'CaveStoryRandomizer',

View file

@ -27,6 +27,7 @@ function love.load(args)
Settings:init()
if _.contains(args, "--daily") then
love.window.close()
U.writeFile("daily.txt", generateDaily())
love.event.quit()
return