2018-01-29 03:12:05 +03:00
|
|
|
---
|
|
|
|
|
2023-02-23 02:50:45 +03:00
|
|
|
version: 0.11.3-{build}
|
2017-04-09 17:09:22 +03:00
|
|
|
|
2018-04-22 15:37:23 +03:00
|
|
|
configuration: Release
|
2022-09-21 03:58:35 +03:00
|
|
|
image: Visual Studio 2022
|
2017-04-09 17:09:22 +03:00
|
|
|
platform: x64
|
|
|
|
|
2018-06-22 23:54:35 +03:00
|
|
|
environment:
|
|
|
|
BINTRAY_APIKEY:
|
2019-01-16 07:41:59 +03:00
|
|
|
secure: "iGl5mzE9/ta9kFELUxDw9XtlYMSCMai9xowXIkYzU8WKHz7NfW0mLwMJZvblZFXJ"
|
2020-03-02 11:42:01 +03:00
|
|
|
MATRIX_ACCESS_TOKEN:
|
|
|
|
secure: Qoy+QQ8zWXYCQrck9GtXJsoPTv9r/rhgCDUlKJ6ue+gkteYG40E9MxgwP1svn6bse20H4z6Svrxn8kFbcJB7Wg2Cnv1s326/vsJJzhWir2eHFFGK+f4SB992/U0HoQmk3Cq5hPk7dLcA7KqHIa1g1PTSFPfl1VODJ2UqqAyn8nzbC5ym+wwU1buJqoWPlTyHBW7eE8wNe77+qI18XpF7NN8yuOOyg3Tzup9YyXLrI36XiJu/5JD3j3s3V1QiUTpuLyQzqwuBUOf1MHTbzuPwHm3ZwzSM98WD6aL6riaK9qa7mDbSx1aY0ukIYSY9IdAfHNwZY/DEAn+QAVD+ZTvPq04ASv+kmSFpOBKr07kpqfM=
|
|
|
|
|
|
|
|
|
2018-06-22 23:54:35 +03:00
|
|
|
|
2019-12-12 01:53:23 +03:00
|
|
|
cache:
|
2021-06-25 19:57:45 +03:00
|
|
|
- c:\hunter\ -> appveyor.yml, CMakeLists.txt
|
|
|
|
- build\_deps -> appveyor.yml, CMakeLists.txt
|
2018-04-25 17:52:47 +03:00
|
|
|
|
2017-04-09 17:09:22 +03:00
|
|
|
build:
|
2018-01-29 03:12:05 +03:00
|
|
|
verbosity: minimal
|
2017-04-09 17:09:22 +03:00
|
|
|
|
|
|
|
install:
|
2023-06-03 03:02:58 +03:00
|
|
|
- set QT_DIR=C:\Qt\6.5\msvc2019_64
|
2021-04-03 14:16:25 +03:00
|
|
|
- set PATH=C:\Strawberry\perl\bin;C:\Python39-x64;%QT_DIR%\bin;%PATH%
|
2017-04-09 17:09:22 +03:00
|
|
|
|
|
|
|
build_script:
|
2017-11-06 18:17:21 +03:00
|
|
|
# VERSION format: branch-master/branch-1.2
|
|
|
|
# INSTVERSION format: x.y.z
|
|
|
|
# WINVERSION format: 9999.0.0.123/1.2.0.234
|
2023-02-23 02:50:45 +03:00
|
|
|
- if "%APPVEYOR_REPO_TAG%"=="false" set INSTVERSION=0.11.3
|
|
|
|
- if "%APPVEYOR_REPO_TAG%"=="false" set VERSION=0.11.3
|
2017-11-06 18:17:21 +03:00
|
|
|
- if "%APPVEYOR_REPO_TAG%"=="false" if "%APPVEYOR_REPO_BRANCH%"=="master" set INSTVERSION=9999.0
|
|
|
|
- if "%APPVEYOR_REPO_TAG%"=="false" set WINVERSION=%INSTVERSION%.0.%APPVEYOR_BUILD_NUMBER%
|
|
|
|
# VERSION format: v1.2.3/v1.3.4
|
|
|
|
# INSTVERSION format: 1.2.3/1.3.4
|
|
|
|
# WINVERSION format: 1.2.3.123/1.3.4.234
|
|
|
|
- if "%APPVEYOR_REPO_TAG%"=="true" set VERSION=%APPVEYOR_REPO_TAG_NAME%
|
|
|
|
- if "%APPVEYOR_REPO_TAG%"=="true" set INSTVERSION=%VERSION:~1%
|
|
|
|
- if "%APPVEYOR_REPO_TAG%"=="true" set WINVERSION=%VERSION:~1%.%APPVEYOR_BUILD_NUMBER%
|
|
|
|
- set DATE=%date:~10,4%-%date:~4,2%-%date:~7,2%
|
|
|
|
- echo %VERSION%
|
|
|
|
- echo %INSTVERSION%
|
|
|
|
- echo %DATE%
|
2018-06-04 13:54:51 +03:00
|
|
|
|
|
|
|
# Build nheko
|
2022-09-21 03:58:35 +03:00
|
|
|
- cmake -G "Visual Studio 17 2022" -A x64 -H. -Bbuild
|
2021-03-17 21:27:24 +03:00
|
|
|
-DHUNTER_ROOT="C:\hunter"
|
2021-03-13 20:42:21 +03:00
|
|
|
-DHUNTER_ENABLED=ON -DBUILD_SHARED_LIBS=OFF -DUSE_BUNDLED_OPENSSL=ON
|
2020-01-25 04:40:32 +03:00
|
|
|
-DCMAKE_BUILD_TYPE=Release -DHUNTER_CONFIGURATION_TYPES=Release
|
2020-01-24 20:09:11 +03:00
|
|
|
|
2017-04-24 23:28:19 +03:00
|
|
|
- cmake --build build --config Release
|
2017-04-09 17:09:22 +03:00
|
|
|
|
2022-10-02 11:46:04 +03:00
|
|
|
- call "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvarsall.bat" x64
|
2021-11-15 04:55:37 +03:00
|
|
|
- git clone https://github.com/Nheko-Reborn/qt-jdenticon.git
|
|
|
|
- cd qt-jdenticon
|
|
|
|
- qmake
|
|
|
|
- nmake
|
|
|
|
- cd ..
|
|
|
|
|
2017-04-09 17:09:22 +03:00
|
|
|
after_build:
|
2017-11-06 18:17:21 +03:00
|
|
|
# Variables
|
|
|
|
- set BUILD=%APPVEYOR_BUILD_FOLDER%
|
|
|
|
- echo %BUILD%
|
2017-04-09 17:09:22 +03:00
|
|
|
- mkdir NhekoRelease
|
2017-04-24 23:28:19 +03:00
|
|
|
- copy build\Release\nheko.exe NhekoRelease\nheko.exe
|
2021-11-18 20:39:58 +03:00
|
|
|
- copy qt-jdenticon\release\qtjdenticon0.dll NhekoRelease\qtjdenticon.dll
|
2020-01-26 17:44:56 +03:00
|
|
|
- copy build\_deps\cmark-build\src\Release\cmark.dll NhekoRelease\cmark.dll
|
2021-04-03 15:46:03 +03:00
|
|
|
- windeployqt --qmldir resources\qml\ NhekoRelease\nheko.exe
|
2018-04-25 17:52:47 +03:00
|
|
|
|
2017-04-09 17:09:22 +03:00
|
|
|
- 7z a nheko_win_64.zip .\NhekoRelease\*
|
2017-11-06 18:17:21 +03:00
|
|
|
- ls -lh build\Release\
|
|
|
|
- ls -lh NhekoRelease\
|
2017-11-06 18:42:44 +03:00
|
|
|
- mkdir NhekoData
|
|
|
|
- xcopy .\NhekoRelease\*.* NhekoData\*.* /s /e /c /y
|
2017-11-06 18:17:21 +03:00
|
|
|
#
|
|
|
|
# Create the Qt Installer Framework version
|
|
|
|
#
|
|
|
|
- mkdir installer
|
|
|
|
- mkdir installer\config
|
|
|
|
- mkdir installer\packages
|
2020-04-19 23:08:19 +03:00
|
|
|
- mkdir installer\packages\io.github.nhekoreborn.nheko
|
|
|
|
- mkdir installer\packages\io.github.nhekoreborn.nheko\data
|
|
|
|
- mkdir installer\packages\io.github.nhekoreborn.nheko\meta
|
2017-11-06 18:17:21 +03:00
|
|
|
# Copy installer data
|
|
|
|
- copy %BUILD%\resources\nheko.ico installer\config
|
|
|
|
- copy %BUILD%\resources\nheko.png installer\config
|
2020-04-19 23:08:19 +03:00
|
|
|
- copy %BUILD%\COPYING installer\packages\io.github.nhekoreborn.nheko\meta\license.txt
|
2017-11-06 18:17:21 +03:00
|
|
|
- copy %BUILD%\deploy\installer\config.xml installer\config
|
|
|
|
- copy %BUILD%\deploy\installer\controlscript.qs installer\config
|
2020-04-19 23:08:19 +03:00
|
|
|
- copy %BUILD%\deploy\installer\uninstall.qs installer\packages\io.github.nhekoreborn.nheko\data
|
|
|
|
- copy %BUILD%\deploy\installer\gui\package.xml installer\packages\io.github.nhekoreborn.nheko\meta
|
|
|
|
- copy %BUILD%\deploy\installer\gui\installscript.qs installer\packages\io.github.nhekoreborn.nheko\meta
|
2017-11-06 18:17:21 +03:00
|
|
|
# Amend version and date
|
2023-02-23 02:50:45 +03:00
|
|
|
- sed -i "s/__VERSION__/0.11.3/" installer\config\config.xml
|
|
|
|
- sed -i "s/__VERSION__/0.11.3/" installer\packages\io.github.nhekoreborn.nheko\meta\package.xml
|
2020-04-19 23:08:19 +03:00
|
|
|
- sed -i "s/__DATE__/%DATE%/" installer\packages\io.github.nhekoreborn.nheko\meta\package.xml
|
2017-11-06 18:17:21 +03:00
|
|
|
# Copy nheko data
|
2020-04-19 23:08:19 +03:00
|
|
|
- xcopy NhekoData\*.* installer\packages\io.github.nhekoreborn.nheko\data\*.* /s /e /c /y
|
2023-10-29 21:41:22 +03:00
|
|
|
- copy NhekoRelease\nheko.exe installer\packages\io.github.nhekoreborn.nheko\data
|
2017-11-06 18:17:21 +03:00
|
|
|
- mkdir tools
|
2022-03-03 20:58:48 +03:00
|
|
|
- curl -L -O https://download.qt.io/official_releases/qt-installer-framework/4.3.0/QtInstallerFramework-windows-x86-4.3.0.exe
|
|
|
|
- 7z x QtInstallerFramework-windows-x86-4.3.0.exe -otools -aoa
|
2017-11-06 18:17:21 +03:00
|
|
|
- set PATH=%BUILD%\tools\bin;%PATH%
|
2017-11-06 18:42:44 +03:00
|
|
|
- binarycreator.exe -f -c installer\config\config.xml -p installer\packages nheko-installer.exe
|
2017-04-09 17:09:22 +03:00
|
|
|
|
2023-10-29 21:41:22 +03:00
|
|
|
# build an msix
|
|
|
|
- mkdir msix
|
|
|
|
- xcopy .\NhekoRelease\*.* msix\*.* /s /e /c /y
|
|
|
|
- copy %BUILD%\resources\nheko.png msix
|
|
|
|
- copy %BUILD%\resources\AppxManifest.xml msix
|
|
|
|
- '"C:\Program Files (x86)\Windows Kits\10\App Certification Kit\makeappx.exe" pack -d msix -p nheko.msix'
|
|
|
|
|
2021-04-20 23:18:45 +03:00
|
|
|
- copy nheko-installer.exe nheko-%APPVEYOR_REPO_TAG_NAME%-installer.exe
|
|
|
|
- copy nheko-installer.exe nheko-%APPVEYOR_PULL_REQUEST_HEAD_COMMIT%-installer.exe
|
2021-03-01 04:20:13 +03:00
|
|
|
- ps: .\.ci\upload-nightly.ps1
|
2018-06-17 16:53:14 +03:00
|
|
|
|
2018-09-21 15:04:50 +03:00
|
|
|
deploy:
|
2020-01-04 22:27:50 +03:00
|
|
|
- description: "Development builds"
|
|
|
|
provider: GitHub
|
|
|
|
auth_token:
|
|
|
|
secure: "ShStWeqp+TkYqJPQr7uFZb+B8ZTgC7Iwth+IkhjfRDCTLhy8gtWvlPzlQilder3E"
|
|
|
|
artifact: nheko-${APPVEYOR_REPO_TAG_NAME}-installer.exe
|
|
|
|
force_update: true
|
|
|
|
prerelease: true
|
|
|
|
on:
|
|
|
|
appveyor_repo_tag: true
|
2018-09-21 15:04:50 +03:00
|
|
|
|
2017-04-09 17:09:22 +03:00
|
|
|
artifacts:
|
|
|
|
- path: nheko_win_64.zip
|
2023-10-29 21:41:22 +03:00
|
|
|
- path: nheko.msix
|
2018-06-17 16:53:14 +03:00
|
|
|
- path: nheko-$(APPVEYOR_REPO_TAG_NAME)-installer.exe
|
2021-04-20 23:18:45 +03:00
|
|
|
- path: nheko-$(APPVEYOR_PULL_REQUEST_HEAD_COMMIT)-installer.exe
|