2017-04-06 22:10:04 +00:00
|
|
|
#!/bin/bash
|
|
|
|
# Setup:
|
|
|
|
# aptly repo create signal-desktop
|
|
|
|
#
|
|
|
|
# Release:
|
2017-04-20 22:56:08 +00:00
|
|
|
# VERSION=X.X.X ./aptly.sh
|
2017-04-06 22:10:04 +00:00
|
|
|
|
|
|
|
REPO=signal-desktop
|
|
|
|
DISTRO=xenial
|
|
|
|
ENDPOINT=signal-desktop-apt # Matches endpoint name in .aptly.conf
|
2017-05-26 01:01:57 +00:00
|
|
|
DEB_PATH=release
|
2017-04-06 22:10:04 +00:00
|
|
|
SNAPSHOT=signal-desktop_v$VERSION
|
|
|
|
GPG_KEYID=57F6FB06
|
|
|
|
aptly repo add $REPO $DEB_PATH/$REPO\_$VERSION\_*.deb
|
|
|
|
|
|
|
|
aptly snapshot create $SNAPSHOT from repo $REPO
|
|
|
|
aptly publish switch -gpg-key=$GPG_KEYID $DISTRO $SNAPSHOT
|
|
|
|
aptly publish switch -gpg-key=$GPG_KEYID -config=.aptly.conf $DISTRO s3:$ENDPOINT: $SNAPSHOT
|