| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
version: 0.6.5.{build} |
| 7 |
|
| 8 |
|
| 9 |
branches: |
| 10 |
|
| 11 |
only: |
| 12 |
- master |
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
skip_commits: |
| 17 |
message: /Created.*\.(png|jpg|jpeg|bmp|gif|md)/ |
| 18 |
files: |
| 19 |
- '*.md' |
| 20 |
- '*.txt' |
| 21 |
- 'LICENSE' |
| 22 |
- '.gitignore' |
| 23 |
|
| 24 |
|
| 25 |
|
| 26 |
|
| 27 |
|
| 28 |
|
| 29 |
clone_depth: 3 |
| 30 |
|
| 31 |
environment: |
| 32 |
APPVEYOR_YML_DISABLE_PS_LINUX: true |
| 33 |
matrix: |
| 34 |
|
| 35 |
- APPVEYOR_JOB_NAME: for Windows (7 or later) |
| 36 |
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019 |
| 37 |
COMPILER: C:\Qt\Tools\mingw810_32\bin |
| 38 |
QT: C:\Qt\5.15.2\mingw81_32\bin |
| 39 |
PLATFORM: windows |
| 40 |
DEST: BambooTracker-v%APPVEYOR_BUILD_VERSION%-dev-windows-7-32bit.zip |
| 41 |
MAKE: mingw32-make |
| 42 |
RELEASE_BUILD: false |
| 43 |
|
| 44 |
|
| 45 |
|
| 46 |
|
| 47 |
|
| 48 |
|
| 49 |
|
| 50 |
|
| 51 |
|
| 52 |
|
| 53 |
|
| 54 |
|
| 55 |
|
| 56 |
|
| 57 |
|
| 58 |
|
| 59 |
|
| 60 |
|
| 61 |
|
| 62 |
- APPVEYOR_JOB_NAME: for macOS |
| 63 |
APPVEYOR_BUILD_WORKER_IMAGE: macos-ventura |
| 64 |
PLATFORM: macos |
| 65 |
DEST: BambooTracker-v$APPVEYOR_BUILD_VERSION-dev-macos-64bit.zip |
| 66 |
MAKE: make |
| 67 |
RELEASE_BUILD: false |
| 68 |
|
| 69 |
for: |
| 70 |
- |
| 71 |
|
| 72 |
matrix: |
| 73 |
only: |
| 74 |
- RELEASE_BUILD: false |
| 75 |
skip_tags: true |
| 76 |
|
| 77 |
|
| 78 |
|
| 79 |
|
| 80 |
|
| 81 |
|
| 82 |
|
| 83 |
|
| 84 |
install: |
| 85 |
- git submodule init |
| 86 |
- git submodule update |
| 87 |
|
| 88 |
|
| 89 |
|
| 90 |
|
| 91 |
|
| 92 |
|
| 93 |
platform: x86 |
| 94 |
|
| 95 |
|
| 96 |
before_build: |
| 97 |
- ps: $env:Path = "$env:QT;$env:COMPILER;$env:Path" |
| 98 |
- sh: | |
| 99 |
# Update outdated cacerts |
| 100 |
curl --insecure --remote-name https://curl.se/ca/cacert.pem |
| 101 |
sudo mv cacert.pem /etc/ssl/cert.pem |
| 102 |
|
| 103 |
export HOMEBREW_NO_INSTALL_CLEANUP=1 |
| 104 |
brew update |
| 105 |
|
| 106 |
# Download failed: Homebrew-installed `curl` is not installed |
| 107 |
brew install curl |
| 108 |
brew install pkg-config jack p7zip |
| 109 |
|
| 110 |
export PATH="$HOME/Qt/6.6/macos/bin:$PATH" |
| 111 |
export PKG_CONFIG_PATH="/usr/local/opt/jack/lib/pkgconfig"${PKG_CONFIG_PATH:+':'}$PKG_CONFIG_PATH |
| 112 |
|
| 113 |
|
| 114 |
build_script: |
| 115 |
- ps: | |
| 116 |
$QMAKE_CONFIGS = if ($env:RELEASE_BUILD -ieq "true") { "CONFIG+=release CONFIG-=debug" } else { "CONFIG-=release CONFIG+=debug CONFIG+=console CONFIG+=nostrip" } |
| 117 |
echo $QMAKE_CONFIGS |
| 118 |
Invoke-Expression ("qmake.exe Project.pro PREFIX=$pwd\target " + $QMAKE_CONFIGS) |
| 119 |
Invoke-Expression ($env:MAKE + " qmake_all") |
| 120 |
Invoke-Expression ($env:MAKE + " -j2") |
| 121 |
- sh: | |
| 122 |
qmake Project.pro PREFIX="$APPVEYOR_BUILD_FOLDER"/target CONFIG-=release CONFIG+=debug CONFIG+=console CONFIG+=nostrip CONFIG+=install_flat CONFIG+=use_jack CONFIG+=no_warnings_are_errors |
| 123 |
$MAKE qmake_all |
| 124 |
$MAKE -j2 |
| 125 |
|
| 126 |
|
| 127 |
after_build: |
| 128 |
- ps: Invoke-Expression ($env:MAKE + " install") |
| 129 |
- sh: $MAKE install |
| 130 |
- cd target |
| 131 |
|
| 132 |
- ps: | |
| 133 |
Copy-Item -Recurse ..\*.md . |
| 134 |
$HELP_OUT = (windeployqt.exe -h) |
| 135 |
$DEPLOY_OPTS = "-verbose=2" |
| 136 |
$PLUGIN_OPTS = @("--no-quick-import","--no-system-d3d-compiler","--no-webkit2","--no-opengl-sw","--no-virtualkeyboard","--no-angle") |
| 137 |
$PLUGIN_OPTS | ForEach{If ($HELP_OUT | Select-String $_) { $DEPLOY_OPTS = $DEPLOY_OPTS + " " + $_ }} |
| 138 |
$EXLIB_OPTS = @("svg") |
| 139 |
$EXLIB_OPTS | ForEach{If ($HELP_OUT | Select-String $_) { $DEPLOY_OPTS = $DEPLOY_OPTS + " --no-" + $_ }} |
| 140 |
Invoke-Expression ("windeployqt.exe BambooTracker.exe " + $DEPLOY_OPTS) |
| 141 |
Copy-Item -Recurse translations\*.qm lang |
| 142 |
# Save qico* library for working .ico support! |
| 143 |
Move-Item imageformats\*qico* .\ |
| 144 |
Remove-Item -Recurse -Force imageformats\*,translations |
| 145 |
Move-Item *qico* imageformats\ |
| 146 |
- sh: bash ../scripts/package_osx.sh |
| 147 |
- cd .. |
| 148 |
- ps: | |
| 149 |
$DEV_LAB = if ($env:RELEASE_BUILD -ieq "true") { "-" } else { "-dev-" } |
| 150 |
mv target BambooTracker-v"$env:APPVEYOR_BUILD_VERSION$DEV_LAB$env:PLATFORM" |
| 151 |
7z a -tzip "$env:DEST" BambooTracker-v"$env:APPVEYOR_BUILD_VERSION$DEV_LAB$env:PLATFORM" |
| 152 |
- sh: | |
| 153 |
mv target BambooTracker-v"$APPVEYOR_BUILD_VERSION"-dev-"$PLATFORM" |
| 154 |
7z a -tzip "$DEST" BambooTracker-v"$APPVEYOR_BUILD_VERSION"-dev-"$PLATFORM" |
| 155 |
|
| 156 |
|
| 157 |
|
| 158 |
|
| 159 |
|
| 160 |
artifacts: |
| 161 |
|
| 162 |
- path: $(DEST) |