-
-
Notifications
You must be signed in to change notification settings - Fork 37
/
appveyor.yml
executable file
·54 lines (37 loc) · 1.9 KB
/
appveyor.yml
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
version: '{branch}-{build}'
skip_non_tags: true
image: Visual Studio 2022
environment:
Qt5_INSTALL_DIR: C:\Qt\5.15.2\msvc2019
build_script:
- ps: |
$env:PATH += ";C:\Qt\5.15.2\msvc2019\bin"
# Get latest version number from GitHub
$gitTags = git ls-remote --sort="version:refname" --tags https://github.com/ImageMagick/ImageMagick.git
$lastTagLine = $gitTags[-1]
$lastTagVersion = $lastTagLine -replace '.*refs/tags/(.*)', '$1'
$latestVersionNumber = $lastTagVersion
Write-Host "---`nLatest ImageMagick Version Found: $latestVersionNumber`n---"
Invoke-WebRequest -Uri https://imagemagick.org/archive/binaries/ImageMagick-$latestVersionNumber-Q16-HDRI-x86-dll.exe -OutFile ImageMagick-Installer.exe
Start-Process -FilePath ".\ImageMagick-Installer.exe" -ArgumentList "/MERGETASKS=install_devel", "/VERYSILENT", "/DIR=C:\projects\ImageMagick" -NoNewWindow -Wait
- cmd: >-
call "C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\Tools\VsDevCmd.bat"
cd C:\projects\converseen
mkdir build
cd build
cmake -G "NMake Makefiles" -DCMAKE_BUILD_TYPE:STRING=Release -DImageMagick_EXECUTABLE_DIR="C:\projects\ImageMagick" ..
nmake
cpack -B package
mkdir artifact
cp package/*.msi artifact/.
cp package/*.zip artifact/.
7z a -tzip artifact.zip artifact/
artifacts:
- path: build/artifact.zip
name: artifact
deploy:
- provider: Webhook
url: https://app.signpath.io/API/v1/71fbb5b8-055f-4882-ae15-f3a8a2951f83/Integrations/AppVeyor?ProjectSlug=Converseen&SigningPolicySlug=release-signing&ArtifactConfigurationSlug=initial
# url: https://app.signpath.io/API/v1/71fbb5b8-055f-4882-ae15-f3a8a2951f83/Integrations/AppVeyor?ProjectSlug=Converseen&SigningPolicySlug=test-signing&ArtifactConfigurationSlug=initial
authorization:
secure: YoYalnXJBOqOYvwfVK1CtgGyCk5oeNQNyr+8ru9xjnEbydKxGokat+WO47aGhq6vaT0tx0cWUZBTJYwsaVmWbA==