-
Notifications
You must be signed in to change notification settings - Fork 40
Installing the Compiler
Evan edited this page Dec 9, 2020
·
7 revisions
You can install the Bebop compiler from npm, either globally to make bebopc available on your PATH, or locally to a node package for use in npm scripts.
Globally
# yarn
yarn global add bebop-tools
# npm
npm install -g bebop-tools
bebopc --version
Locally
# yarn
yarn add --dev bebop-tools
# npm
npm install --save-dev bebop-tools
- Download the latest release.
- Unzip it somewhere.
- Add the directory containing the executable to your system PATH: Control Panel > System > Advanced System Settings > Environment Variables... > Path
Now you can invoke bebopc
from anywhere in Powershell or CMD.
Follow these instructions in a terminal:
# Download the binary release.
mkdir ~/.bebop
cd ~/.bebop
wget https://github.com/RainwayApp/bebop/.../osx-x64.zip # TODO
Or just download it from the releases page.
# Unzip it.
unzip osx-x64.zip
rm osx-x64.zip
# Should say "bebopc: Mach-O 64-bit executable x86_64" on macOS or something else appropriate on Linux
file bebopc
# Should say e.g. "bebopc 0.2.5-alpha"
./bebopc --version
# Add this location to the path. Add as a line to your .bash_profile or .bashrc to persist it between sessions.
export PATH=$PATH:$(pwd)
Now you can run bebopc
from anywhere to invoke the compiler.
These instructions will still work on Apple Silicon using Rosetta.