-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve ext.sh and succeed to package
- Loading branch information
Showing
1 changed file
with
8 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |