Homebrew tap for XR (VR/AR/MR) software.
homebrew
vr
linux
oci
1#!/usr/bin/env nu
2# SPDX-License-Identifier: AGPL-3.0-only
3# Copyright (c) 2026 MatrixFurry <matrix@matrixfurry.com>
4
5const tap_dir = path self ..
6
7def main --wrapped [
8 formula: string
9 --keep-container (-k) # Don't remove the container after building
10 ...args
11] {
12 if (sys host).name == "Darwin" {
13 container run ...(
14 if not $keep_container {["--rm"]}
15 ) -it -v $"($tap_dir):/homebrew-tap:ro" -w "/homebrew-tap" -e $"DEPLOY_TOKEN=($env.DEPLOY_TOKEN?)" fedora:latest scripts/ci/bottle.sh $formula ...$args
16 } else {
17 podman run ...(
18 if not $keep_container {["--rm"]}
19 ) -it -v $"($tap_dir):/homebrew-tap:ro,z" -w "/homebrew-tap" -e $"DEPLOY_TOKEN=($env.DEPLOY_TOKEN?)" fedora:latest scripts/ci/bottle.sh $formula ...$args
20 }
21}