A build and installation manager for wslang and wpm packages.
- Clean installation: Removes existing installation before installing
- Pre-built binaries: Downloads ready-to-use executables from GitHub releases
- Fast installation: No compilation needed, just download and install
- Cross-platform: Automatically detects your platform (Linux, macOS, Windows)
- Simple: No build tools or dependencies required (except wget/curl)
- Installs all binaries to a single directory
- Linux/macOS:
~/.wvm/bin - Windows:
C:\Program Files\wvm\bin
- Linux/macOS:
- Automatically adds to PATH
- Supports both wget and curl for downloading
- Internet connection for downloading executables
- Linux/macOS: wget or curl (usually pre-installed)
- Windows: curl or PowerShell (pre-installed on modern Windows)
- Windows: Administrator privileges (for PATH modification)
chmod +x wvm.sh
./wvm.shThe script will automatically:
- Clone the repositories to temporary directories
- Run each project's build script
- Copy executables to
~/.wvm/bin - Add
~/.wvm/binto your PATH - Clean up temporary files
After installation, restart your terminal or run:
source ~/.bashrc # or ~/.zshrcRight-click and select "Run as Administrator":
wvm.batThe script will automatically:
- Clone the repositories to temporary directories
- Run each project's build script
- Copy executables to
C:\Program Files\wvm\bin - Add the directory to system PATH
- Clean up temporary files
After installation, restart your terminal or computer.
-
Clean Installation
- Removes existing
~/.wvm(Linux/macOS) orC:\Program Files\wvm(Windows) directory - Ensures fresh installation every time
- Removes existing
-
Creates Installation Directory
- Linux/macOS:
~/.wvm/bin - Windows:
C:\Program Files\wvm\bin
- Linux/macOS:
-
Detects Platform
- Automatically identifies your operating system
- Selects the correct pre-built executable
-
Downloads Latest Releases
- Automatically resolves the latest GitHub release assets for
wslangandwpm - Uses
curl/wgeton Linux/macOS (prefersjqif available for parsing) - Uses PowerShell on Windows to query the GitHub API
- Falls back to
releases/latest/download/...URLs if API parsing fails - Shows download progress
- Automatically resolves the latest GitHub release assets for
-
Installs Executables
- Copies downloaded binaries to bin directory
- Sets executable permissions (Linux/macOS)
- Clean, consistent names:
wslangandwpm(.exeon Windows)
-
Updates PATH
- Linux/macOS: Adds to
~/.bashrcor~/.zshrc - Windows: Adds to system PATH (requires admin)
- Linux/macOS: Adds to
-
Cleanup
- Removes temporary download directory
To update to a newer release, simply run the installer again:
./wvm.shwvm.bat (as Administrator)The script will:
- Remove the old installation
- Download the latest release binaries
- Reinstall everything
- Update your PATH if needed
Note: The installer now targets the latest release automatically. If you need a specific version, you can adjust the resolution logic to pin to a tag.
If you want to build the Dart version of the installer:
./build.sh
# or
make buildbuild.batThis creates a standalone executable that can be distributed.
~/.wvm/
├── bin/ # Installed executables
│ ├── wslang # Well.. Simple language interpreter
│ └── wpm # Well.. Simple package manager
└── temp/ # Temporary build directory (cleaned after install)
C:\Program Files\wvm\
├── bin\ # Installed executables
│ ├── wslang.exe # Well.. Simple language interpreter
│ └── wpm.exe # Well.. Simple package manager
└── temp\ # Temporary build directory (cleaned after install)
Permission denied:
chmod +x wvm.shPATH not updated:
source ~/.bashrc # or ~/.zshrcGit not found:
sudo apt install git # Debian/Ubuntu
sudo dnf install git # Fedora
brew install git # macOSAccess denied:
- Right-click
wvm.batand select "Run as Administrator"
PATH not working:
- Restart your terminal or computer
- Or manually add
C:\Program Files\wvm\binto your PATH in System Properties
Git not found:
- Download and install Git from https://git-scm.com/download/win
# Remove binaries
rm -rf ~/.wvm
# Remove from PATH (edit your shell config file)
nano ~/.bashrc # or ~/.zshrc
# Remove the line: export PATH="$PATH:$HOME/.wvm/bin"- Delete
C:\Program Files\wvm - Remove
C:\Program Files\wvm\binfrom System PATH in System Properties
See individual package repositories for license information.
wvm.sh- Linux/macOS installer scriptwvm.bat- Windows installer scriptwvm.dart- Dart implementation (alternative)build.sh- Build script for Dart version (Linux/macOS)build.bat- Build script for Dart version (Windows)Makefile- Make targets for development