#!/bin/bash

dpkg-scanpackages -m pool/main/iphoneos-arm64/rootless/ > Packages
dpkg-scanpackages -m pool/main/iphoneos-arm64/rootless/ | zstd --ultra -fk - > Packages.zst
dpkg-scanpackages -m pool/main/iphoneos-arm64/rootless/ | gzip -fq9 - > Packages.gz
dpkg-scanpackages -m pool/main/iphoneos-arm64/rootless/ | xz --format=xz -zf9e - > Packages.xz
dpkg-scanpackages -m pool/main/iphoneos-arm64/rootless/ | xz --format=lzma -zf9e - > Packages.lzma
dpkg-scanpackages -m pool/main/iphoneos-arm64/rootless/ | bzip2 -zf9 - > Packages.bz2

gpg -v -abs -u 3ACFE9CC2BB46B35EE59BB0D98EC314AA672FF55 -o Release.gpg Release
gpg -v -abs -u 3ACFE9CC2BB46B35EE59BB0D98EC314AA672FF55 --clearsign -o InRelease Release