XR packaging for Fedora Atomic
at main 692 B view raw
1#!/usr/bin/env nu 2# SPDX-License-Identifier: AGPL-3.0-only 3# SPDX-FileCopyrightText: MatrixFurry <did:plc:zmjoeu3stwcn44647rhxa44o> 4 5const tap_dir = path self .. 6 7def main --wrapped [ 8 formula: string 9 --keep-container (-r) # Don't remove the container after building 10 ...args 11] { 12 if (jj status | lines | first) != "The working copy has no changes." { 13 error make { 14 msg: "Please commit your changes before building bottles." 15 } 16 } 17 18 podman run ...( 19 if not $keep_container {["--rm"]} 20 ) -it -v $"($tap_dir):/homebrew-tap:ro,z" -w "/homebrew-tap" -e $"DEPLOY_TOKEN=($env.DEPLOY_TOKEN?)" fedora:42 scripts/ci/bottle.sh $formula ...$args 21}