Browse Source

osx: fetch zrythm tarball again before building

before_cleanup
Alexandros Theodotou 3 years ago
parent
commit
cf4778a5d9
Signed by: alex
GPG Key ID: 022EAE42313D70F3
  1. 9
      installer-osx.sh.in
  2. 4
      tools/gen_osx_installer_brew.sh

9
installer-osx.sh.in

@ -106,14 +106,19 @@ if [ $proceed -ne 0 ]; then @@ -106,14 +106,19 @@ if [ $proceed -ne 0 ]; then
cp -r icons/breeze-dark /tmp/
formula_dir=/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula
cp formulae/zrythm.rb $formula_dir/
brew install --build-from-source zrythm
brew install --build-from-source zrythm || true
brew link --overwrite zrythm || true
# recompile schemas
echo "Recompiling schemas..."
/usr/local/bin/glib-compile-schemas /usr/local/share/glib-2.0/schemas
print_install_success
if zrythm --version; then
print_install_success
else
echo "installation failed"
exit 1
fi
fi
exit 0

4
tools/gen_osx_installer_brew.sh

@ -16,6 +16,8 @@ if [ "$bottle_or_zip" = "bottle" ]; then @@ -16,6 +16,8 @@ if [ "$bottle_or_zip" = "bottle" ]; then
zrythm_version=$5
carla_version=$6
wget https://git.zrythm.org/cgit/zrythm/snapshot/$tarball_filename
# copy formula file to where it needs to be
if [[ "$bottle_filename" == *"rial"* ]]; then
cp $formula_file $formula_dir/zrythm-trial.rb
@ -37,7 +39,7 @@ if [ "$bottle_or_zip" = "bottle" ]; then @@ -37,7 +39,7 @@ if [ "$bottle_or_zip" = "bottle" ]; then
$formula_dir/$formula_filename
sed -i -e "s/@VERSION@/$carla_version/" \
$formula_dir/carla-git.rb
sed -i -e "s/@SHA256@/$(openssl sha256 -r $tarball | awk '{print $1;}')/" \
sed -i -e "s/@SHA256@/$(openssl sha256 -r $tarball_filename | awk '{print $1;}')/" \
$formula_dir/$formula_filename
# build bottle

Loading…
Cancel
Save