mirror of
https://github.com/cave-story-randomizer/cave-story-randomizer
synced 2024-11-22 06:43:03 +00:00
update travis for release deployment (mac and linux only)
fix travis... again update travis yml to match spec skip cleanup continued travis work for releases reorder travis messed up syntax one day i'll figure this shit out ? let's walk it back a step icon replacement for windows diff wine seriously maybe this way? getting there wineboot run wine through xvfb diff repo apt-key xvfb -a wineprefix? is sudo killing me try try try wineboot no more xvfb wineboot again maybe? mkdir im just throwin things at the wall docker docker 2 wineconsole WINDOWS??? fix package name is this necessary? luarocks directory PROPER proper lua directory 7zip x debugs cmd cmd.exe escape? more cmd bat file more cmd.exe hopefully this caches stuff exact paths install lua through pacman mw different luarocks ooops pray for cache try again conditionals trailing semi verbatim block better cache keep tryin fix extract use chocolate lua update env fafffffff af silly windows style paths self lua windows path this is a hack this is all magic hererocks again??? path bat ooooops oops again more path nonsense lol ? i don't understand hmmm Auto stash before rebase of "github/master" afaooigasb mingw try try again manual install libzip i give up
This commit is contained in:
parent
55fda5d4f9
commit
5645fe3064
61
.travis.yml
61
.travis.yml
|
@ -1,47 +1,52 @@
|
||||||
language: python
|
language: python
|
||||||
|
os: linux
|
||||||
dist: xenial
|
dist: xenial
|
||||||
addons:
|
addons:
|
||||||
apt:
|
apt:
|
||||||
update: true
|
update: true
|
||||||
packages:
|
packages:
|
||||||
- xvfb
|
|
||||||
- libzip-dev
|
- libzip-dev
|
||||||
services:
|
|
||||||
- xvfb
|
|
||||||
before_install:
|
before_install:
|
||||||
- pip install hererocks
|
- |
|
||||||
- hererocks env --luarocks 3.0 --lua latest
|
if ! [ -x "$(command -v luarocks)" ]; then
|
||||||
- export 'PATH='"$TRAVIS_BUILD_DIR"'/env/bin'":$PATH"
|
# install luarocks via hererocks via python
|
||||||
- luarocks install --server="http://luarocks.org/dev" lua-zip
|
pip install hererocks
|
||||||
- luarocks install love-release
|
hererocks --lua 5.1 --luarocks 3 $HOME/luarocks
|
||||||
|
bash $HOME/luarocks/bin/activate
|
||||||
|
fi
|
||||||
|
export PATH=$HOME/luarocks/bin:$PATH
|
||||||
install:
|
install:
|
||||||
- sudo add-apt-repository -y ppa:bartbes/love-stable
|
- luarocks install --server="http://luarocks.org/dev" lua-zip
|
||||||
- sudo apt-get -q update
|
- luarocks install love-release
|
||||||
- sudo apt-get -y install love
|
- sudo add-apt-repository -y ppa:bartbes/love-stable
|
||||||
|
- sudo apt-get -q update
|
||||||
|
- sudo apt-get -y install love
|
||||||
|
cache:
|
||||||
|
directories:
|
||||||
|
- $HOME/luarocks
|
||||||
script:
|
script:
|
||||||
- cd src
|
- bash daily.sh
|
||||||
- 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
|
|
||||||
- "./daily.sh"
|
|
||||||
env:
|
env:
|
||||||
global:
|
global:
|
||||||
- secure: DU2Mq4FPbOidv0Go4b+2r5Vy7v0bbQo40ZZPkiwm/6nAJYkwySwVn2DyZGwh/kV4o6ZG0IgtLxPvHiF8lVZptbtkHJTt/GeokwwvsfpHJntPC9jyvXklFkkln9h2AgWrhTmFf+EYE4Mlm7FAjsr/9ZZHCuGn7wDCOBk3g4Zy7eAyKGqpYMN3296eUiZPXWtOAexmbavFI07pmu4ZyJ8K6HMmjd8YSAQpui3zJn/hMTupQm+o5s/ehZ72QnUyjRWdKvLlJCzORrajJxgYXQqLdjXVMcq4kuR4pDRnLdW9XBlAWiHOvj7wlVOUyBq2ZyhkTTNEYiQp+9UsIua1gG0hdLiOGH2ODtrb6NvQIRUfs5jE6xHmw3hQCfIe9itT+SbVQmuuTovM/MQTS/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cs "src/releases/Cave Story"
|
||||||
|
cd src/releases
|
||||||
|
zip -9 -qur CaveStoryRandomizer-macos.zip "Cave Story"
|
||||||
|
zip -9 -qr CaveStoryRandomizer-linux.zip "Cave Story" CaveStoryRandomizer.love
|
||||||
|
cd -
|
||||||
|
# don't forget to create the windows releases!
|
||||||
deploy:
|
deploy:
|
||||||
provider: releases
|
provider: releases
|
||||||
api_key:
|
token:
|
||||||
secure: bMinTly2BOZCNQw625Fz744hvVQlnwZiC6pQZZx1f5evs0gi4TXbqqft5UN3orGgRiNnVnbf2qYC7PnS1LzynHUimdVk8iqfRKz4ADuWXyf9/i1gojzzSAI87lxbGaHxzqjZLtzf1zRonPlY1oj9X3a1eAle6EEAn/Utnm/jqZPhTYm8cMowLWqcVTcDOw1lhBpgsVYdej1wCaq7r2KBDvrqWZCdt8pJ2lcaShJEqmBONDvu9KO+gbNXwmhBAz4bG0DTVFhO459ZNjfNz749eiU7KhbxvFgz7O+j8HEdhlXznYgmzveUmVmhOSe3z037YwCNv+2ar0FITGkmTpgog0z2XuxDMb28Eakoc0uzaowwB68JRfEeRpBGidhSGraZ5DnHOS3QdDaEQ4jImv97DagiVoqcKm3JDGhGuvbI4dfPsXHKMncJC8cqf86NwSg63boabcoUTwzVLZdd4tbiOBqYPBgEtEz4uFgKvkrrzE0DoP1Efi1aZqcnOW6xckHbC261rxB5QG8WGcb1tDnmQgbhbEEguPHuzKBWP6ktpjpFdeS3Wbqb0UMaXQXMCcaMpJfCLNsLxQ6iHOh+XQhJREDPTuXm4F1m0BzSjBvQpWQ4tpO+kF1KiJ4wiwzn9jTfJxhgMgxEoY75dtH+E0K2jXLRezychR22V+7R9ifNLns=
|
secure: bMinTly2BOZCNQw625Fz744hvVQlnwZiC6pQZZx1f5evs0gi4TXbqqft5UN3orGgRiNnVnbf2qYC7PnS1LzynHUimdVk8iqfRKz4ADuWXyf9/i1gojzzSAI87lxbGaHxzqjZLtzf1zRonPlY1oj9X3a1eAle6EEAn/Utnm/jqZPhTYm8cMowLWqcVTcDOw1lhBpgsVYdej1wCaq7r2KBDvrqWZCdt8pJ2lcaShJEqmBONDvu9KO+gbNXwmhBAz4bG0DTVFhO459ZNjfNz749eiU7KhbxvFgz7O+j8HEdhlXznYgmzveUmVmhOSe3z037YwCNv+2ar0FITGkmTpgog0z2XuxDMb28Eakoc0uzaowwB68JRfEeRpBGidhSGraZ5DnHOS3QdDaEQ4jImv97DagiVoqcKm3JDGhGuvbI4dfPsXHKMncJC8cqf86NwSg63boabcoUTwzVLZdd4tbiOBqYPBgEtEz4uFgKvkrrzE0DoP1Efi1aZqcnOW6xckHbC261rxB5QG8WGcb1tDnmQgbhbEEguPHuzKBWP6ktpjpFdeS3Wbqb0UMaXQXMCcaMpJfCLNsLxQ6iHOh+XQhJREDPTuXm4F1m0BzSjBvQpWQ4tpO+kF1KiJ4wiwzn9jTfJxhgMgxEoY75dtH+E0K2jXLRezychR22V+7R9ifNLns=
|
||||||
file:
|
file:
|
||||||
- releases/*.zip
|
- src/releases/*.zip
|
||||||
file_glob: true
|
file_glob: true
|
||||||
on:
|
|
||||||
repo: cave-story-randomizer/cave-story-randomizer
|
|
||||||
branch: stable
|
|
||||||
draft: true
|
draft: true
|
||||||
|
skip_cleanup: true
|
||||||
|
on:
|
||||||
|
tags: true
|
||||||
|
|
BIN
CaveStoryRandomizer.ico
Normal file
BIN
CaveStoryRandomizer.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 182 KiB |
4
daily.sh
4
daily.sh
|
@ -1,6 +1,8 @@
|
||||||
set -ev
|
set -ev
|
||||||
|
|
||||||
if [ "$TRAVIS_EVENT_TYPE" != "cron" ]; then exit 0; fi
|
if [ "$TRAVIS_EVENT_TYPE" != "cron" ]; then exit 0; fi
|
||||||
sudo xvfb-run --server-args="-screen 0 1024x768x24" love "releases/CaveStoryRandomizer.love" --daily
|
cd src
|
||||||
|
love-release
|
||||||
|
love "releases/CaveStoryRandomizer.love" --daily --headless
|
||||||
cat daily.txt
|
cat daily.txt
|
||||||
curl -H "Content-Type: application/json" -X POST -d @daily.txt "$WEBHOOK"
|
curl -H "Content-Type: application/json" -X POST -d @daily.txt "$WEBHOOK"
|
|
@ -24,6 +24,12 @@ function love.conf(t)
|
||||||
t.modules.touch = false
|
t.modules.touch = false
|
||||||
t.modules.video = 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 = {
|
t.releases = {
|
||||||
-- This is the name of the zip archive which contains your game.
|
-- This is the name of the zip archive which contains your game.
|
||||||
title = 'CaveStoryRandomizer',
|
title = 'CaveStoryRandomizer',
|
||||||
|
|
|
@ -27,7 +27,6 @@ function love.load(args)
|
||||||
Settings:init()
|
Settings:init()
|
||||||
|
|
||||||
if _.contains(args, "--daily") then
|
if _.contains(args, "--daily") then
|
||||||
love.window.close()
|
|
||||||
U.writeFile("daily.txt", generateDaily())
|
U.writeFile("daily.txt", generateDaily())
|
||||||
love.event.quit()
|
love.event.quit()
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in a new issue