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

CI

parent 7120da38
...@@ -6,8 +6,8 @@ environment: ...@@ -6,8 +6,8 @@ environment:
#- locale: ja-JP #- locale: ja-JP
#- locale: zh-Classical #- locale: zh-Classical
version: '{build}' version: '{build}'
#init: init:
# - ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1')) - ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
cache: cache:
- C:\ProgramData\chocolatey\bin - C:\ProgramData\chocolatey\bin
- C:\ProgramData\chocolatey\lib - C:\ProgramData\chocolatey\lib
...@@ -30,13 +30,12 @@ install: ...@@ -30,13 +30,12 @@ install:
- bundle install - bundle install
# data # data
- ps: Start-FileDownload https://github.com/mycard/ygopro-database/raw/master/cards.%locale%.cdb - curl -o ygopro-database\%locale%.cdb https://github.com/mycard/ygopro-database/raw/master/cards.%locale%.cdb
- move cards.%locale%.cdb ygopro-database\%locale%.cdb
- mkdir ygopro-images - mkdir ygopro-images
- echo {} > ygopro-images/records.json - echo {} > ygopro-images/records.json
after_build: 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"' - 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 - 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 \)' - 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: ...@@ -54,5 +53,5 @@ deploy:
on: on:
branch: master # release from master branch only branch: master # release from master branch only
#on_finish: on_finish:
# - ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1')) - 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