Commit 27d78980 authored by 神楽坂玲奈's avatar 神楽坂玲奈 Committed by GitHub

Update appveyor.yml

parent d8586f90
version: '{build}'
install:
# fix tar xz
- set PATH=%PATH%;C:\MinGW\msys\1.0\bin
# submodules
- git submodule update --init --recursive
......@@ -41,15 +44,30 @@ build:
project: build/ygo.sln
parallel: true
after_build:
- ps: move bin\release\ygopro.exe .
- mv bin\release\ygopro.exe .
- curl --location --retry 5 'https://github.com/mycard/ygopro-database/archive/master.tar.gz' | tar --strip-components=1 -zxf - ygopro-database-master/locales
- cp locales/zh-CN/* .
- mkdir replay
- mkdir pics
- curl --location --retry 5 --output 'ygopro-images-zh-CN.zip' https://github.com/mycard/ygopro-images/releases/download/latest/ygopro-images-zh-CN.zip
- unzip -q -d pics ygopro-images-zh-CN.zip
- 7z a ygopro-%APPVEYOR_REPO_TAG_NAME%-win32.7z ygopro.exe LICENSE README.md lflist.conf script strings.conf system.conf textures deck cards.cdb pics replay -xr!.git*
- tar -Jcf ygopro-%APPVEYOR_REPO_TAG_NAME%-win32.tar.xz --exclude='.git*' ygopro.exe LICENSE README.md lflist.conf script strings.conf system.conf textures deck cards.cdb pics; fi
# 语言包
- cd locales/en-US
- mkdir pics # 下载那个语言的卡图
- tar -Jcf ../../ygopro-lang-en-US-$TRAVIS_TAG.tar.xz --exclude='.git*' cards.cdb strings.conf pics
- cd ../..
- cd locales/ja-JP
- mkdir pics
- tar -Jcf ../../ygopro-lang-ja-JP-$TRAVIS_TAG.tar.xz --exclude='.git*' cards.cdb strings.conf pics
- cd ../..
artifacts:
- path: ygopro-$(APPVEYOR_REPO_TAG_NAME)-win32.7z
- path: ygopro-$(APPVEYOR_REPO_TAG_NAME)-win32.tar.xz
name: ygopro
- path: ygopro-lang-en-US-$(APPVEYOR_REPO_TAG_NAME).tar.xz
name: ygopro-lang-en-US
- path: ygopro-lang-ja-JP-$(APPVEYOR_REPO_TAG_NAME).tar.xz
name: ygopro-lang-ja-JP
deploy:
description: 'Automatic build'
provider: GitHub
......
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