From 05d7c36c381eaa22900d3b5e575ebfda06afff71 Mon Sep 17 00:00:00 2001 From: Jonathan Wilkes <jon.w.wilkes@gmail.com> Date: Wed, 11 Jan 2017 18:48:43 -0500 Subject: [PATCH] fix #216: nw.js arm package name inconsistency breaks build on arm devices --- l2ork_addons/tar_em_up.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/l2ork_addons/tar_em_up.sh b/l2ork_addons/tar_em_up.sh index d3bd23682..0857da68d 100755 --- a/l2ork_addons/tar_em_up.sh +++ b/l2ork_addons/tar_em_up.sh @@ -98,7 +98,12 @@ if [ ! -d "../pd/nw/nw" ]; then else tar -xf $nwjs_filename fi - mv $nwjs_dirname ../pd/nw/nw + # Special case for arm binary's inconsistent directory name + # (It's not the same as the `uname -m` output) + if [ `uname -m` == "armv7l" ]; then + nwjs_dirname=`echo $nwjs_dirname | sed 's/armv7l/arm/'` + fi + mv $nwjs_dirname ../pd/nw/nw # make sure the nw binary is executable on GNU/Linux and OSX if [[ $os != "win" ]]; then chmod 755 ../pd/nw/nw/nw -- GitLab