Commit 05c43c43 authored by 神楽坂玲奈's avatar 神楽坂玲奈

CI

parent 7120da38
......@@ -6,8 +6,8 @@ environment:
#- locale: ja-JP
#- locale: zh-Classical
version: '{build}'
#init:
# - ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
init:
- ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
cache:
- C:\ProgramData\chocolatey\bin
- C:\ProgramData\chocolatey\lib
......@@ -30,13 +30,12 @@ install:
- bundle install
# data
- ps: Start-FileDownload https://github.com/mycard/ygopro-database/raw/master/cards.%locale%.cdb
- move cards.%locale%.cdb ygopro-database\%locale%.cdb
- curl -o ygopro-database\%locale%.cdb https://github.com/mycard/ygopro-database/raw/master/cards.%locale%.cdb
- mkdir ygopro-images
- echo {} > ygopro-images/records.json
after_build:
- ruby generate.rb $locale
- ruby generate.rb %locale%
- bash -c 'ls -1 mse-sets/data*-$locale.mse-set | xargs -I {} -P 4 magicseteditor/mse.com --export {} "ygopro-images-mse/{card.gamecode}.png"'
- mkdir ygopro-images\thumbnail
- bash -c 'ls -1 ygopro-images-mse | sed -e 's/\.png$//' | xargs -I {} -P 4 magick ygopro-images-mse/{}.png -colorspace RGB -write mpr:image +delete \( mpr:image -resize 177x254! -colorspace sRGB -write "ygopro-images/{}.jpg" \) \( mpr:image -resize 44x64! -colorspace sRGB -write ygopro-images/thumbnail/{}.jpg \)'
......@@ -54,5 +53,5 @@ deploy:
on:
branch: master # release from master branch only
#on_finish:
# - ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
on_finish:
- ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
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