#!/usr/bin/env nu # SPDX-License-Identifier: AGPL-3.0-only # Copyright (c) 2026 MatrixFurry const tap_dir = path self .. def main --wrapped [ formula: string --keep-container (-k) # Don't remove the container after building ...args ] { if (sys host).name == "Darwin" { container run ...( if not $keep_container {["--rm"]} ) -it -v $"($tap_dir):/homebrew-tap:ro" -w "/homebrew-tap" -e $"DEPLOY_TOKEN=($env.DEPLOY_TOKEN?)" fedora:latest scripts/ci/bottle.sh $formula ...$args } else { podman run ...( if not $keep_container {["--rm"]} ) -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 } }