Commit e07ccab3 authored by 神楽坂玲奈's avatar 神楽坂玲奈

travis

parent 25308fe4
...@@ -29,12 +29,15 @@ script: ...@@ -29,12 +29,15 @@ script:
- premake4 gmake - premake4 gmake
- cd build - cd build
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sed -i 's/-llua/-llua5.2/g' ygopro.make; fi - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sed -i 's/-llua/-llua5.2/g' ygopro.make; fi
- env
- make config=release - make config=release
- cd .. - cd ..
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then mv bin/release/ygopro ./; strip ygopro; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then mv bin/release/ygopro.app ./ ./; strip ygopro.app/Contents/MacOS/ygopro; fi
- wget https://mycard.moe/ygopro/cards.cdb - wget https://mycard.moe/ygopro/cards.cdb
- mkdir -p pics; wget -O - https://github.com/mycard/ygopro-images/archive/zh-CN.tar.gz | tar --strip-components=1 -C pics -zxf - - mkdir -p pics; wget -O - https://github.com/mycard/ygopro-images/archive/zh-CN.tar.gz | tar --strip-components=1 -C pics -zxf -
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then mv build/release/ygopro ./; strip ygopro; fi - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then XZ_OPT=-9e tar -Jcvf ygopro.tar.xz ygopro LICENSE README.md lflist.conf script strings.conf system.conf textures cards.cdb pics; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then XZ_OPT=-9e tar -Jcvf ygopro.tar.xz LICENSE README.md lflist.conf script strings.conf system.conf textures cards.cdb pics; fi - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then XZ_OPT=-9e tar -Jcvf ygopro.tar.xz ygopro.app LICENSE README.md lflist.conf script strings.conf system.conf textures cards.cdb pics; fi
deploy: deploy:
provider: releases provider: releases
file: "ygopro.tar.xz" file: "ygopro.tar.xz"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment