blob: 4deb05cdcd0bf35ae1930c92cf0e6ff72de5cf3f (
plain)
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
|
version: 1.1.{build}
image: Visual Studio 2019
environment:
MSYSTEM: MINGW64
ARCH: "64bit"
clone_depth: 10
# init:
# - ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
install:
- set PATH=C:\msys64\usr\bin;%PATH%
- bash -lc "pacman --needed --noconfirm -Syu"
# This is needed because without killing all processes -Su will fail
- ps: Get-Process | Where-Object {$_.path -like 'C:\msys64*'} | Stop-Process
- bash -lc "pacman -Sydd --noconfirm filesystem"
- bash -lc "pacman --needed --noconfirm -Su"
build_script:
- ps: |
$filename = "Gajim-$($env:GAJIM_VERSION)-$($env:ARCH)"
$filename_portable = "Gajim-Portable-$($env:GAJIM_VERSION)-$($env:ARCH)"
$filename_msixbundle = "Gajim-$($env:GAJIM_VERSION)"
if ($env:GAJIM_VERSION -eq "Nightly") {
$time_string=(get-date -UFormat "%Y-%m-%d").ToString()
$filename = $filename + "-" + $time_string
$filename_portable = $filename_portable + "-" + $time_string
}
$buildroot="C:\msys64\home\appveyor\gajim\win\_build_root"
function bash($command) {
Write-Host $command -NoNewline
C:\msys64\usr\bin\sh.exe --login -c $command
}
git clone "$env:APPVEYOR_BUILD_FOLDER" "C:\msys64\home\appveyor\gajim"
bash "C:/msys64/home/appveyor/gajim/win/build.sh"
if ($LastExitCode -ne 0) { $host.SetShouldExit($LastExitCode) }
Push-AppveyorArtifact "$($buildroot)/Gajim.exe" -FileName "$($filename).exe"
Push-AppveyorArtifact "$($buildroot)/Gajim-Portable.exe" -FileName "$($filename_portable).exe"
Push-AppveyorArtifact "$($buildroot)/Gajim.msixbundle" -FileName "$($filename_msixbundle).msixbundle"
if ($LastExitCode -ne 0) { $host.SetShouldExit($LastExitCode) }
# on_finish:
# - ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
|