Setup publishing to s3
This commit is contained in:
parent
449c3e2428
commit
9e39442ea8
3 changed files with 65 additions and 6 deletions
12
.aptly.conf
Normal file
12
.aptly.conf
Normal file
|
@ -0,0 +1,12 @@
|
|||
{
|
||||
"S3PublishEndpoints": {
|
||||
"signal-desktop-apt": {
|
||||
"region": "us-east-1",
|
||||
"bucket": "updates.signal.org",
|
||||
"prefix": "desktop/apt",
|
||||
"acl": "public-read",
|
||||
"plusWorkaround": false,
|
||||
"disableMultiDel": false
|
||||
}
|
||||
}
|
||||
}
|
35
aptly.sh
Executable file
35
aptly.sh
Executable file
|
@ -0,0 +1,35 @@
|
|||
#!/bin/bash
|
||||
# Setup:
|
||||
# aptly repo create signal-desktop
|
||||
#
|
||||
# Release:
|
||||
# aptly repo add signal-desktop path/to/signal-desktop_X.X.X_amd64.deb
|
||||
# VERSION=vX.X.X ./aptly.sh
|
||||
|
||||
REPO=signal-desktop
|
||||
DISTRO=xenial
|
||||
ENDPOINT=signal-desktop-apt # Matches endpoint name in .aptly.conf
|
||||
DEB_PATH=pack
|
||||
SNAPSHOT=signal-desktop_v$VERSION
|
||||
GPG_KEYID=57F6FB06
|
||||
aptly repo add $REPO $DEB_PATH/$REPO\_$VERSION\_*.deb
|
||||
|
||||
while true; do
|
||||
read -p "Create snapshot?" yn
|
||||
case $yn in
|
||||
[Yy]* ) break;;
|
||||
[Nn]* ) exit;;
|
||||
* ) echo "Please answer yes or no.";
|
||||
esac
|
||||
done
|
||||
aptly snapshot create $SNAPSHOT from repo $REPO
|
||||
while true; do
|
||||
read -p "Deploy snapshot?" yn
|
||||
case $yn in
|
||||
[Yy]* ) break;;
|
||||
[Nn]* ) exit;;
|
||||
* ) echo "Please answer yes or no.";
|
||||
esac
|
||||
done
|
||||
aptly publish switch -gpg-key=$GPG_KEYID $DISTRO $SNAPSHOT
|
||||
aptly publish switch -gpg-key=$GPG_KEYID -config=.aptly.conf $DISTRO s3:$ENDPOINT: $SNAPSHOT
|
24
package.json
24
package.json
|
@ -41,14 +41,29 @@
|
|||
"build": {
|
||||
"appId": "org.whispersystems.signal-desktop",
|
||||
"mac": {
|
||||
"category": "public.app-category.social-networking"
|
||||
"category": "public.app-category.social-networking",
|
||||
"publish": {
|
||||
"provider": "s3",
|
||||
"region": "us-east-1",
|
||||
"bucket": "updates.signal.org",
|
||||
"path": "desktop",
|
||||
"acl": "public-read"
|
||||
}
|
||||
},
|
||||
"win": {
|
||||
"publish": {
|
||||
"provider": "s3",
|
||||
"region": "us-east-1",
|
||||
"bucket": "updates.signal.org",
|
||||
"path": "desktop",
|
||||
"acl": "public-read"
|
||||
}
|
||||
},
|
||||
"linux": {
|
||||
"target": [
|
||||
"deb"
|
||||
]
|
||||
},
|
||||
"win": {},
|
||||
"files": [
|
||||
"**/*",
|
||||
"!**/node_modules/*/{CHANGELOG.md,README.md,README,readme.md,readme,test,__tests__,tests,powered-test,example,examples,*.d.ts}",
|
||||
|
@ -73,10 +88,7 @@
|
|||
],
|
||||
"directories": {
|
||||
"output": "pack"
|
||||
},
|
||||
"publish": [
|
||||
"github"
|
||||
]
|
||||
}
|
||||
},
|
||||
"dependencies": {
|
||||
"electron-updater": "^1.11.2"
|
||||
|
|
Loading…
Reference in a new issue