@@ 1,14 1,19 @@
#!/usr/bin/env fish
set arch x64
+set ext xz
switch (uname -m)
case armv7l
set arch armv7l
end
+if test -e /boot/cmdline.txt # probably raspberry pi
+ set ext gz # 20M download instead of 12M, but unpacks in 10s instead of 30s - probably faster?
+end
+
set node_version v14.4.0
-set node_download_url "https://nodejs.org/dist/$node_version/node-$node_version-linux-$arch.tar.xz"
+set node_download_url "https://nodejs.org/dist/$node_version/node-$node_version-linux-$arch.tar.$ext"
set node_tarball 'node.tar.xz'
set node_folder "node-$node_version-linux-$arch"
set npm_install_args -s