Browse Source

windows: split make_dist and make_installer

use_builds_script
Alexandros Theodotou 2 years ago
parent
commit
b467c7ff7b
Signed by: alex
GPG Key ID: 022EAE42313D70F3
  1. 29
      debian/meson.build
  2. 39
      sources/meson.build
  3. 28
      windows-msys/PKGBUILD-w10.in
  4. 0
      windows-msys/copy-dll-deps.sh
  5. 192
      windows-msys/make_dist_dir.sh.in
  6. 14
      windows-msys/make_mingw_pkg.sh.in
  7. 169
      windows-msys/make_windows_installer.sh.in
  8. 5
      windows-msys/make_zrythm_mingw_pkg.sh.in
  9. 77
      windows-msys/meson.build

29
debian/meson.build vendored

@ -15,24 +15,49 @@ @@ -15,24 +15,49 @@
# You should have received a copy of the GNU Affero General Public License
# along with Zrythm. If not, see <https://www.gnu.org/licenses/>.
# configure files
debian_changelog = configure_file (
output: 'changelog',
input: 'changelog.in',
configuration: global_conf,
)
debian_control = configure_file (
output: 'control',
input: 'control.in',
configuration: global_conf,
)
debian_rules = configure_file (
output: 'rules',
input: 'rules.in',
configuration: global_conf,
)
# sources
debian_zrythm_src_tarball = custom_target (
'debian-zrythm-source-tarball',
output: debian_src_tarball_filename.split ('.gz')[0],
input: zrythm_src_tarball,
command: [
'rm', '-rf', '@OUTPUT@', '&&',
# rezip because gzip says not valid gzip format
'tar', 'xf', '@INPUT@', '&&',
'tar', 'cf', '@OUTPUT@', zrythm_inner_dir_name, '&&',
'rm', '-rf', zrythm_inner_dir_name,
],
install: false,
)
debian_zrythm_src_tarball_gzipped = custom_target (
'debian-zrythm-source-tarball-gzipped',
output: debian_src_tarball_filename,
input: debian_zrythm_src_tarball,
command: [
'rm', '-rf', '@OUTPUT@', '&&',
'gzip', '@INPUT@',
],
install: false,
)
# package
debian_pkg_filename = run_command (
get_pkg_filename, 'DEBIAN', dash_trial).stdout ().strip ()
debian_pkg = custom_target (

39
sources/meson.build

@ -15,7 +15,7 @@ @@ -15,7 +15,7 @@
# You should have received a copy of the GNU Affero General Public License
# along with Zrythm. If not, see <https://www.gnu.org/licenses/>.
# configure script
# configure scripts
make_zrythm_tarball = configure_file (
output: 'make_zrythm_tarball.sh',
input: 'make_zrythm_tarball.sh.in',
@ -49,30 +49,6 @@ run_target ( @@ -49,30 +49,6 @@ run_target (
command: [ 'echo', 'done' ],
depends: zrythm_src_tarball)
debian_zrythm_src_tarball = custom_target (
'debian-zrythm-source-tarball',
output: debian_src_tarball_filename.split ('.gz')[0],
input: zrythm_src_tarball,
command: [
'rm', '-rf', '@OUTPUT@', '&&',
# rezip because gzip says not valid gzip format
'tar', 'xf', '@INPUT@', '&&',
'tar', 'cf', '@OUTPUT@', zrythm_inner_dir_name, '&&',
'rm', '-rf', zrythm_inner_dir_name,
],
install: false,
)
debian_zrythm_src_tarball_gzipped = custom_target (
'debian-zrythm-source-tarball-gzipped',
output: debian_src_tarball_filename,
input: debian_zrythm_src_tarball,
command: [
'rm', '-rf', '@OUTPUT@', '&&',
'gzip', '@INPUT@',
],
install: false,
)
url = 'https://github.com/falkTX/Carla/archive/' + carla_git_ver + '.zip'
carla_src_zip = custom_target (
@ -103,16 +79,3 @@ lsp_dsp_lib_src_tarball = custom_target ( @@ -103,16 +79,3 @@ lsp_dsp_lib_src_tarball = custom_target (
],
install: false,
)
filename = 'rcedit-x64.exe'
url = 'https://github.com/electron/rcedit/releases/download/v1.1.1/' + filename
rcedit_x64_exe = custom_target (
'rcedit-x64-exe',
output: filename,
command: [
bash, '-c',
'wget ' + url + ' -O \'@OUTPUT@\' && ' +
'chmod +x \'@OUTPUT@\''
],
install: false,
)

28
windows-msys/PKGBUILD-w10.in

@ -37,7 +37,9 @@ source=("zrythm-$pkgver.tar.gz" "zplugins-$_zplugins_ver.tar.gz") @@ -37,7 +37,9 @@ source=("zrythm-$pkgver.tar.gz" "zplugins-$_zplugins_ver.tar.gz")
sha256sums=('SKIP' 'SKIP')
prepare() {
cd "${srcdir}"/zrythm-${pkgver}
pushd "${srcdir}"/zrythm-${pkgver}
sed -i -e "s|\['benchmarks/dsp', true\]|#|g" tests/meson.build
popd
}
build() {
@ -45,7 +47,8 @@ build() { @@ -45,7 +47,8 @@ build() {
[[ -d "$_zplugins_builddir" ]] && rm -rf "$_zplugins_builddir"
# build zrythm
mkdir -p $_zrythm_builddir && cd $_zrythm_builddir
mkdir -p $_zrythm_builddir
pushd $_zrythm_builddir
sed -i -e '94s/translator/"invalid"/' \
${srcdir}/zrythm-${pkgver}/scripts/gen-translators-list.scm
${MINGW_PREFIX}/bin/meson \
@ -60,19 +63,34 @@ build() { @@ -60,19 +63,34 @@ build() {
-Dwindows_release=true -Dcarla=enabled \
--buildtype=debugoptimized \
-Dextra_debug_info=true \
-Dtests=false \
"../zrythm-${pkgver}"
ninja
cp /mingw64/lib/carla/*.dll ./src/
mv src/libcarla_native-plugin.dll \
src/CarlaNativePlugin.dll
popd
# build zplugins
cd ${srcdir}
mkdir -p "$_zplugins_builddir"
cd "$_zplugins_builddir"
pushd "$_zplugins_builddir"
ls -l
${MINGW_PREFIX}/bin/meson \
--buildtype=release \
"../zplugins-${_zplugins_ver}"
ninja
popd
}
check() {
pushd $_zrythm_builddir
ninja test
src/zrythm.exe --version || true
popd
pushd "$_zplugins_builddir"
ninja test
popd
}
package() {

0
windows-msys/copy-dll-deps.sh

192
windows-msys/make_dist_dir.sh.in

@ -0,0 +1,192 @@ @@ -0,0 +1,192 @@
#!@BASH@
set -ex
out_dir="$1"
zrythm_src_tarball="$2"
chroot_dir="$3"
inno_installer_iss="$4"
private_dir="$5"
copy_dll_deps_sh="$6"
rcedit_x64_exe="$7"
inner_dir="@ZRYTHM_INNER_DIR_NAME@"
dash_trial="@DASH_TRIAL@"
zrythm_pkg_ver="@ZRYTHM_PKG_VERSION@"
meson_src_root="@MESON_SOURCE_ROOT@"
manuals_zip="@MANUALS_ZIP_FILE@"
zrythm_inner_dir_name="@ZRYTHM_INNER_DIR_NAME@"
breeze_dark_path="@BREEZE_DARK_PATH@"
zrythm_src_tarball_filename="@ZRYTHM_SOURCE_TARBALL_FILENAME@"
mingw_prefix="$chroot_dir/mingw64"
app_name="Zrythm$dash_trial"
installer_dir=$private_dir/installer
src_dir=$installer_dir/src
dist_dir=$installer_dir/dist
dist_bindir=$dist_dir/bin
dist_libdir=$dist_dir/lib
dist_sharedir=$dist_dir/share
dist_etcdir=$dist_dir/etc
dist_plugins_dir=$dist_dir/plugins
install_data="install -m 644"
glib_schemas_dir_suffix=share/glib-2.0/schemas
# make the dirs
rm -rf $private_dir
mkdir -p $dist_bindir
mkdir -p $dist_libdir
mkdir -p $dist_sharedir
mkdir -p $dist_etcdir
mkdir -p $dist_plugins_dir
rm -rf $out_dir
verify_bin_file () {
bin_file="$1"
ok_text="$2"
echo "verifying zrythm binary $bin_file..."
temp_file=`mktemp`
$bin_file --version > $temp_file 2>&1 || true
output="`cat $temp_file`"
echo "$output"
if [[ "$output" = *"$ok_text"* ]]; then
echo "ok"
else
echo "fail"
rm "$temp_file"
exit 1
fi
rm "$temp_file"
exit 0
}
# create sources distribution
echo "TODO" > $dist_dir/THIRDPARTY_INFO
cp $zrythm_src_tarball $installer_dir/
pushd $installer_dir
tar xf $zrythm_src_tarball_filename
rm $zrythm_src_tarball_filename
popd
mv $installer_dir/$zrythm_inner_dir_name $src_dir
cp $src_dir/AUTHORS $dist_dir/
cp $src_dir/COPYING* $dist_dir/
cp $src_dir/README.md $dist_dir/README.txt
cp $src_dir/CONTRIBUTING.md $dist_dir/
cp $src_dir/THANKS $dist_dir/
cp $src_dir/TRANSLATORS $dist_dir/
cp $src_dir/CHANGELOG.md $dist_dir/
cp $src_dir/data/windows/zrythm.ico $dist_dir/zrythm.ico
# copy plugins from the chroot dir
cp -R $chroot_dir/mingw64/lib/lv2/Z*.lv2 $dist_dir/plugins/
# remove some plugins if trial ver
if [ "$dash_trial" == "-trial" ]; then \
rm -rf $dist_dir/plugins/ZChordz*.lv2 ; \
rm -rf $dist_dir/plugins/ZLFO*.lv2 ; \
fi
mkdir -p $dist_dir/$glib_schemas_dir_suffix
glib-compile-schemas $mingw_prefix/$glib_schemas_dir_suffix
cp $mingw_prefix/$glib_schemas_dir_suffix/* $dist_dir/$glib_schemas_dir_suffix/
# ******************************
echo "Copying dlls..."
$copy_dll_deps_sh \
--infile "$mingw_prefix/bin/zrythm$dash_trial.exe" \
--destdir $dist_bindir/ \
--recursivesrcdir "$mingw_prefix/bin" \
--srcdir "$mingw_prefix/bin" \
--objdump "/mingw64/bin/objdump.exe" \
--copy
# some dlls need to be copied manually
cp $mingw_prefix/bin/librsvg-2-2.dll $dist_bindir/
cp $mingw_prefix/lib/carla/*.dll $dist_bindir/
# for an unknown reason it doesn't work unless it
# is named CarlaNativePlugin.dll
mv $dist_bindir/libcarla_native-plugin.dll \
$dist_bindir/CarlaNativePlugin.dll
# verify installation
(verify_bin_file "$dist_bindir/zrythm.exe" "built with ")
# ******************************
# ******************************
if [ "$dash_trial" != "-trial" ]; then
echo "packaging user manuals" ;
unzip -o $manuals_zip -d $dist_dir/ ;
fi
# ******************************
# ******************************
cp -R $mingw_prefix/etc/fonts $dist_etcdir
# ******************************
# ******************************
echo "packaging breeze icons"
mkdir -p "$dist_sharedir/icons"
# the icons are preinstalled here
cp -R "$breeze_dark_path" "$dist_sharedir/icons"/breeze-dark
echo "packaging existing hicolor icons"
cp -R "$mingw_prefix/share/icons/hicolor" "$dist_sharedir/icons/"
# ******************************
# ******************************
echo "packaging gtksourceview files"
cp -R $mingw_prefix/share/gtksourceview-4 $dist_sharedir/
# ******************************
# ******************************
echo "packaging locales"
cp -R $mingw_prefix/share/locale $dist_sharedir/
# ******************************
# ******************************
echo "packaging other assets"
cp -R $mingw_prefix/share/zrythm $dist_sharedir/
# ******************************
# ******************************
echo "packaging fonts"
cp -R $mingw_prefix/share/fonts $dist_sharedir/
# ******************************
# ******************************
echo "packaging gdk pixbuf loaders"
pixbuf_dir="lib/gdk-pixbuf-2.0/2.10.0"
mkdir -p "$dist_dir/$pixbuf_dir/loaders"
cp "$mingw_prefix/$pixbuf_dir/loaders/"*.dll \
"$dist_dir/$pixbuf_dir/loaders/"
gdk_pixbuf_module_dir="$mingw_prefix/$pixbuf_dir/loaders" \
$mingw_prefix/bin/gdk-pixbuf-query-loaders.exe \
$mingw_prefix/$pixbuf_dir/loaders/libpixbufloader-svg.dll \
$mingw_prefix/$pixbuf_dir/loaders/libpixbufloader-jpeg.dll \
$mingw_prefix/$pixbuf_dir/loaders/libpixbufloader-gif.dll \
$mingw_prefix/$pixbuf_dir/loaders/libpixbufloader-bmp.dll \
$mingw_prefix/$pixbuf_dir/loaders/libpixbufloader-tiff.dll \
$mingw_prefix/$pixbuf_dir/loaders/libpixbufloader-png.dll > \
"$dist_dir/$pixbuf_dir/loaders.cache"
sed -i -e 's|.*loaders/|"lib\\\\gdk-pixbuf-2.0\\\\2.10.0\\\\loaders\\\\|g' \
"$dist_dir/$pixbuf_dir/loaders.cache"
# ******************************
# ******************************
echo "packaging binaries"
cp "$mingw_prefix/bin/zrythm$dash_trial.exe" "$dist_bindir/zrythm.exe"
cp $mingw_prefix/bin/carla*.exe "$dist_bindir/"
if [ -f "$mingw_prefix/bin/gdbus.exe" ]; then
cp "$mingw_prefix/bin/gdbus.exe" "$dist_bindir/"
fi
$rcedit_x64_exe "$dist_bindir/zrythm.exe" --set-icon "$dist_dir/zrythm.ico"
cp "$mingw_prefix/bin/gspawn-win64-helper.exe" "$dist_bindir/"
cp "$mingw_prefix/bin/gspawn-win64-helper-console.exe" "$dist_bindir/"
mv "$dist_dir" "$out_dir"

14
windows-msys/make_mingw_pkg.sh.in

@ -1,18 +1,30 @@ @@ -1,18 +1,30 @@
#!@BASH@
set -x
set -ex
out_file="$1"
pkgbuild="$2"
private_dir="$3"
pkgname="`basename $pkgbuild`"
pkgname=${pkgname#"PKGBUILD-"}
pkgname=${pkgname%"-mingw"}
while test -f /var/lib/pacman/db.lck; do
sleep 1
done
pacman -R mingw-w64-x86_64-$pkgname --noconfirm || true
rm -rf $private_dir
mkdir -p $private_dir
cp $pkgbuild $private_dir/PKGBUILD
pushd $private_dir
MINGW_INSTALLS=mingw64 makepkg-mingw -fs --noconfirm
popd
while test -f /var/lib/pacman/db.lck; do
sleep 1
done
pacman -U $private_dir/*.pkg.tar.zst --noconfirm --overwrite='*'
cp $private_dir/*.pkg.tar.zst $out_file

169
windows-msys/make_windows_installer.sh.in

@ -3,177 +3,13 @@ @@ -3,177 +3,13 @@
set -ex
out_file="$1"
zrythm_src_tarball="$2"
chroot_dir="$3"
inno_installer_iss="$4"
private_dir="$5"
copy_dll_deps_sh="$6"
rcedit_x64_exe="$7"
dist_dir="$2"
inner_dir="@ZRYTHM_INNER_DIR_NAME@"
dash_trial="@DASH_TRIAL@"
zrythm_pkg_ver="@ZRYTHM_PKG_VERSION@"
meson_src_root="@MESON_SOURCE_ROOT@"
manuals_zip="@MANUALS_ZIP_FILE@"
zrythm_inner_dir_name="@ZRYTHM_INNER_DIR_NAME@"
breeze_dark_path="@BREEZE_DARK_PATH@"
zrythm_src_tarball_filename="@ZRYTHM_SOURCE_TARBALL_FILENAME@"
mingw_prefix="$chroot_dir/mingw64"
app_name="Zrythm$dash_trial"
installer_dir=$private_dir/installer
src_dir=$installer_dir/src
dist_dir=$installer_dir/dist
dist_bindir=$dist_dir/bin
dist_libdir=$dist_dir/lib
dist_sharedir=$dist_dir/share
dist_etcdir=$dist_dir/etc
dist_plugins_dir=$dist_dir/plugins
install_data="install -m 644"
glib_schemas_dir_suffix=share/glib-2.0/schemas
# make the dirs
rm -rf $private_dir
mkdir -p $dist_bindir
mkdir -p $dist_libdir
mkdir -p $dist_sharedir
mkdir -p $dist_etcdir
mkdir -p $dist_plugins_dir
# create sources distribution
echo "TODO" > $dist_dir/THIRDPARTY_INFO
cp $zrythm_src_tarball $installer_dir/
pushd $installer_dir
tar xf $zrythm_src_tarball_filename
rm $zrythm_src_tarball_filename
popd
mv $installer_dir/$zrythm_inner_dir_name $src_dir
cp $src_dir/AUTHORS $dist_dir/
cp $src_dir/COPYING* $dist_dir/
cp $src_dir/README.md $dist_dir/README.txt
cp $src_dir/CONTRIBUTING.md $dist_dir/
cp $src_dir/THANKS $dist_dir/
cp $src_dir/TRANSLATORS $dist_dir/
cp $src_dir/CHANGELOG.md $dist_dir/
cp $src_dir/data/windows/zrythm.ico $dist_dir/zrythm.ico
# copy plugins from the chroot dir
cp -R $chroot_dir/mingw64/lib/lv2/Z*.lv2 $dist_dir/plugins/
# remove some plugins if trial ver
if [ "$dash_trial" == "-trial" ]; then \
rm -rf $dist_dir/plugins/ZChordz*.lv2 ; \
rm -rf $dist_dir/plugins/ZLFO*.lv2 ; \
fi
mkdir -p $dist_dir/$glib_schemas_dir_suffix
glib-compile-schemas $mingw_prefix/$glib_schemas_dir_suffix
cp $mingw_prefix/$glib_schemas_dir_suffix/* $dist_dir/$glib_schemas_dir_suffix/
# ******************************
echo "Copying dlls..."
$copy_dll_deps_sh \
--infile "$mingw_prefix/bin/zrythm$dash_trial.exe" \
--destdir $dist_bindir/ \
--recursivesrcdir "$mingw_prefix/bin" \
--srcdir "$mingw_prefix/bin" \
--objdump "/mingw64/bin/objdump.exe" \
--copy
# some dlls need to be copied manually
cp $mingw_prefix/bin/librsvg-2-2.dll $dist_bindir/
cp $mingw_prefix/lib/carla/*.dll $dist_bindir/
# for an unknown reason it doesn't work unless it
# is named CarlaNativePlugin.dll
mv $dist_bindir/libcarla_native-plugin.dll \
$dist_bindir/CarlaNativePlugin.dll
# ******************************
# ******************************
if [ "$dash_trial" != "-trial" ]; then
echo "packaging user manuals" ;
unzip -o $manuals_zip -d $dist_dir/ ;
fi
# ******************************
# ******************************
cp -R $mingw_prefix/etc/fonts $dist_etcdir
# ******************************
# ******************************
echo "packaging breeze icons"
mkdir -p "$dist_sharedir/icons"
# the icons are preinstalled here
cp -R "$breeze_dark_path" "$dist_sharedir/icons"/breeze-dark
echo "packaging existing hicolor icons"
cp -R "$mingw_prefix/share/icons/hicolor" "$dist_sharedir/icons/"
# ******************************
# ******************************
echo "packaging gtksourceview files"
cp -R $mingw_prefix/share/gtksourceview-4 $dist_sharedir/
# ******************************
# ******************************
echo "packaging locales"
cp -R $mingw_prefix/share/locale $dist_sharedir/
# ******************************
# ******************************
echo "packaging other assets"
cp -R $mingw_prefix/share/zrythm $dist_sharedir/
# ******************************
# ******************************
echo "packaging fonts"
cp -R $mingw_prefix/share/fonts $dist_sharedir/
# ******************************
# ******************************
echo "packaging gdk pixbuf loaders"
pixbuf_dir="lib/gdk-pixbuf-2.0/2.10.0"
mkdir -p "$dist_dir/$pixbuf_dir/loaders"
cp "$mingw_prefix/$pixbuf_dir/loaders/"*.dll \
"$dist_dir/$pixbuf_dir/loaders/"
gdk_pixbuf_module_dir="$mingw_prefix/$pixbuf_dir/loaders" \
$mingw_prefix/bin/gdk-pixbuf-query-loaders.exe \
$mingw_prefix/$pixbuf_dir/loaders/libpixbufloader-svg.dll \
$mingw_prefix/$pixbuf_dir/loaders/libpixbufloader-jpeg.dll \
$mingw_prefix/$pixbuf_dir/loaders/libpixbufloader-gif.dll \
$mingw_prefix/$pixbuf_dir/loaders/libpixbufloader-bmp.dll \
$mingw_prefix/$pixbuf_dir/loaders/libpixbufloader-tiff.dll \
$mingw_prefix/$pixbuf_dir/loaders/libpixbufloader-png.dll > \
"$dist_dir/$pixbuf_dir/loaders.cache"
sed -i -e 's|.*loaders/|"lib\\\\gdk-pixbuf-2.0\\\\2.10.0\\\\loaders\\\\|g' \
"$dist_dir/$pixbuf_dir/loaders.cache"
# ******************************
# ******************************
echo "packaging binaries"
cp "$mingw_prefix/bin/zrythm$dash_trial.exe" "$dist_bindir/zrythm.exe"
cp $mingw_prefix/bin/carla*.exe "$dist_bindir/"
if [ -f "$mingw_prefix/bin/gdbus.exe" ]; then
cp "$mingw_prefix/bin/gdbus.exe" "$dist_bindir/"
fi
$rcedit_x64_exe "$dist_bindir/zrythm.exe" --set-icon "$dist_dir/zrythm.ico"
cp "$mingw_prefix/bin/gspawn-win64-helper.exe" "$dist_bindir/"
cp "$mingw_prefix/bin/gspawn-win64-helper-console.exe" "$dist_bindir/"
# ******************************
echo "checking if binary works..."
$dist_bindir/zrythm.exe --version
echo "return code: $?"
# ******************************
cp "$inno_installer_iss" "$dist_dir"/installer.iss
pushd $dist_dir
~/.wine/drive_c/Program\ Files\ \(x86\)/Inno\ Setup\ 6/ISCC.exe \
"//DAppName=$app_name" "//DAppVersion=$zrythm_pkg_ver" \
@ -182,4 +18,5 @@ pushd $dist_dir @@ -182,4 +18,5 @@ pushd $dist_dir
installer.iss
popd
cp "$dist_dir/Output/Zrythm$dash_trial $zrythm_pkg_ver.exe" $out_file
mv "$dist_dir/Output/Zrythm$dash_trial $zrythm_pkg_ver.exe" \
"$out_file"

5
windows-msys/make_zrythm_mingw_pkg.sh.in

@ -9,6 +9,11 @@ src_tarball="$3" @@ -9,6 +9,11 @@ src_tarball="$3"
zplugins_tarball="$4"
private_dir="$5"
dash_trial="@DASH_TRIAL@"
pkgname="mingw-w64-x86_64-zrythm$dash_trial"
pacman -R $pkgname --noconfirm || true
rm -rf $private_dir
mkdir -p $private_dir

77
windows-msys/meson.build

@ -30,6 +30,11 @@ make_windows_chroot = configure_file ( @@ -30,6 +30,11 @@ make_windows_chroot = configure_file (
input: 'make_windows_chroot.sh.in',
configuration: global_conf,
)
make_dist_dir = configure_file (
output: 'make_dist_dir.sh',
input: 'make_dist_dir.sh.in',
configuration: global_conf,
)
make_windows_installer = configure_file (
output: 'make_windows_installer.sh',
input: 'make_windows_installer.sh.in',
@ -53,9 +58,41 @@ install_carla = configure_file ( @@ -53,9 +58,41 @@ install_carla = configure_file (
make_mingw_pkg_cmd = [
bash, '-c', '@INPUT0@ "$1" "$2" "$3"', '_ignored',
'@OUTPUT@', '@INPUT1@', '@PRIVATE_DIR@'
'@OUTPUT@', '@INPUT1@', '@PRIVATE_DIR@',
]
# sources
inno_extract_ver = '1.9'
filename = 'innoextract-' + inno_extract_ver + '-windows.zip'
url = 'https://github.com/dscharrer/innoextract/releases/download/' + inno_extract_ver + '/' + filename
inno_extract_zip = custom_target (
'inno-extract-zip',
output: filename,
command: [
'wget', url, '-O', '@OUTPUT@',
],
install: false,
)
#inno_extract = custom_target (
#'inno-extract-exe',
#output: 'innoextract.exe',
#input: inno_extract_ver,
#command: [
#bash, '-c', '@INPUT0@ "$1" "$2" "$3"', '_ignored',
#'@OUTPUT@', '@INPUT1@', '@PRIVATE_DIR@'
filename = 'rcedit-x64.exe'
url = 'https://github.com/electron/rcedit/releases/download/v1.1.1/' + filename
rcedit_x64_exe = custom_target (
'rcedit-x64-exe',
output: filename,
command: [
bash, '-c',
'wget ' + url + ' -O \'@OUTPUT@\' && ' +
'chmod +x \'@OUTPUT@\''
],
install: false,
)
# install dependencies
independent_dep_names = [ 'jack2', 'lsp-dsp-lib', ]
independent_deps = []
@ -73,7 +110,9 @@ endforeach @@ -73,7 +110,9 @@ endforeach
lv2_pkg = custom_target (
'mingw-lv2',
output: 'lv2.pkg.tar.zst',
input: [ make_mingw_pkg, 'PKGBUILD-lv2-mingw', ],
input: [
make_mingw_pkg, 'PKGBUILD-lv2-mingw',
],
command: make_mingw_pkg_cmd,
install: false,
)
@ -169,6 +208,11 @@ mingw_zrythm_pkg = custom_target ( @@ -169,6 +208,11 @@ mingw_zrythm_pkg = custom_target (
install: false,
)
run_target (
'install-zrythm-mingw-pkg',
command: [ 'echo', 'done' ],
depends: mingw_zrythm_pkg)
chroot_dir = '/tmp/zrythm' + dash_trial + '-chroot'
windows_chroot_target = custom_target (
'windows-chroot',
@ -191,15 +235,11 @@ windows_chroot_target = custom_target ( @@ -191,15 +235,11 @@ windows_chroot_target = custom_target (
install: false,
)
windows_msys_installer_filename = run_command (
bash, '-c',
meson.build_root () / 'scripts/get_pkg_filename.sh' +
' WINDOWS_MSYS ' + dash_trial).stdout ().strip ()
windows_msys_installer = custom_target (
'windows-msys-installer',
output: windows_msys_installer_filename,
installer_dist_dir = custom_target (
'windows-installer-dist-dir',
output: 'installer-dist',
input: [
make_windows_installer, zrythm_src_tarball,
make_dist_dir, zrythm_src_tarball,
'installer.iss', 'copy-dll-deps.sh',
rcedit_x64_exe,
],
@ -213,6 +253,23 @@ windows_msys_installer = custom_target ( @@ -213,6 +253,23 @@ windows_msys_installer = custom_target (
depends: [
windows_chroot_target,
],
install: false,
)
windows_msys_installer_filename = run_command (
bash, '-c',
meson.build_root () / 'scripts/get_pkg_filename.sh' +
' WINDOWS_MSYS ' + dash_trial).stdout ().strip ()
windows_msys_installer = custom_target (
'windows-msys-installer',
output: windows_msys_installer_filename,
input: [
make_windows_installer, installer_dist_dir,
],
command: [
bash, '-c',
'@INPUT0@ "$1" "$2"', '_ignored', '@OUTPUT@', '@INPUT1@',
],
install: true,
install_dir: get_option ('prefix'),
)

Loading…
Cancel
Save