XR packaging for Fedora Atomic
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Automatically add bottles to formulae

Signed-off-by: @matrixfurry.com <did:plc:zmjoeu3stwcn44647rhxa44o>

+20 -5
+1 -1
scripts/bottle.nu
··· 33 33 34 34 brew install --build-bottle --bottle-arch "x86-64-v3" ...$install_args $formula 35 35 brew bottle --root-url $"https://gitlab.com/api/v4/projects/75293878/packages/generic/($formula)/($version)" --json ...$bottle_args $formula 36 - brew bottle --merge $"($formula)--($version).x86_64_linux.bottle.json" 36 + brew bottle --merge --write --json $"($formula)--($version).x86_64_linux.bottle.json" 37 37 38 38 open --raw $"($formula)--($version).x86_64_linux.bottle.tar.gz" 39 39 | into binary
+3 -1
scripts/ci/bottle.sh
··· 8 8 9 9 dnf install -y git nu procps-ng gcc-c++ 10 10 11 + git config --global user.name "Containerized Bottler" 12 + git config --global user.email "ContainerizedBottler@matrixfurry.com" 13 + 11 14 bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" 12 15 eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)" 13 16 14 17 brew install nushell 15 - brew tap matrixfurry.com/atomicxr $PWD 16 18 exec "$(dirname $0)/../bottle.nu" "$@"
+16 -3
scripts/containerized-bottle.nu
··· 6 6 7 7 def main --wrapped [ 8 8 formula: string 9 - --no-rm (-r) # Don't remove the container after building 9 + --keep-container (-r) # Don't remove the container after building 10 10 ...args 11 11 ] { 12 + let tmp = mktemp -td | path join homebrew-atomicxr 13 + cp -r $tap_dir $tmp 14 + cd $tmp 15 + git remote set-url origin https://tangled.org/@matrixfurry.com/homebrew-atomicxr 16 + 12 17 podman run ...( 13 - if not $no_rm {["--rm"]} 14 - ) -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 18 + if not $keep_container {["--rm"]} 19 + ) -it -v $"($tmp):/home/linuxbrew/.linuxbrew/Homebrew/Library/Taps/matrixfurry.com/homebrew-atomicxr:z" -e $"DEPLOY_TOKEN=($env.DEPLOY_TOKEN?)" fedora:42 /home/linuxbrew/.linuxbrew/Homebrew/Library/Taps/matrixfurry.com/homebrew-atomicxr/scripts/ci/bottle.sh $formula ...$args 20 + 21 + git format-patch -1 22 + let patch = ls | get name | where $it ends-with .patch | first | path expand 23 + cd $tap_dir 24 + git am $patch 25 + jj git import 26 + 27 + rm -r ($tmp | path dirname) 15 28 }