在 Windows 上維護 Bazel Scoop 套件

回報問題 查看來源 Nightly · 8.3 · 8.2 · 8.1 · 8.0 · 7.6

必要條件

你需要:

發布流程

維護 Scoop 套件非常簡單。取得已發布的 Bazel 網址後,您需要在這個檔案中進行適當變更:

  • 更新版本
  • 視需要更新依附元件
  • 更新網址
  • 更新雜湊 (預設為 sha256)

在檔案系統中,bazel.json 預設位於 %UserProfile%/scoop/buckets/main/bucket 目錄。這個目錄屬於您複製的 Git 存放區 scoopinstaller/scoop-main

測試結果:

scoop uninstall bazel
scoop install bazel
bazel version
bazel something_else

第一次時,請先建立 scoopinstaller/scoop-main 的分支,並將其指定為 %UserProfile%/scoop/buckets/main 的遠端:

git remote add mine FORK_URL

將變更推送至分叉,然後建立提取要求。