mirror of
https://github.com/cave-story-randomizer/cave-story-randomizer
synced 2024-11-08 16:04:30 +00:00
working on travis builds (#92)
* working on travis builds * fix * sudo * install libzip * ? * dev * hererocks * idk man * asda * reorder * source? * sudo again * etsts * why won't activate work * su * no su * manual path * whoops * use the proper build dir * set up deployment (hopefully) * proper release directory * jk what is it * should be this * forgot one Co-authored-by: duncathan <dunc@duncathan.com>
This commit is contained in:
parent
13a503e696
commit
e77239387c
52
.travis.yml
52
.travis.yml
|
@ -1,23 +1,47 @@
|
|||
language: bash
|
||||
language: python
|
||||
dist: xenial
|
||||
addons:
|
||||
apt:
|
||||
update: true
|
||||
packages:
|
||||
- xvfb
|
||||
|
||||
- xvfb
|
||||
- libzip-dev
|
||||
services:
|
||||
- xvfb
|
||||
|
||||
- xvfb
|
||||
before_install:
|
||||
- sudo add-apt-repository -y ppa:bartbes/love-stable
|
||||
- sudo apt-get -q update
|
||||
- sudo apt-get -y install love
|
||||
|
||||
- pip install hererocks
|
||||
- hererocks env --luarocks 3.0 --lua latest
|
||||
- export 'PATH='"$TRAVIS_BUILD_DIR"'/env/bin'":$PATH"
|
||||
- luarocks install --server="http://luarocks.org/dev" lua-zip
|
||||
- luarocks install love-release
|
||||
install:
|
||||
- sudo add-apt-repository -y ppa:bartbes/love-stable
|
||||
- sudo apt-get -q update
|
||||
- sudo apt-get -y install love
|
||||
script:
|
||||
- sudo chmod u+r+x daily.sh
|
||||
- sudo ./daily.sh
|
||||
|
||||
- cd src
|
||||
- love-release -W -M
|
||||
- cd -
|
||||
- mv pre-edited-cs "Cave Story"
|
||||
- cd src/releases; dir
|
||||
- zip -ur CaveStoryRandomizer-win64.zip "../../Cave Story"
|
||||
- zip -ur CaveStoryRandomizer-win32.zip "../../Cave Story"
|
||||
- zip -ur CaveStoryRandomizer-macosx.zip "../../Cave Story"
|
||||
- zip -r CaveStoryRandomizer-linux.zip CaveStoryRandomizer.love "../../Cave Story"
|
||||
- cd -
|
||||
- chmod u+r+x daily.sh
|
||||
-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E0K2jXLRezychR22V+7R9ifNLns=
|
||||
file:
|
||||
- releases/*.zip
|
||||
file_glob: true
|
||||
on:
|
||||
repo: cave-story-randomizer/cave-story-randomizer
|
||||
branch: stable
|
||||
draft: true
|
||||
|
|
10
daily.sh
10
daily.sh
|
@ -1,10 +1,6 @@
|
|||
set -ev
|
||||
|
||||
if [ "$TRAVIS_EVENT_TYPE" != "cron" ]; then exit 0; fi
|
||||
P="csrando"
|
||||
mkdir target
|
||||
mkdir target/src
|
||||
cp -r src target
|
||||
cd target/src
|
||||
zip -9 -r "${P}.love" .
|
||||
sudo xvfb-run --server-args="-screen 0 1024x768x24" love "${P}.love" --daily
|
||||
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"
|
|
@ -26,7 +26,7 @@ function love.conf(t)
|
|||
|
||||
t.releases = {
|
||||
-- This is the name of the zip archive which contains your game.
|
||||
title = 'Cave Story Randomizer',
|
||||
title = 'CaveStoryRandomizer',
|
||||
-- This is the name of your game's executable.
|
||||
package = 'Cave Story Randomizer',
|
||||
loveVersion = '11.2',
|
||||
|
|
Loading…
Reference in a new issue