From abb01e4bf0dee91268bf479215beeee659965cbb Mon Sep 17 00:00:00 2001 From: Sojourner Truth <jon.w.wilkes@gmail.com> Date: Wed, 17 Aug 2016 00:53:37 -0400 Subject: [PATCH] accommodate rpi for nwjs binary download --- l2ork_addons/tar_em_up.sh | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/l2ork_addons/tar_em_up.sh b/l2ork_addons/tar_em_up.sh index 9f465dab4..73b84c76e 100755 --- a/l2ork_addons/tar_em_up.sh +++ b/l2ork_addons/tar_em_up.sh @@ -60,6 +60,11 @@ if [ ! -d "../pd/nw/nw" ]; then arch="x64" fi + # for rpi + if [ `uname -m` -eq "armv7l" ]; then + arch="armv7l" + fi + if [[ $os == "win" ]]; then ext="zip" # We need the lts version to be able to run on XP. For @@ -67,7 +72,12 @@ if [ ! -d "../pd/nw/nw" ]; then nwjs_version="v0.14.7" else ext="tar.gz" - nwjs_version="v0.16.1" + # temporary kluge for rpi-- only 0.15.1 is available atm + if [ `uname -m` -eq "armv7l" ]; then + nwjs_version="v0.15.1" + else + nwjs_version="v0.16.1" + fi fi nwjs="nwjs-sdk" -- GitLab