在 Windows 上維護 Bazel Scoop 套件

必要條件

你需要:

發布流程

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

將變更推送至分支,並建立提取要求。