Browse Source

azure mingw: build windows10-msys target

before_aws
Alexandros Theodotou 2 years ago
parent
commit
ca603f171a
Signed by: alex
GPG Key ID: 022EAE42313D70F3
  1. 8
      azure-mingw.yml
  2. 5
      scripts/common.sh.in
  3. 6
      scripts/send-to-sendowl.sh
  4. 19
      scripts/zip-gnu-linux-packages.sh

8
azure-mingw.yml

@ -13,13 +13,17 @@ steps: @@ -13,13 +13,17 @@ steps:
- script: cinst msys2 --params "/InstallDir=C:/msys64" --no-progress
displayName: install msys2
- script: C:\msys64\usr\bin\bash --login -c "pacman -S --noconfirm --needed mingw-w64-x86_64-toolchain mingw-w64-x86_64-gtk3 mingw-w64-x86_64-meson mingw-w64-x86_64-libsamplerate mingw-w64-x86_64-fftw mingw-w64-x86_64-ffmpeg mingw-w64-x86_64-libyaml mingw-w64-x86_64-libsndfile mingw-w64-x86_64-rubberband mingw-w64-x86_64-dlfcn mingw-w64-x86_64-SDL2 mingw-w64-x86_64-chromaprint guile libguile-devel mingw-w64-x86_64-gtksourceview3 mingw-w64-x86_64-graphviz git"
- script: C:\msys64\usr\bin\bash --login -c "pacman -S --noconfirm --needed mingw-w64-x86_64-toolchain mingw-w64-x86_64-gtk3 mingw-w64-x86_64-meson mingw-w64-x86_64-libsamplerate mingw-w64-x86_64-fftw mingw-w64-x86_64-ffmpeg mingw-w64-x86_64-libyaml mingw-w64-x86_64-libsndfile mingw-w64-x86_64-rubberband mingw-w64-x86_64-dlfcn mingw-w64-x86_64-SDL2 mingw-w64-x86_64-chromaprint guile libguile-devel mingw-w64-x86_64-graphviz git mingw-w64-x86_64-cantarell-fonts mingw-w64-x86_64-gtksourceview4 mingw-w64-x86_64-gcc"
displayName: install mingw deps
- script: |
C:\msys64\usr\bin\bash --login -c "cd && git clone https://git.sr.ht/~alextee/zrythm && git clone https://git.sr.ht/~alextee/zrythm-builds && git clone https://git.sr.ht/~alextee/zrythm-installer && git clone https://github.com/KDE/breeze-icons"
C:\msys64\usr\bin\bash --login -c "where gcc --version && gcc --version && cd && git clone https://git.sr.ht/~alextee/zrythm && git clone https://git.sr.ht/~alextee/zrythm-builds && git clone https://git.sr.ht/~alextee/zrythm-installer && git clone https://github.com/KDE/breeze-icons"
displayName: 'Fetch repos'
- script: |
C:\msys64\usr\bin\bash --login -c "wget https://www.zrythm.org/downloads/inno-setup-bin.zip && unzip inno-setup-bin.zip -d ~/"
displayName: 'Install inno'
- script: |
echo REMOTE_HOME=%REMOTE_HOME% >> C:\msys64\mingw64\.env
echo REMOTE_IP=%REMOTE_IP% >> C:\msys64\mingw64\.env

5
scripts/common.sh.in

@ -42,9 +42,12 @@ distro_to_pkg_type () { @@ -42,9 +42,12 @@ distro_to_pkg_type () {
"fedora32")
echo "FEDORA32"
;;
"windows"*)
"windows10")
echo "WINDOWS"
;;
"windows10-msys")
echo "WINDOWS_MSYS"
;;
"osx"* | "macos"*)
echo "OSX"
;;

6
scripts/send-to-sendowl.sh

@ -74,14 +74,14 @@ sendowl_delete () { @@ -74,14 +74,14 @@ sendowl_delete () {
# prefetch the installers not on this machine
prefetch () {
osx_pkg_name="$(get_package_filename osx)"
windows_pkg_name="$(get_package_filename windows10)"
windows_pkg_name="$(get_package_filename windows10-msys)"
while ! [ -f "zrythm-installer/$osx_pkg_name" -a \
-f "zrythm-installer/$windows_pkg_name" ]; do
$scp_cmd \
"$remote_ip:$remote_home/packages/osx/$osx_pkg_name" \
"zrythm-installer/$osx_pkg_name" > out.log 2> err.log || true
$scp_cmd \
"$remote_ip:$remote_home/packages/windows10/$windows_pkg_name" \
"$remote_ip:$remote_home/packages/windows10-msys/$windows_pkg_name" \
"zrythm-installer/$windows_pkg_name" > out.log 2> err.log || true
sleep 12
done
@ -195,7 +195,7 @@ echo "done" @@ -195,7 +195,7 @@ echo "done"
echo "creating products..."
gnu_linux_product_id="$(create_or_update_product "gnu-linux")"
osx_product_id="$(create_or_update_product "osx")"
windows_product_id="$(create_or_update_product "windows10")"
windows_product_id="$(create_or_update_product "windows10-msys")"
echo "done"
echo "created products $gnu_linux_product_id, $osx_product_id and $windows_product_id"

19
scripts/zip-gnu-linux-packages.sh

@ -47,16 +47,23 @@ while true; do @@ -47,16 +47,23 @@ while true; do
sleep 12
wait_more=0
for lang in $linguas ; do
remote_file_exists \
"manual/Zrythm-$zrythm_pkg_ver-$lang.pdf" || \
wait_more=1
if ! remote_file_exists \
"manual/Zrythm-$zrythm_pkg_ver-$lang.pdf" ; then
echo "not exists" && wait_more=1
fi
done
for distro in $distros ; do
if [ "$distro" != "gnu-linux" ]; then
echo "checking if remote pkg exists for $distro..."
remote_pkg_exists $distro || wait_more=1
echo "checking if remote trial_pkg exists for $distro..."
remote_pkg_exists $distro "-trial" || wait_more=1
if ! remote_pkg_exists $distro ; then
echo "not exists" && wait_more=1
fi
if is_tag ; then
echo "checking if remote trial_pkg exists for $distro..."
if ! remote_pkg_exists $distro "-trial"; then
echo "not exists" && wait_more=1
fi
fi
fi
done
if [ $wait_more -eq 0 ]; then

Loading…
Cancel
Save