Solana Workbench is your one stop shop for local Solana development.
Deploy local validators, airdrop tokens, and more with its GUI on OSX and Windows. Solana development may be like chewing glass today, but we’re on a mission to change that forever.
If you already have Node on your system (we recommend version 17), you can install the Node deps like so:
$ npm install
In order to use Anchor functionality, the anchor
CLI must be
installed. To connect to a local test validator, you can either
run one yourself on the CLI, or use the Docker functionality via
the app.
Detailed instructions:
NOTE: use
bin/setup.sh
for both Linux and OSX (but don't forget to add XCode cmdline tools for OSX) - it basically does the following
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash
nvm install 16.15.0
and nvm use 16.15.0
curl -o- https://get.docker.com | bash
corepack enable
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
source $HOME/.cargo/env
sh -c "$(curl -sSfL https://release.solana.com/v1.9.9/install)"
cargo install --git https://github.com/project-serum/anchor avm --locked --force
avm use latest
-- needed on Linux (needs libudev-dev
)$HOME/.avm/bin
to your PATH to be able to run the installed binariesto build the rust based tools (solana
and anchor
cli's), you will also need to install some native build tools and libraries. (See the Dockerfile for more)
sudo apt-get install -yq curl libudev-dev git build-essential libssl-dev pkg-config
~/.zshenv
if you're using zsh
):. "$HOME/.cargo/env"
path+=("$HOME/.avm/bin")
path+=("$HOME/.local/share/solana/install/active_release/bin")
. "$HOME/.nvm/nvm.sh"
export PATH
without anchor tooling for now
nvm install 16.15.0
nvm use 16.15.0
corepack enable
npm install
to run:
$ npm run dev
Now you're working with Workbench!
The project is currently in a migratory phase from Bootstrap to Tailwind. Do not write new code using Bootstrap layouting. Instead, opt for using Tailwind's atomic CSS system instead. The goal is to eventually be able to fully remove bootstrap from the codebase.
On each platform (OSX, Windows, Linux), run:
git clone https://github.com/workbenchapp/solana-workbench new-release-dir
cd new-release-dir
npm install
npm run package
To sign and notarize the OSX artifacts:
npm run package
.APPLE_NOTARIZATION=1
-- Indicate that the builds should be notarizedAPPLE_ID
-- The email address associated with the developer Apple accountAPPLE_ID_PASS
-- The app specific password for the app. This is different from the Apple ID's main password and set in the developer portal.TODO: Add the signing steps for Windows.
Then upload binaries and latest*.yml
files to the Github release.