diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..3660d99 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,52 @@ +if: 'tag IS blank' +env: + global: + - TRAVIS_TAG=v1.9 +jobs: + include: + - + name: 'Python 3.7.5 on Linux (AMD64)' + os: linux + dist: bionic + arch: amd64 + language: python + python: 3.7.5 + env: RELEASE_FILENAME=bilibili-toolkit-$TRAVIS_TAG-linux-amd64.tar.gz + - + name: 'Python 3.7.5 on Linux (ARM64)' + os: linux + dist: bionic + arch: arm64 + language: python + python: 3.7.5 + env: ['PATH=~/.ruby/bin:$PATH', GEM_HOME=~/.ruby, RELEASE_FILENAME=bilibili-toolkit-$TRAVIS_TAG-linux-arm64.tar.gz] + - + name: 'Python 3.7.4 on macOS (AMD64)' + os: osx + osx_image: xcode11.2 + arch: amd64 + language: shell + env: RELEASE_FILENAME=bilibili-toolkit-$TRAVIS_TAG-macos-amd64.zip + - + name: 'Python 3.7.5 on Windows (AMD64)' + os: windows + arch: amd64 + language: shell + env: ['PATH=/c/Python37:/c/Python37/Scripts:$PATH', RELEASE_FILENAME=bilibili-toolkit-$TRAVIS_TAG-windows-amd64.zip] + before_install: 'choco install python --version 3.7.5' +install: + - 'if [ "$TRAVIS_OS_NAME" = "windows" ]; then python -m pip install -U pip; else pip3 install -U pip; fi' + - 'pip3 install -r requirements.txt' + - 'pip3 install pyinstaller' +script: + - 'pyinstaller -F -i icon.ico bilibili.py' + - 'mkdir -p release/Bilibili-Toolkit' + - 'cp {dist/*,config.toml,LICENSE,proxy.txt,README.md} release/Bilibili-Toolkit' + - 'cd release' + - 'if [ "$TRAVIS_OS_NAME" = "windows" ]; then 7z a -tzip $RELEASE_FILENAME Bilibili-Toolkit; elif [ "$TRAVIS_OS_NAME" = "osx" ]; then zip -r $RELEASE_FILENAME Bilibili-Toolkit; else tar -czvf $RELEASE_FILENAME Bilibili-Toolkit; fi' +deploy: + provider: releases + api_key: $GITHUB_OAUTH_TOKEN + file: $RELEASE_FILENAME + overwrite: true + skip_cleanup: true diff --git a/LICENSE b/LICENSE index 4b9e785..f9cdb9b 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2018 Ruoyang Xu +Copyright (c) 2018-2019 Hsury Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/README.md b/README.md index 8f95b60..69c85bd 100644 --- a/README.md +++ b/README.md @@ -5,8 +5,9 @@
-
+
+