From 2e06d1d90e01ae56a9bf31aba199a4ab223b07b0 Mon Sep 17 00:00:00 2001 From: Christian Hoffmann Date: Mon, 21 Feb 2022 01:20:51 +0100 Subject: [PATCH] Build: Fix Mac app version The build logic used `grep -oP` which does not seem to be supported by macOS' `grep`. Therefore, keep using `sed` instead. Broken in: 3a630330e113dc77c736762c08fb53cad0904ba8 Co-authored-by: Tony Mountifield --- mac/deploy_mac.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mac/deploy_mac.sh b/mac/deploy_mac.sh index 00db67ac53..a284e819a5 100755 --- a/mac/deploy_mac.sh +++ b/mac/deploy_mac.sh @@ -73,7 +73,7 @@ build_installer_image() brew extract --version="${create_dmg_version}" create-dmg homebrew/cask brew install /usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask/Formula/create-dmg@"${create_dmg_version}".rb # Get Jamulus version - local app_version="$(grep -oP 'VERSION = \K\w[^\s\\]*' Jamulus.pro)" + local app_version="$(sed -nE 's/^VERSION *= *(.*)$/\1/p' "${project_path}")" # Build installer image