Skip to content

2 安装工具

介绍两种适用于若干平台的安装方法.

通过 Cargo 安装

安装

cargo install lore-web-collections-bin-lexer-2026-04-07-1-impl-2026-04-07-2

更新

cargo install --force lore-web-collections-bin-lexer-2026-04-07-1-impl-2026-04-07-2

卸载

cargo uninstall lore-web-collections-bin-lexer-2026-04-07-1-impl-2026-04-07-2

通过预编译二进制安装

macOS

安装

curl -LO https://github.com/dotCorain/lore-bin-web-collections/releases/download/0.0.3/lore-web-collections-bin-lexer-2026-04-07-1-impl-2026-04-07-2
chmod +x lore-web-collections-bin-lexer-2026-04-07-1-impl-2026-04-07-2
sudo mv lore-web-collections-bin-lexer-2026-04-07-1-impl-2026-04-07-2 /usr/local/bin/

更新/卸载

sudo rm /usr/local/bin/lore-web-collections-bin-lexer-2026-04-07-1-impl-2026-04-07-2


Windows (x86_64)

安装

New-Item -ItemType Directory -Force -Path "$env:USERPROFILE\.lore\bin"

Invoke-WebRequest -Uri "https://github.com/dotCorain/lore-bin-web-collections/releases/download/0.0.3/lore-web-collections-bin-lexer-2026-04-07-1-impl-2026-04-07-2.exe" -OutFile "$env:USERPROFILE\.lore\bin\lore-web-collections-bin-lexer-2026-04-07-1-impl-2026-04-07-2.exe"
[Environment]::SetEnvironmentVariable("Path", $env:Path + ";$env:USERPROFILE\.lore\bin", [EnvironmentVariableTarget]::User)

更新

Invoke-WebRequest -Uri "https://github.com/dotCorain/lore-bin-web-collections/releases/download/0.0.3/lore-web-collections-bin-lexer-2026-04-07-1-impl-2026-04-07-2.exe" -OutFile "$env:USERPROFILE\.lore\bin\lore-web-collections-bin-lexer-2026-04-07-1-impl-2026-04-07-2.exe"

卸载

Remove-Item "$env:USERPROFILE\.lore\bin\lore-web-collections-bin-lexer-2026-04-07-1-impl-2026-04-07-2.exe"