-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
60 additions
and
952 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule LunarCalendar
updated
24 files
+3 −3 | .github/workflows/android.yml | |
+10 −6 | .github/workflows/build.yml | |
+1 −1 | .github/workflows/doxygen.yml | |
+2 −2 | .github/workflows/macos.yml | |
+4 −4 | .github/workflows/mingw.yml | |
+10 −7 | .github/workflows/msvc.yml | |
+3 −3 | .github/workflows/ubuntu.yml | |
+1 −1 | .travis.yml | |
+1 −1 | App/android/AndroidManifest.xml | |
+1 −1 | CMakeLists.txt | |
+1 −0 | Docs/Developer.md | |
+1 −1 | Install/Install.nsi | |
+1 −1 | README.md | |
+1 −1 | README_zh_CN.md | |
+1 −1 | Src/CMakeLists.txt | |
+6 −8 | Src/LunarCalendar.h | |
+1 −1 | Update/update.xml | |
+54 −123 | appveyor.yml | |
+0 −94 | ci/build-install-tools-windows.sh | |
+0 −178 | ci/build-install-tools.sh | |
+0 −287 | ci/build.sh | |
+0 −168 | ci/qt-installer.sh | |
+2 −2 | debian/changelog | |
+6 −7 | deploy.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,163 +1,115 @@ | ||
#TODO: Change version | ||
version: 'v1.0.18.{build}' | ||
|
||
cache: | ||
- ..\other_source | ||
- | ||
# Clean cached | ||
# https://www.appveyor.com/docs/build-cache/#cleaning-up-cache | ||
|
||
environment: | ||
CalendarVersion: v0.0.26 | ||
CalendarVersion: v1.0.18 | ||
STOREPASS: | ||
secure: l9BZEU39F1a4vSkhwl0CHR+yh6CD1c7byGzMv+1NUa4= | ||
QT_USER: | ||
secure: EoBPaPuJ6u9UDYpQWjKhUg== | ||
QT_PASSWORD: | ||
secure: ejAYGgB+3sBispRxUSr0xw== | ||
|
||
matrix: | ||
##### msvc 2015 ######## | ||
- BUILD_TARGERT: windows_msvc | ||
GENERATORS: "Visual Studio 14 2015" | ||
TOOLCHAIN_VERSION: 14 | ||
QT_ROOT: C:\Qt\5.10\msvc2015 | ||
BUILD_ARCH: x86 | ||
|
||
- BUILD_TARGERT: windows_msvc | ||
GENERATORS: "Visual Studio 14 2015 Win64" | ||
TOOLCHAIN_VERSION: 14 | ||
QT_ROOT: C:\Qt\5.10\msvc2015_64 | ||
BUILD_ARCH: x64 | ||
|
||
- BUILD_TARGERT: windows_msvc | ||
GENERATORS: "Visual Studio 14 2015" | ||
- GENERATORS: "Visual Studio 14 2015" | ||
TOOLCHAIN_VERSION: 14 | ||
QT_ROOT: C:\Qt\5.6\msvc2015 | ||
BUILD_ARCH: x86 | ||
|
||
- BUILD_TARGERT: windows_msvc | ||
GENERATORS: "Visual Studio 14 2015 Win64" | ||
- GENERATORS: "Visual Studio 14 2015 Win64" | ||
TOOLCHAIN_VERSION: 14 | ||
QT_ROOT: C:\Qt\5.6\msvc2015_64 | ||
BUILD_ARCH: x64 | ||
|
||
##### msvc 2017 ######## | ||
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017 | ||
GENERATORS: "Visual Studio 15 2017" | ||
BUILD_TARGERT: windows_msvc | ||
TOOLCHAIN_VERSION: 15 | ||
QT_ROOT: C:\Qt\5.12\msvc2017 | ||
BUILD_ARCH: x86 | ||
STATIC: ON | ||
|
||
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017 | ||
GENERATORS: "Visual Studio 15 2017 Win64" | ||
BUILD_TARGERT: windows_msvc | ||
TOOLCHAIN_VERSION: 15 | ||
QT_ROOT: C:\Qt\5.12\msvc2017_64 | ||
BUILD_ARCH: x64 | ||
STATIC: ON | ||
|
||
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017 | ||
GENERATORS: "Visual Studio 15 2017 Win64" | ||
BUILD_TARGERT: windows_msvc | ||
TOOLCHAIN_VERSION: 15 | ||
QT_ROOT: C:\Qt\5.10\msvc2017_64 | ||
BUILD_ARCH: x64 | ||
|
||
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017 | ||
GENERATORS: "Visual Studio 15 2017 Win64" | ||
BUILD_TARGERT: windows_msvc | ||
TOOLCHAIN_VERSION: 15 | ||
QT_ROOT: C:\Qt\5.9\msvc2017_64 | ||
BUILD_ARCH: x64 | ||
|
||
matrix: | ||
fast_finish: false | ||
|
||
init: | ||
- set varch=%BUILD_ARCH% | ||
- if "%BUILD_ARCH%" == "x64" set varch=amd64 | ||
- if "%BUILD_TARGERT%" == "windows_msvc" if %TOOLCHAIN_VERSION% LSS 15 (call "C:\Program Files (x86)\Microsoft Visual Studio %TOOLCHAIN_VERSION%.0\VC\vcvarsall.bat" %varch%) else (call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" %varch%) | ||
- if %TOOLCHAIN_VERSION% LSS 15 (call "C:\Program Files (x86)\Microsoft Visual Studio %TOOLCHAIN_VERSION%.0\VC\vcvarsall.bat" %varch%) else (call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" %varch%) | ||
- echo NUMBER_OF_PROCESSORS=%NUMBER_OF_PROCESSORS% | ||
- echo PROCESSOR_IDENTIFIER=%PROCESSOR_IDENTIFIER% | ||
- if NOT "%QT_ROOT%" == "NO" for /f "delims=" %%i in ('%QT_ROOT%/bin/qmake -query QT_VERSION') do (set QT_VERSION=%%i) | ||
- if NOT "%QT_ROOT%" == "NO" for /f "delims=" %%i in ('%QT_ROOT%/bin/qmake -query QT_VERSION') do (set QT_VERSION=%%i) | ||
- echo QT_ROOT=%QT_ROOT% | ||
- echo QT_VERSION=%QT_VERSION% | ||
- del C:\msys64\usr\bin\link.exe | ||
|
||
install: | ||
- C:\msys64\autorebase.bat | ||
- C:\msys64\usr\bin\pacman.exe -S --noconfirm unzip | ||
#- if "%BUILD_TARGERT%"=="windows_mingw" set PATH=C:\Qt\Tools\mingw%TOOLCHAIN_VERSION%_32\bin;%PATH% | ||
- if "%BUILD_TARGERT%" == "windows_mingw" set MSYSTEM=MINGW32 #设置编译系统为MINGW32 | ||
|
||
- cd %APPVEYOR_BUILD_FOLDER% | ||
- git submodule update --init --recursive | ||
- git clone https://github.com/KangLin/RabbitCommon.git | ||
- if "%BUILD_TARGERT%" == "android" C:\msys64\usr\bin\bash.exe %APPVEYOR_BUILD_FOLDER%\ci\build-install-tools-windows.sh | ||
- set RabbitCommon_DIR=%APPVEYOR_BUILD_FOLDER%/RabbitCommon | ||
|
||
before_build: | ||
- cd %APPVEYOR_BUILD_FOLDER% | ||
- set OTHER_SOURCE=%APPVEYOR_BUILD_FOLDER%\..\other_source | ||
- set INSTALL_DIR=%OTHER_SOURCE%\install_dir | ||
- set VCPKG_DIR=%OTHER_SOURCE%\vcpkg | ||
- if not exist "%OTHER_SOURCE%" ( mkdir "%OTHER_SOURCE%" ) | ||
- if not exist "%INSTALL_DIR%" (mkdir "%INSTALL_DIR%") | ||
|
||
- cd %OTHER_SOURCE% | ||
- set CMAKE_VERSION=3.26.4 | ||
- set CMAKE_VERSION=3.28.3 | ||
- if not exist cmake-%CMAKE_VERSION%-windows-i386 (curl -fsSL -o cmake-%CMAKE_VERSION%-windows-i386.zip https://github.com/Kitware/CMake/releases/download/v%CMAKE_VERSION%/cmake-%CMAKE_VERSION%-windows-i386.zip && 7z x cmake-%CMAKE_VERSION%-windows-i386.zip) | ||
- cd cmake-%CMAKE_VERSION%-windows-i386 | ||
- set PATH="%CD%/bin";%PATH% | ||
|
||
- cd %OTHER_SOURCE% | ||
- if not exist "%INSTALL_DIR%" (mkdir "%INSTALL_DIR%") | ||
- cd %OTHER_SOURCE% | ||
- if not exist vcpkg (git clone "https://github.com/microsoft/vcpkg.git" && cd "%VCPKG_DIR%" && git checkout -b a1a1cbc975abf909a6c8985a6a2b8fe20bbd9bd6 a1a1cbc975abf909a6c8985a6a2b8fe20bbd9bd6 ) | ||
- cd %VCPKG_DIR% | ||
- bootstrap-vcpkg.bat | ||
#- vcpkg --triplet %BUILD_ARCH%-windows install zlib openssl | ||
- set VCPKG_DIR=%OTHER_SOURCE%\vcpkg | ||
- if not exist %VCPKG_DIR% (git clone "https://github.com/microsoft/vcpkg.git" && cd "%VCPKG_DIR%" && git checkout -b a1a1cbc975abf909a6c8985a6a2b8fe20bbd9bd6 a1a1cbc975abf909a6c8985a6a2b8fe20bbd9bd6 && bootstrap-vcpkg.bat) | ||
|
||
- cd "%OTHER_SOURCE%" | ||
- if exist RabbitCommon (rmdir /s /q "RabbitCommon") | ||
- if not exist RabbitCommon (git clone "https://github.com/KangLin/RabbitCommon.git") | ||
- set RabbitCommon_DIR=%OTHER_SOURCE%/RabbitCommon | ||
before_build: | ||
|
||
build_script: | ||
- cd %APPVEYOR_BUILD_FOLDER% | ||
- mkdir build | ||
- cd build | ||
- cmake .. -G"%GENERATORS%" -DQT_DIR=%QT_ROOT%/lib/cmake/Qt5 -DQt5_DIR=%QT_ROOT%/lib/cmake/Qt5 -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="%cd%/install" -DCMAKE_PREFIX_PATH="%INSTALL_DIR%" -DCMAKE_TOOLCHAIN_FILE="%VCPKG_DIR%/scripts/buildsystems/vcpkg.cmake" | ||
- cmake %APPVEYOR_BUILD_FOLDER% ^ | ||
-G"%GENERATORS%" ^ | ||
-DCMARK_SHARED=OFF ^ | ||
-DCMARK_TESTS=OFF ^ | ||
-DCMARK_STATIC=ON ^ | ||
-DQT_DIR=%QT_ROOT%/lib/cmake/Qt5 ^ | ||
-DQt5_DIR=%QT_ROOT%/lib/cmake/Qt5 ^ | ||
-DINSTALL_QT=ON ^ | ||
-DCMAKE_BUILD_TYPE=Release ^ | ||
-DCMAKE_INSTALL_PREFIX="%cd%/install" ^ | ||
-DCMAKE_PREFIX_PATH="%INSTALL_DIR%" ^ | ||
-DCMAKE_TOOLCHAIN_FILE="%VCPKG_DIR%/scripts/buildsystems/vcpkg.cmake" ^ | ||
-DX_VCPKG_APPLOCAL_DEPS_INSTALL=ON ^ | ||
-DVCPKG_APPLOCAL_DEPS=ON | ||
- cmake --build . --config Release | ||
- cmake --build . --config Release --target install | ||
|
||
#- echo "xcopy /Y %VCPKG_DIR%\installed\%BUILD_ARCH%-windows\bin\*.dll install\bin" | ||
#- xcopy /Y %VCPKG_DIR%\installed\%BUILD_ARCH%-windows\bin\*.dll install\bin | ||
#- xcopy /Y %INSTALL_DIR%\bin\*.dll install\bin | ||
- call "C:\Program Files (x86)\NSIS\makensis.exe" Install.nsi | ||
- copy /Y Calendar_Setup_%CalendarVersion%.exe Calendar_%CalendarVersion%_winxp_%BUILD_ARCH%_Setup.exe | ||
|
||
after_build: | ||
- rmdir /S /Q "%VCPKG_DIR%/buildtrees" | ||
- rmdir /S /Q "%VCPKG_DIR%/installed" | ||
|
||
artifacts: | ||
- path: Calendar_Setup_*.exe | ||
#name: Calendar_$(BUILD_TARGERT)$(TOOLCHAIN_VERSION)_$(BUILD_ARCH)_$(QT_VERSION)_$(appveyor_build_version) | ||
#type: zip | ||
- path: Calendar_$(CalendarVersion)_winxp_$(BUILD_ARCH)_Setup.exe | ||
|
||
test: off | ||
|
||
##See:https://www.appveyor.com/docs/deployment/github/ | ||
#deploy: | ||
# - provider: GitHub | ||
# #release: Tasks$(appveyor_build_version) | ||
# #description: 'Release Tasks $(APPVEYOR_REPO_TAG_NAME) on windows' | ||
# #token : https://github.com/settings/tokens | ||
# #password encrypt: https://ci.appveyor.com/tools/encrypt | ||
# auth_token: | ||
# secure: aPr1U6S1RtXZiK2mCWtAAIOMjuiBR0yPsD2kaYIADtx2ulIitdp336kFqmfKwM9x | ||
# #artifact: Tasks$(BUILD_TARGERT)$(TOOLCHAIN_VERSION)_$(BUILD_ARCH)_$(QT_VERSION)_$(appveyor_build_version) | ||
# #draft: true | ||
# #prerelease: true | ||
# force_update: true | ||
# on: | ||
# BUILD_TARGERT: windows_msvc | ||
# TOOLCHAIN_VERSION: 12 | ||
# QT_VERSION: 5.6.3 | ||
# BUILD_ARCH: x86 | ||
# appveyor_repo_tag: true # deploy on tag push only | ||
#See:https://www.appveyor.com/docs/deployment/github/ | ||
deploy: | ||
- provider: GitHub | ||
#release: Tasks$(appveyor_build_version) | ||
#description: 'Release Tasks $(APPVEYOR_REPO_TAG_NAME) on windows' | ||
#token : https://github.com/settings/tokens | ||
#password encrypt: https://ci.appveyor.com/tools/encrypt | ||
auth_token: | ||
secure: aPr1U6S1RtXZiK2mCWtAAIOMjuiBR0yPsD2kaYIADtx2ulIitdp336kFqmfKwM9x | ||
#artifact: Tasks$(BUILD_TARGERT)$(TOOLCHAIN_VERSION)_$(BUILD_ARCH)_$(QT_VERSION)_$(appveyor_build_version) | ||
#draft: true | ||
#prerelease: true | ||
force_update: true | ||
on: | ||
TOOLCHAIN_VERSION: 14 | ||
QT_VERSION: 5.6.3 | ||
BUILD_ARCH: x86 | ||
appveyor_repo_tag: true # deploy on tag push only |
Oops, something went wrong.