diff --git a/.travis.yml b/.travis.yml index a1c3843..a63ba1d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,10 +1,10 @@ os: linux -dist: trusty +dist: bionic if: tag IS present language: python python: - - 3.6 + - 3.7 addons: apt: @@ -15,20 +15,20 @@ cache: pip install: - pip install pyinstaller python-vlc - - pip install -f https://extras.wxpython.org/wxPython4/extras/linux/gtk2/ubuntu-14.04 wxPython + - pip install -f https://extras.wxpython.org/wxPython4/extras/linux/gtk2/ubuntu-18.04 wxPython script: - cd bin && python build.py -novlc - mv install.sh ./FestEngine/ - mkdir -p ./FestEngine/locale/ru/LC_MESSAGES && msgfmt -o ./FestEngine/locale/ru/LC_MESSAGES/main.mo ../src/locale/ru/LC_MESSAGES/main.po - - tar -zcvf festengine-linux-x64-minimal.tar.gz FestEngine + - tar -zcvf festengine-$TRAVIS_TAG-linux-x64-minimal.tar.gz FestEngine deploy: provider: releases api_key: secure: hND4F2oeIb54OZXDroP6ofe80G2pWZ2qWOSaED9PlS4CmuiTMpHtYuq1BEEiZrh00qwfPPdBdburRkbfnh7BEvNXqc+slSI3RDK1pAAasAKz8H/7EKN0UEOEG9q0Kh58PUnQC/op7SaweRY6SCP+QMV/FQygtxLS84VYNMI5N5oRDogAiKwdjPYqOJhHZK8N4vQXKGIn4v+qetOpoudpc/I11K6Q/bBRSYcV8zkoE7+uunQjE9wwzcyupLstSx9hbXcPTtInV9yt6o2Mb+AS+1ZUOSCGxb9sa2r2vJ03uVvMZ/XydL37vi3eZITNMR+JevtGzupVol3x/vmhb0ARnJIeyuL2k4LroMpTiUMKqP+buUmKmNWhQjlJhdkPZO1xUiZVfp50BlAEBHADGdeWK6W2/DpgsV15KQKP6Z9NIysRUNtzdoXcUKB4FYZWXDj0Qi/Vu/tQ+9QiovbNOnnhzmUbIVxynCYZKcC3LHNo0aVqfg+gd7OPvoIU+XthB/dJ6IRKyR0HOSQls3OH0dVDCVsKBr4Br3KxPdXU/Qwu2EZgVLKWgrg7hoUg7RisQI7uMdvYsbu995HZRcKMxI3oAnkksuuSyv/lQPtvqd1dssz4RK6wn4TDUnFUD17Bjon78w2a879TpXE4t9/p+oq0na7x2xWT9+XGXc0fj9MoDB8= file: - - $TRAVIS_BUILD_DIR/bin/festengine-linux-x64-minimal.tar.gz + - $TRAVIS_BUILD_DIR/bin/festengine-$TRAVIS_TAG-linux-x64-minimal.tar.gz skip_cleanup: true on: tags: true diff --git a/appveyor.yml b/appveyor.yml index c33494c..3a77afb 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -1,6 +1,6 @@ skip_non_tags: true clone_depth: 1 -image: Visual Studio 2017 +image: Visual Studio 2019 environment: APPVEYOR_RDP_PASSWORD: secure: MPAYz75AKBf954hdYvzz2VoCxy5RJLBdg0fajQ1SQUU= @@ -68,30 +68,30 @@ after_test: md ".\locale\ru\LC_MESSAGES" && python %PYTHON_PATH%\Tools\i18n\msgfmt.py -o ".\locale\ru\LC_MESSAGES\main.mo" "%APPVEYOR_BUILD_FOLDER%\src\locale\ru\LC_MESSAGES\main.po" && echo --- Packing a Debug version --- && - 7z a ..\festengine-win%ARCH%-VLCv%VLC_VERSION%-debug.zip *) + 7z a ..\festengine-%APPVEYOR_REPO_TAG_NAME%-win%ARCH%-VLCv%VLC_VERSION%-debug.zip *) - cmd: | echo --- Preparing a Full version --- cd "%APPVEYOR_BUILD_FOLDER%\bin\FestEngine" md ".\locale\ru\LC_MESSAGES" python %PYTHON_PATH%\Tools\i18n\msgfmt.py -o ".\locale\ru\LC_MESSAGES\main.mo" "%APPVEYOR_BUILD_FOLDER%\src\locale\ru\LC_MESSAGES\main.po" echo --- Packing a Full version --- - 7z a ..\festengine-win%ARCH%-VLCv%VLC_VERSION%-full.zip * + 7z a ..\festengine-%APPVEYOR_REPO_TAG_NAME%-win%ARCH%-VLCv%VLC_VERSION%-full.zip * - if [%VLC%]==[latest] ( echo --- Minimalizing a Full version --- && cd "%APPVEYOR_BUILD_FOLDER%\bin\" && .\minimalize.bat && echo --- Packing a Minimal version --- && - 7z a .\festengine-win%ARCH%-minimal.zip .\FestEngine\*) + 7z a .\festengine-%APPVEYOR_REPO_TAG_NAME%-win%ARCH%-minimal.zip .\FestEngine\*) artifacts: - - name: FestEngine Windows $(arch)bit VLC $(vlc_version) Debug - path: bin\festengine-win$(arch)-VLCv$(vlc_version)-debug.zip + - name: FestEngine $(appveyor_repo_tag_name) Windows $(arch)bit VLC $(vlc_version) Debug + path: bin\festengine-$(appveyor_repo_tag_name)-win$(arch)-VLCv$(vlc_version)-debug.zip type: zip - - name: FestEngine Windows $(arch)bit VLC $(vlc_version) Full - path: bin\festengine-win$(arch)-VLCv$(vlc_version)-full.zip + - name: FestEngine $(appveyor_repo_tag_name) Windows $(arch)bit VLC $(vlc_version) Full + path: bin\festengine-$(appveyor_repo_tag_name)-win$(arch)-VLCv$(vlc_version)-full.zip type: zip - - name: FestEngine Windows $(arch)bit Minimal - path: bin\festengine-win$(arch)-minimal.zip + - name: FestEngine $(appveyor_repo_tag_name) Windows $(arch)bit Minimal + path: bin\festengine-$(appveyor_repo_tag_name)-win$(arch)-minimal.zip type: zip deploy: diff --git a/bin/Build.bat b/bin/Build Debug.bat similarity index 100% rename from bin/Build.bat rename to bin/Build Debug.bat diff --git a/bin/Build Release.bat b/bin/Build Release.bat new file mode 100644 index 0000000..11193bd --- /dev/null +++ b/bin/Build Release.bat @@ -0,0 +1,2 @@ +python build.py +pause \ No newline at end of file