aptly.sh: Don't pull from public repo before release

This commit is contained in:
Scott Nonnenberg 2023-05-15 16:18:46 -07:00 committed by GitHub
parent 110683fb37
commit 0905f9030b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -22,24 +22,13 @@ APTLY_SOURCE=${APTLY_SOURCE:-desktop/apt}
FIRST_RUN=false
if [ ! -d ~/.aptly ] ; then
if [ ! -d ~/.aptly/public ] ; then
echo
echo "aptly.sh: Detected first run"
echo "aptly.sh: Detected first run, creating repo"
aptly repo create signal-desktop
FIRST_RUN=true
fi
if [ "$FIRST_RUN" = true ] ; then
echo
echo "aptly.sh: (first run) Setting up repo and mirror"
aptly repo create signal-desktop
aptly mirror create -ignore-signatures backfill-mirror "https://updates.signal.org/$APTLY_SOURCE" xenial
fi
echo
echo "aptly.sh: Fetching latest released files so we don't erase anything"
aptly mirror update -ignore-signatures backfill-mirror
aptly repo import backfill-mirror signal-desktop signal-desktop signal-desktop-beta
echo
echo "aptly.sh: Adding newly-built deb to repo"
aptly repo add "$REPO" release/"$NAME"_"$VERSION"_*.deb