Commit 5b90e861 authored by mercury233's avatar mercury233

fix

don't pack .git files
parent 17d5f1e1
...@@ -56,8 +56,8 @@ before_deploy: ...@@ -56,8 +56,8 @@ before_deploy:
- mkdir pics - 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 - 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 - unzip -q -d pics ygopro-images-zh-CN.zip
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then tar -Jcf ygopro-$TRAVIS_TAG-$TRAVIS_OS_NAME.tar.xz ygopro.app LICENSE README.md lflist.conf script strings.conf system.conf textures deck cards.cdb pics locales; fi - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then tar -Jcf ygopro-$TRAVIS_TAG-$TRAVIS_OS_NAME.tar.xz --exclude='.git*' ygopro.app LICENSE README.md lflist.conf script strings.conf system.conf textures deck cards.cdb pics locales; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then tar -Jcf ygopro-$TRAVIS_TAG-$TRAVIS_OS_NAME.tar.xz ygopro LICENSE README.md lflist.conf script strings.conf system.conf textures deck cards.cdb pics locales; fi - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then tar -Jcf ygopro-$TRAVIS_TAG-$TRAVIS_OS_NAME.tar.xz --exclude='.git*' ygopro LICENSE README.md lflist.conf script strings.conf system.conf textures deck cards.cdb pics locales; fi
deploy: deploy:
provider: releases provider: releases
file: file:
......
...@@ -44,11 +44,11 @@ after_build: ...@@ -44,11 +44,11 @@ after_build:
- ps: move bin\release\ygopro.exe . - ps: move 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 - 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/* . - cp locales/zh-CN/* .
- 7z a ygopro-lite-%APPVEYOR_REPO_TAG_NAME%-win32.7z ygopro.exe LICENSE README.md lflist.conf script strings.conf system.conf textures deck cards.cdb locales - 7z a ygopro-lite-%APPVEYOR_REPO_TAG_NAME%-win32.7z ygopro.exe LICENSE README.md lflist.conf script strings.conf system.conf textures deck cards.cdb locales -xr!.git*
- mkdir pics - 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 - 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 - 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 locales - 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 locales -xr!.git*
artifacts: artifacts:
- path: ygopro-lite-$(APPVEYOR_REPO_TAG_NAME)-win32.7z - path: ygopro-lite-$(APPVEYOR_REPO_TAG_NAME)-win32.7z
name: ygopro-lite name: ygopro-lite
......
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