Skip to content

Commit

Permalink
Improve ext.sh and succeed to package
Browse files Browse the repository at this point in the history
  • Loading branch information
utensil committed Oct 6, 2024
1 parent f881168 commit 114839f
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions ext.sh
Original file line number Diff line number Diff line change
@@ -1,16 +1,22 @@
#!/bin/bash

# install nvm and node first
# curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash
# source ~/.bashrc or source ~/.zshrc
# nvm ls-remote
# nvm install v22.9.0

# generate a randome string less than 32 characters
RANDOM_ID=$(head -c 16 /dev/urandom | xxd -p | head -c 16)

git clone https://github.com/utensil/vscode-forester.git /tmp/vscode-forester-$RANDOM_ID
cd /tmp/vscode-forester-$RANDOM_ID
git checkout dev
bun install
npm install

# https://stackoverflow.com/a/54409592/200764
npm install -g vsce

# bunx vsce package
npx vsce package
# code --install-extension my-extension-0.0.1.vsix
rm -rf /tmp/vscode-forester-$RANDOM_ID

0 comments on commit 114839f

Please sign in to comment.