2019-09-08 22:27:57 +02:00
|
|
|
version: "{build}"
|
|
|
|
branches:
|
|
|
|
only:
|
2021-01-02 14:33:15 +01:00
|
|
|
- dont-automatically-build-appveyor
|
2019-09-08 22:27:57 +02:00
|
|
|
image: Visual Studio 2017
|
|
|
|
platform: Any CPU
|
|
|
|
clone_depth: 1
|
|
|
|
install:
|
|
|
|
- cmd: >-
|
2019-09-21 10:23:36 +02:00
|
|
|
choco source add -n=AFG -s="https://api.bintray.com/nuget/anotherfoxguy/choco-pkg"
|
|
|
|
|
|
|
|
choco install conan -y
|
|
|
|
|
|
|
|
refreshenv
|
|
|
|
|
|
|
|
conan user
|
|
|
|
|
2019-09-08 22:27:57 +02:00
|
|
|
git submodule update --init --recursive
|
|
|
|
|
2019-12-26 23:32:14 +01:00
|
|
|
set QTDIR=C:\Qt\5.13\msvc2017_64
|
2019-09-08 22:27:57 +02:00
|
|
|
|
|
|
|
set PATH=%PATH%;%QTDIR%\bin
|
|
|
|
|
|
|
|
call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" x64
|
|
|
|
build_script:
|
|
|
|
- cmd: >-
|
|
|
|
dir
|
|
|
|
|
|
|
|
mkdir build
|
|
|
|
|
|
|
|
cd build
|
|
|
|
|
|
|
|
conan install ..
|
|
|
|
|
|
|
|
set dateOfBuild=%date:~7,2%.%date:~4,2%.%date:~10,4%
|
|
|
|
|
|
|
|
qmake ../chatterino.pro DEFINES+="CHATTERINO_NIGHTLY_VERSION_STRING=\\\"'$s%dateOfBuild% '$$system(git describe --always)-$$system(git rev-list master --count)\\\""
|
|
|
|
|
|
|
|
set cl=/MP
|
|
|
|
|
|
|
|
nmake /S /NOLOGO
|
|
|
|
|
|
|
|
windeployqt release/chatterino.exe --release --no-compiler-runtime --no-translations --no-opengl-sw --dir Chatterino2/
|
|
|
|
|
|
|
|
cp release/chatterino.exe Chatterino2/
|
|
|
|
|
2019-09-15 16:20:32 +02:00
|
|
|
echo nightly > Chatterino2/modes
|
|
|
|
|
2019-09-08 22:27:57 +02:00
|
|
|
7z a chatterino-windows-x86-64.zip Chatterino2/
|
|
|
|
artifacts:
|
|
|
|
- path: build/chatterino-windows-x86-64.zip
|
|
|
|
name: chatterino
|
|
|
|
deploy:
|
|
|
|
- provider: GitHub
|
|
|
|
tag: nightly-build
|
|
|
|
release: nightly-build
|
2019-09-15 16:20:32 +02:00
|
|
|
description: 'nightly v$(appveyor_build_version) built 👉 $(APPVEYOR_REPO_COMMIT_TIMESTAMP) 👈\nLast change: $(APPVEYOR_REPO_COMMIT_MESSAGE) \n$(APPVEYOR_REPO_COMMIT_MESSAGE_EXTENDED)'
|
2019-09-08 22:27:57 +02:00
|
|
|
auth_token:
|
|
|
|
secure: sAJzAbiQSsYZLT+byDar9u61X0E9o35anaPMSFkOzdHeDFHjx1kW4cDP/4EEbxhx
|
|
|
|
repository: Chatterino/chatterino2
|
|
|
|
artifact: build/chatterino-windows-x86-64.zip
|
|
|
|
prerelease: true
|
|
|
|
force_update: true
|
|
|
|
on:
|
2021-01-02 14:33:15 +01:00
|
|
|
branch: master
|