~cadence/bibliogram-updater

a79b1f3875f0bc4d1595338290765b674d5b9b1d — Cadence Ember 6 months ago b9946a7
Use gz on raspberry pi
1 files changed, 6 insertions(+), 1 deletions(-)

M utils/constants.fish
M utils/constants.fish => utils/constants.fish +6 -1
@@ 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