mirror of
https://github.com/cave-story-randomizer/cave-story-randomizer
synced 2024-11-21 14:22:47 +00:00
go back to what worked
This commit is contained in:
parent
e1b24f451d
commit
9a7dac435d
|
@ -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:
|
||||
|
|
5
daily.sh
5
daily.sh
|
@ -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"
|
|
@ -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',
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue