Add signed homebrew install
This commit is contained in:
13
Makefile
13
Makefile
@@ -1,19 +1,22 @@
|
||||
default:
|
||||
|
||||
dist:
|
||||
dist-linux:
|
||||
mkdir -p dist
|
||||
cp etc/litestream.yml dist/litestream.yml
|
||||
docker run --rm -v "${PWD}":/usr/src/litestream -w /usr/src/litestream -e GOOS=linux -e GOARCH=amd64 golang:1.15 go build -v -o dist/litestream ./cmd/litestream
|
||||
tar -cz -f dist/litestream-linux-amd64.tar.gz -C dist litestream
|
||||
|
||||
deb: dist
|
||||
dist-macos:
|
||||
ifndef LITESTREAM_VERSION
|
||||
$(error LITESTREAM_VERSION is undefined)
|
||||
endif
|
||||
cat etc/nfpm.yml | envsubst > dist/nfpm.yml
|
||||
nfpm pkg --config dist/nfpm.yml --packager deb --target dist/litestream.deb
|
||||
mkdir -p dist
|
||||
go build -v -ldflags "-X 'main.Version=${LITESTREAM_VERSION}'" -o dist/litestream ./cmd/litestream
|
||||
gon etc/gon.hcl
|
||||
mv dist/litestream.zip dist/litestream-${LITESTREAM_VERSION}-darwin-amd64.zip
|
||||
openssl dgst -sha256 dist/litestream-${LITESTREAM_VERSION}-darwin-amd64.zip
|
||||
|
||||
clean:
|
||||
rm -rf dist
|
||||
|
||||
.PHONY: deb dist clean
|
||||
.PHONY: default dist-linux dist-macos clean
|
||||
|
||||
10
README.md
10
README.md
@@ -20,6 +20,16 @@ GitHub.
|
||||
|
||||
## Installation
|
||||
|
||||
### Mac OS (Homebrew)
|
||||
|
||||
To install from homebrew, first add the Litestream tap and then install:
|
||||
|
||||
```sh
|
||||
$ brew tap benbjohnson/litestream
|
||||
$ brew install litestream
|
||||
```
|
||||
|
||||
|
||||
### Linux (Debian)
|
||||
|
||||
You can download the `.deb` file from the [Releases page][releases] page and
|
||||
|
||||
15
etc/gon.hcl
Normal file
15
etc/gon.hcl
Normal file
@@ -0,0 +1,15 @@
|
||||
source = ["./dist/litestream"]
|
||||
bundle_id = "com.middlemost.litestream"
|
||||
|
||||
apple_id {
|
||||
username = "benbjohnson@yahoo.com"
|
||||
password = "@env:AC_PASSWORD"
|
||||
}
|
||||
|
||||
sign {
|
||||
application_identity = "Developer ID Application: Middlemost Systems, LLC"
|
||||
}
|
||||
|
||||
zip {
|
||||
output_path = "dist/litestream.zip"
|
||||
}
|
||||
Reference in New Issue
Block a user