From 849937b57f2dffa0357706b65fac75869dc27f18 Mon Sep 17 00:00:00 2001 From: Nathan Robinson Date: Wed, 22 May 2024 20:06:06 -0400 Subject: [PATCH] particle-cli is supported on linux arm64 finally --- scripts/POSTINSTALL | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/scripts/POSTINSTALL b/scripts/POSTINSTALL index 9cfc827..605dd95 100644 --- a/scripts/POSTINSTALL +++ b/scripts/POSTINSTALL @@ -1,6 +1,6 @@ #!/bin/bash -# Exit if not running Manjaro/Arch +# Exit if not running Arch if [[ ! -e /etc/pacman.conf ]]; then echo "Running post-install not required on this system..." echo "Exiting." @@ -22,25 +22,12 @@ elif [[ "$ARCH" == "aarch64" ]]; then yay -S --needed openocd-git # Optional depends - sudo pacman -S --needed dfu-util nodejs-lts-erbium npm + sudo pacman -S --needed dfu-util fi # Install particle packages neopo install -# Fix and install particle-cli -if [[ "$ARCH" == "aarch64" ]]; then - export GODE_DEBUG=info # This is optional - neopo particle # This will fail - - # Replace node executable - PARTICLE_BASE="${NEOPO_LOCAL:+$HOME/.local/share/neopo/particle}" - PARTICLE_BASE="${NEOPO_PATH:+$NEOPO_PATH/particle}" - NODE_BINARY="$(find ${PARTICLE_BASE:-$HOME/.particle}/node-v*/bin/node)" - mv "$NODE_BINARY" "${NODE_BINARY}.old" - ln -s $(which node) "$NODE_BINARY" -fi - # Complete particle-cli install neopo particle