aptly.sh: Don't pull from public repo before release
This commit is contained in:
parent
110683fb37
commit
0905f9030b
1 changed files with 3 additions and 14 deletions
17
aptly.sh
17
aptly.sh
|
@ -22,24 +22,13 @@ APTLY_SOURCE=${APTLY_SOURCE:-desktop/apt}
|
||||||
|
|
||||||
FIRST_RUN=false
|
FIRST_RUN=false
|
||||||
|
|
||||||
if [ ! -d ~/.aptly ] ; then
|
if [ ! -d ~/.aptly/public ] ; then
|
||||||
echo
|
echo
|
||||||
echo "aptly.sh: Detected first run"
|
echo "aptly.sh: Detected first run, creating repo"
|
||||||
|
aptly repo create signal-desktop
|
||||||
FIRST_RUN=true
|
FIRST_RUN=true
|
||||||
fi
|
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
|
||||||
echo "aptly.sh: Adding newly-built deb to repo"
|
echo "aptly.sh: Adding newly-built deb to repo"
|
||||||
aptly repo add "$REPO" release/"$NAME"_"$VERSION"_*.deb
|
aptly repo add "$REPO" release/"$NAME"_"$VERSION"_*.deb
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue