From a768d2b852633d19e439fa0a3bed6ea39eb3fab8 Mon Sep 17 00:00:00 2001 From: "deathg.rip" Date: Fri, 17 May 2024 11:17:57 -0400 Subject: [PATCH] improve install script --- scripts/bootstrap.macos.command | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/scripts/bootstrap.macos.command b/scripts/bootstrap.macos.command index 73799be..ad7e9f3 100755 --- a/scripts/bootstrap.macos.command +++ b/scripts/bootstrap.macos.command @@ -64,11 +64,20 @@ export NVM_DIR="$HOME/.nvm" [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm [ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion +# and pnpm, a package manager that has better dependency resolution. +corepack add pnpm +corepack use pnpm@latest + # Clone the project to tmp directory so we can launch the browser to automate account creation etc. rm -rf /tmp/starfall cd /tmp/ && git clone https://github.com/NyanHelsing/starfall.git cd starfall + +# Install and use node 20 +nvm install 20 +nvm use 20 + # AppleScript command to show a Yes/No modal dialog HAS_GITHUB_ACCOUNT_RESPONSE=$(osascript <