forked from flameshot-org/flameshot
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathappveyor.yml
More file actions
38 lines (34 loc) · 1.83 KB
/
appveyor.yml
File metadata and controls
38 lines (34 loc) · 1.83 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
image:
- Visual Studio 2022
clone_folder: c:\projects\source
environment:
Qt6_INSTALL_DIR: 'C:\Qt\6.9.3\msvc2022_64'
PATH: '%Qt6_INSTALL_DIR%\bin;%PATH%'
build_script:
# Build installer (non-portable)
- cmd: |-
set QTDIR=%Qt6_INSTALL_DIR%
set "VCINSTALLDIR=C:\Program Files (x86)\Microsoft Visual Studio\2022\Community\VC"
set "OPENSSL_ROOT_DIR=C:/OpenSSL-v111-Win64"
cmake -S C:\projects\source -B C:\projects\source\build -G "Visual Studio 17 2022" -DCMAKE_BUILD_TYPE=Release -DENABLE_OPENSSL=ON -DUSE_PORTABLE_CONFIG=OFF
cmake --build C:\projects\source\build --parallel 2 --config Release
- cmd: cpack --config C:\projects\source\build\CPackConfig.cmake -G WIX -B C:\projects\source\build\package
# Build portable exe
- cmd: |-
cmake -S C:\projects\source -B C:\projects\source\build-portable -G "Visual Studio 17 2022" -DCMAKE_BUILD_TYPE=Release -DENABLE_OPENSSL=ON -DUSE_PORTABLE_CONFIG=ON
cmake --build C:\projects\source\build-portable --parallel 2 --config Release
# Combine both into artifact.zip
- cmd: |-
mkdir C:\projects\source\build\artifact
copy C:\projects\source\build\package\*.msi C:\projects\source\build\artifact\.
copy C:\projects\source\build-portable\src\Release\*.exe C:\projects\source\build\artifact\.
7z a -tzip C:\projects\source\build\artifact.zip C:\projects\source\build\artifact\
artifacts:
- path: build\artifact.zip
name: artifact
deploy:
- provider: Webhook
url: https://app.signpath.io/API/v1/042f605f-b378-45d8-ad16-b7695b071036/Integrations/AppVeyor?ProjectSlug=flameshot&SigningPolicySlug=test-signing
#url: https://app.signpath.io/API/v1/042f605f-b378-45d8-ad16-b7695b071036/Integrations/AppVeyor?ProjectSlug=flameshot&SigningPolicySlug=release-signing
authorization:
secure: UGxEQ/cEpACvBCjp1lSeZOMkB49/GRpm+PGG9asArdbaVHmLuPuso//tRhNDZJXY5nL4E+/FaaFqV9tBIkYbUQ==