From 7a4fd0ac1d7adb1adbd4683c0aeabf7a72fc63ea Mon Sep 17 00:00:00 2001
From: Albert Graef <aggraef@gmail.com>
Date: Sat, 17 Dec 2022 07:08:49 +0100
Subject: [PATCH] Downgrade nw.js to 0.28 for now to deal with Linux
 regressions. macOS stays on 0.71.0.

---
 l2ork_addons/tar_em_up.sh | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/l2ork_addons/tar_em_up.sh b/l2ork_addons/tar_em_up.sh
index 2c8f3de53..c4c6ab194 100755
--- a/l2ork_addons/tar_em_up.sh
+++ b/l2ork_addons/tar_em_up.sh
@@ -197,6 +197,12 @@ if [ ! -d "../pd/nw/nw" ]; then
 	if [[ $osx_version == "10.8" ]]; then
 		# We need the lts version to be able to run on legacy systems.
 		nwjs_version="v0.14.7"
+	elif [ $os == "osx" ]; then
+		# ag: We need a recent version here to make the latest macOS
+		# versions work. Tested with Mojave (Intel), Monterey and
+		# Ventura (M1). NB: The Intel build also works on Apple
+		# Silicon using Rosetta 2.
+		nwjs_version="v0.71.0"
 	else
 		# temporary kluge for rpi-- only 0.27.6 is available atm
 		if [ $arch == "arm" ]; then
@@ -204,7 +210,10 @@ if [ ! -d "../pd/nw/nw" ]; then
 		elif [ $arch == "arm64" ]; then
 			nwjs_version="v0.23.7"
 		else
-			nwjs_version="v0.71.0"
+		# ag: Unfortunately, Linux exhibits a bunch of regressions
+		# with 0.71.0, so we keep the tried and true 0.28 version for
+		# now. 0.28.3 is the final point release in this series.
+			nwjs_version="v0.28.3"
 		fi
 	fi
 
-- 
GitLab