Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bzz/autoupdate-server
https://github.com/bzz/autoupdate-server
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/bzz/autoupdate-server
- Owner: bzz
- License: apache-2.0
- Created: 2015-07-02T10:05:39.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-07-03T11:22:13.000Z (over 9 years ago)
- Last Synced: 2024-05-02T01:12:10.130Z (8 months ago)
- Language: Go
- Size: 114 KB
- Stars: 0
- Watchers: 3
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# autoupdate-server
The autoupdate-server package provides a server that allows Lantern clients to
compare their running software version against releases posted in github, if a
new version is available, the autoupdate-server will provide a binary diff that
the client can use to patch itself.## Features
* Uses github releases.
* Generates binary diffs.## Requisites
In order to sign binary files you'll need a keypair:
```sh
openssl genrsa -out private.pem 2048
openssl rsa -in private.pem -out public.pem -pubout
```The private key must match the public key set in the autoupdate package
configuration.## How to run the autoupdate server
```
./autoupdate-server -k private.pem
```## Just testing?
Sure! Use this private key:
```
-----BEGIN RSA PRIVATE KEY-----
MIIEpAIBAAKCAQEAzSoibtACnqcp2uTGjCMJtTOLDIMQ4oGPhGHT4Q/epum+H3hc
bBNs9jRnMRWgX4z++xxuNJnhmoJw0eUXB7B4vj5DYpPajq6gPY8JuraF4ngfP5ox
Kj2BqpEUR9bx+3SjOSInrirM0JZO+aAW38BQNJB+sS7JvbPjcwdjwKc5IKzc9kxx
JNoZoFE9GMnYzaOrAlpCuAKWH8SCXYtCTxsXfKexdDxsI5Vzm5lQHJLMeqhLTQTU
m9oQofwNAOGOkn6dD4ObMlmFTOsf1G03/Dl9sVgjaWaZ9bGjvJ9B85UxNeWwduy+
uMrqFytxG6bbq0PbDEVu6ZQCPyiyCA7l945JOQIDAQABAoIBAQC8AZh8I3HDITxh
srOfR5xlyE3rsU+PwVpa3arj2z8Vha0L+af4AfUfy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6ov5cmnquTRnw8KW9Max9FPPyrrjTSW7h0ESTFcejvvQXyByPbWPwT1
BL0RSJZb4JgqCtRleQRcQg94+b4gvEllScprTHSQnIbrUVof79FoVQ==
-----END RSA PRIVATE KEY-----
```Save it to `private.pem` and run the server pointing to the autoupdate-server
repo that belongs to the getlantern organization:```sh
go run *.go -k private.pem -o getlantern -n autoupdate-server
# 2015/03/13 18:22:41 Starting release manager.
# 2015/03/13 18:22:41 Updating assets...
```The private key above matches the public key the
https://github.com/getlantern/autoupdate/tree/master/_test_app example uses.The first time you run the server, it will download all required assets, so
you'll probably need to wait a bit before the HTTP server is started.Once you see the "Starting HTTP server" message you can continue testing a
running app.```sh
# 2015/03/13 18:22:43 Starting up HTTP server at :9197.
```