forked from UltraStar-Deluxe/USDX
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
129 lines (109 loc) · 4.37 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
#version: 1.2.{build}
#branches:
# only:
# - master
environment:
global:
APPVEYOR_SAVE_CACHE_ON_ERROR: true
APPVEYOR_CACHE_ENTRY_ZIP_ARGS: -t7z -m0=lzma -mx=4
APPVEYOR_RDP_PASSWORD: UltraStarDeluxe!
NewPascalVersion: v1.0.50
image:
- Visual Studio 2015
- Ubuntu
- Ubuntu2004
configuration:
- x86-64
- x86-32
cache:
- dists/linux/prefix -> dists/linux/dl.sh, dists/linux/tasks.sh
matrix:
exclude:
- image: Visual Studio 2015
configuration: x86-64
# originally disabled on 2022-11-26 by basisbit, this just excludes it in a different way
- image: Ubuntu2004
configuration: x86-32
for:
# Windows
-
matrix:
only:
- image: Visual Studio 2015
install:
- appveyor AddMessage -Category Information "Downloading NewPascal %NewPascalVersion%..."
- appveyor DownloadFile https://github.com/newpascal/newpascal/releases/download/np-%NewPascalVersion%/newpascal.zip
- appveyor AddMessage "Unpacking NewPascal %NewPascalVersion%..."
- 7z x -y "newpascal.zip" -o"C:\" > nul
- appveyor AddMessage -Category Information "Configuring NewPascal..."
- c:\newpascal\configure.bat
- set FPCDIR=c:\newpascal\fpcsrc
- set PATH=c:\newpascal\fpc\bin\i386-win32;c:\newpascal\binw32;C:\Program Files (x86)\NSIS;%path%
build_script:
- appveyor AddMessage -Category Information "Building UltraStar-Deluxe..."
- c:\newpascal\lazarus\lazbuild src\ultrastardx-win.lpi --lazarusdir=c:\newpascal\lazarus
- appveyor AddMessage -Category Information "Done."
after_build:
- del game\*.debug
- appveyor AddMessage -Category Information "Creating Installer..."
- xcopy game\*.dll installer\dependencies\dll /y
- makensis "installer\UltraStar Deluxe.nsi"
- appveyor AddMessage -Category Information "Done."
artifacts:
- path: game
name: UltraStar.Deluxe_continuous_portable
type: zip
- path: installer\dist\UltraStar.Deluxe_*_installer.exe
# Ubuntu (Flatpak)
-
matrix:
only:
- image: Ubuntu2004
platform: x64
install:
- ps: $env:package_version = ("$(git describe --tags --always --long)").trim()
- ps: Update-AppveyorBuild -Version "$env:package_version-$env:APPVEYOR_BUILD_NUMBER"
- sh: sudo apt update -qq --allow-releaseinfo-change
- sh: sudo apt install -y elfutils unzip librsvg2-common flatpak flatpak-builder
- sh: flatpak remote-add --user --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
- sh: |
case "$CONFIGURATION" in
x86-32)
FLATPAK_ARCH=i386
sed -i "/runtime-version:/s/:.*/:"" '18.08'/" dists/flatpak/eu.usdx.UltraStarDeluxe.yaml
sed -i "/name:"" dav1d/,/^-/{/disabled:/s/true/false/}" dists/flatpak/eu.usdx.UltraStarDeluxe.yaml
;;
x86-64)
FLATPAK_ARCH=x86_64
;;
esac
- sh: RUNTIME_VERSION=`sed -n "/runtime-version:/s/.*'\([^']*\)'/\1/p" dists/flatpak/eu.usdx.UltraStarDeluxe.yaml`
- sh: flatpak install --user --noninteractive -y --arch $FLATPAK_ARCH flathub org.freedesktop.Platform//$RUNTIME_VERSION org.freedesktop.Sdk//$RUNTIME_VERSION
build_script:
- sh: "sed -i 's%^\\([[:space:]]*\\)-\\([[:space:]]*\\)\\(\\<type: dir\\>.*\\)%&\\n\\1 \\2skip:\\n\\1 \\2- flatpak%' dists/flatpak/*.yaml"
- sh: mkdir flatpak
- sh: cd flatpak
- sh: flatpak-builder --user --arch $FLATPAK_ARCH --repo=repo build ../dists/flatpak/eu.usdx.UltraStarDeluxe.yaml
- sh: flatpak build-bundle --arch $FLATPAK_ARCH repo ../UltraStarDeluxe-$package_version.$FLATPAK_ARCH.flatpak eu.usdx.UltraStarDeluxe
- sh: cd ..
- sh: rm -Rf flatpak
artifacts:
- path: UltraStarDeluxe*.flatpak
name: UltraStarDeluxe Flatpak Package
# Centos 7 (AppImage)
-
matrix:
only:
- image: Ubuntu
platform:
- x64
build_script:
- sh: cd dists/linux
- sh: sed -i '/docker/s/-it\>//' dockerenv.sh
- sh: prepend=""
- sh: case "$CONFIGURATION" in x86-32) prepend=linux32 ;; esac
- sh: $prepend ./dockerenv.sh make compress
- sh: for i in *.AppImage ; do mv $i ../../UltraStarDeluxe-$(git describe --tags --always --long).${i#*-} ; done
artifacts:
- path: UltraStarDeluxe-*.AppImage
name: UltraStarDeluxe AppImage