- Go version:
>=1.23 - OS: Linux, macOS, Windows
Ensure the following environment variables are set before proceeding:
VERSION: Specify the version ofbloaderyou want to install (e.g.,0.1.2).BLOADER_BIN_PATH: Install Path Prefix (e.g.,/usr/local/bin).
export VERSION=0.1.2
export BLOADER_BIN_PATH="/usr/local/bin"Download the appropriate archive file for your environment from the GitHub Releases page:
Use curl or wget to download the .tar.gz file:
curl -LO "https://github.com/cresplanex/bloader/releases/download/v${VERSION}/bloader_${VERSION}_$(uname -s)_$(uname -m).tar.gz"Extract the .tar.gz file:
tar -xzf "bloader_${VERSION}_$(uname -s)_$(uname -m).tar.gz"sudo mv bloader ${BLOADER_BIN_PATH}bloader versionEnsure the following environment variables are set before proceeding:
ARCH: Set to your system architecture. Valid values are:x86_64arm64
VERSION: Specify the version ofbloaderyou want to install (e.g.,v1.2.3).
For x86_64 architecture with version 0.1.2:
$env:ARCH="x86_64"
$env:VERSION="0.1.2"Download the appropriate archive file for your environment from the GitHub Releases page:
Use Invoke-WebRequest to download the .zip file:
Invoke-WebRequest -Uri "https://github.com/cresplanex/bloader/releases/download/v$env:VERSION/bloader_$env:VERSION_Windows_$env:ARCH.zip" -OutFile bloader.zipExtract the .zip file:
Expand-Archive -Path bloader.zip -DestinationPath .Move the bloader binary to a directory in your PATH, such as a system path (Windows):
New-Item -ItemType Directory -Path "C:\Program Files\bloader"
Move-Item -Path bloader.exe -Destination "C:\Program Files\bloader\bloader.exe"
$env:Path += ";C:\Program Files\bloader"bloader.exe versionIf Go is installed, you can easily install the library using:
-
Run the following command:
go install github.com/cresplanex/bloader@latest
- This command places the binary in
$GOPATH/binor$HOME/go/bin.
- This command places the binary in
-
If the Go binary directory is not in your
$PATH, add it:export PATH=$PATH:$(go env GOPATH)/bin
-
Confirm that the installation has been completed with the following command:
bloader version
You can use Homebrew for easy installation:
brew install cresplanex/tap/bloaderConfirm that the installation has been completed with the following command.
bloader versionexport BLOADER_VERSION=0.1.2 # must update what you needInstallation is possible using APT:
-
Prerequire Install
sudo apt update sudo apt install wget
-
Download deb file
wget "https://github.com/cresplanex/bloader/releases/download/v${BLOADER_VERSION}/bloader_${BLOADER_VERSION}_$(uname -s)_$(uname -m).deb" -
Install the package:
sudo apt install ./bloader_${BLOADER_VERSION}_$(uname -s)_$(uname -m).deb
Note that the test has not been performed.(TODO)
You can install using the RPM package:
-
Prerequire Install
sudo yum install wget
-
Download deb file
wget "https://github.com/cresplanex/bloader/releases/download/v${BLOADER_VERSION}/bloader_${BLOADER_VERSION}_$(uname -s)_$(uname -m).rpm" -
Install the package:
If use
yum...sudo yum localinstall bloader_${BLOADER_VERSION}_$(uname -s)_$(uname -m).rpm
If use
dnf...sudo dnf install bloader_${BLOADER_VERSION}_$(uname -s)_$(uname -m).rpm
You can also build the library directly from the source using Go:
git clone https://github.com/cresplanex/bloader.git
cd bloader
go build -o bloader ./main.go
mv bloader /usr/local/bin/If necessary, a completion script can be generated so that commands can be used quickly and accurately.The currently supported complementary scripts are as follows.
bashfishpowershellzsh
For example, the following is an example of generating a completion script for bash.
bloader completion bash > bloader-completion.bashBelow is an example for linux, but it will work fine if the scripts are properly placed and loaded for each platform.
-
Adaptation to system If you want to enable this system-wide on linux, the following command is useful.
sudo mv bloader-completion.bash /etc/bash_completion.d/bloader
For immediate use, execute the following command.
exec $SHELL
-
Adaptation to specific users Others can be enabled only for specific users as follows.
mv bloader-completion.bash ~/.bloader_bash_completionInclude the following in your
.bashrc, etc.if [ -f ~/.bloader_bash_completion ]; then . ~/.bloader_bash_completion fi
For immediate use, execute the following command.
source ~/.bashrc
If you are using VS Code, add the following configuration to your .vscode/settings.json file to ensure compatibility with YAML and other tools:
{
"yaml.validate": false,
"yaml.customTags": [
"!<tag:yaml.org,2002:map>",
"!<tag:yaml.org,2002:str>",
"!<tag:yaml.org,2002:int>",
"{{.*}}"
]
}This configuration disables YAML validation and allows custom tags commonly used in configuration files. Ensure your team uses the same settings for consistency.