![Scott Nonnenberg](/assets/img/avatar_default.png)
* Script for beta config; unique data dir, in-app env/type display To release a beta build, increment the version and add -beta-N to the end, then go through all the standard release activities. The prepare-build npm script then updates key bits of the package.json to ensure that the beta build can be installed alongside a production build. This includes a new name ('Signal Beta') and a different location for application data. Note: Beta builds can be installed alongside production builds. As part of this, a couple new bits of data are shown across the app: - Environment (development or test, not shown if production) - App Instance (disabled in production; used for multiple accounts) These are shown in: - The window title - both environment and app instance. You can tell beta builds because the app name, preceding these data bits, is different. - The about window - both environment and app instance. You can tell beta builds from the version number. - The header added to the debug log - just environment. The version number will tell us if it's a beta build, and app instance isn't helpful. * Turn on single-window mode in non-production modes Because it's really frightening when you see 'unable to read from db' errors in the console. * aply.sh: More instructions for initial setup and testing * Gruntfile: Get consistent with use of package.json datas * Linux: manually update desktop keys, since macros not available
40 lines
1.9 KiB
Bash
Executable file
40 lines
1.9 KiB
Bash
Executable file
#!/bin/bash
|
|
# Setup - creates the local repo which will be mirrored up to S3, then back-fill it. Your
|
|
# future deploys will eliminate all old versions without these backfill steps:
|
|
# aptly repo create signal-desktop
|
|
# aptly mirror create -ignore-signatures backfill-mirror https://updates.signal.org/desktop/apt xenial
|
|
# aptly mirror update -ignore-signatures backfill-mirror
|
|
# aptly repo import backfill-mirror signal-desktop signal-desktop signal-desktop-beta
|
|
# aptly repo show -with-packages signal-desktop
|
|
#
|
|
# First run on a machine - uncomment the first two 'aptly publish snapshot' commands,
|
|
# comment the other two. Sets up the two publish channels, one local, one to S3.
|
|
#
|
|
# Testing - comment out the lines with s3:$ENDPOINT to publish only locally. To eliminate
|
|
# effects of testing, remove package from repo, then move back to old snapshot:
|
|
# aptly repo remove signal-desktop signal-desktop_1.0.35_amd64
|
|
# aptly publish switch -gpg-key=57F6FB06 xenial signal-desktop_v1.0.34
|
|
#
|
|
# Release:
|
|
# NAME=signal-desktop(-beta) VERSION=X.X.X ./aptly.sh
|
|
|
|
echo "Releasing $NAME build version $VERSION"
|
|
|
|
REPO=signal-desktop
|
|
DISTRO=xenial
|
|
ENDPOINT=signal-desktop-apt # Matches endpoint name in .aptly.conf
|
|
SNAPSHOT=signal-desktop_v$VERSION
|
|
GPG_KEYID=57F6FB06
|
|
|
|
aptly repo add $REPO release/$NAME\_$VERSION\_*.deb
|
|
aptly snapshot create $SNAPSHOT from repo $REPO
|
|
|
|
# run these two only on first release to a given repo from a given machine
|
|
# https://www.aptly.info/doc/aptly/publish/snapshot/
|
|
# aptly publish snapshot -gpg-key=$GPG_KEYID $SNAPSHOT
|
|
# aptly publish snapshot -gpg-key=$GPG_KEYID -config=.aptly.conf $SNAPSHOT s3:$ENDPOINT:
|
|
|
|
# these update already-published repos, run every time after that
|
|
# https://www.aptly.info/doc/aptly/publish/switch/
|
|
aptly publish switch -gpg-key=$GPG_KEYID $DISTRO $SNAPSHOT
|
|
aptly publish switch -gpg-key=$GPG_KEYID -config=.aptly.conf $DISTRO s3:$ENDPOINT: $SNAPSHOT
|