Browse Source

use builds script (WIP)

use_builds_script
Alexandros Theodotou 7 months ago
parent
commit
8638bfb41b
Signed by: alex
GPG Key ID: 022EAE42313D70F3
  1. 5
      meson_options.txt
  2. 8
      windows-msys/make_mingw_pkg.sh.in
  3. 2
      windows-msys/meson.build

5
meson_options.txt

@ -127,3 +127,8 @@ option ( @@ -127,3 +127,8 @@ option (
'manuals-zip-file', type: 'string',
value: '/tmp/manuals.zip',
description: 'Zip file containing manuals (for Windows and MacOS installers)')
option (
'zrythm-builds-path', type: 'string',
value: '',
description: 'Path to zrythm-builds repository. If non-empty, used when caching packages.')

8
windows-msys/make_mingw_pkg.sh.in

@ -20,6 +20,7 @@ @@ -20,6 +20,7 @@
set -ex
mingw_pkg_prefix="@MINGW_PKG_PREFIX@"
zrythm_builds_path="@ZRYTHM_BUILDS_PATH@"
out_file="$1"
@ -65,3 +66,10 @@ else @@ -65,3 +66,10 @@ else
fi
cp $private_dir/*.pkg.tar.zst $out_file
if [ ! -z "$zrythm_builds_path" ]; then
distro=windows-msys
id_rsa_path=
source "$zrythm_builds_path"/scripts/common.sh.in
send_file "$out_file" "/msys2-cache/$out_file"
fi

2
windows-msys/meson.build

@ -49,6 +49,8 @@ windows_msys_conf.set ( @@ -49,6 +49,8 @@ windows_msys_conf.set (
windows_msys_conf.set (
'LSP_DSP_LIB_VER', lsp_dsp_lib_ver)
windows_msys_conf.set ('IS_TAG', is_tag ? 'true' : 'false')
windows_msys_conf.set (
'ZRYTHM_BUILDS_PATH', get_option ('zrythm-builds-path'))
mingw_zrythm_pkgbuild = configure_file (
output: 'PKGBUILD',

Loading…
Cancel
Save