-
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
82 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
before: | ||
hooks: | ||
- go mod tidy | ||
checksum: | ||
disable: true | ||
snapshot: | ||
name_template: "SNAPSHOT-{{.ShortCommit}}" | ||
builds: | ||
- id: topframe | ||
goos: | ||
- darwin | ||
goarch: | ||
- amd64 | ||
ldflags: "-X main.Version={{.Version}}" | ||
hooks: | ||
post: './scripts/gonutil {{.Version}}' | ||
archives: | ||
- id: default | ||
builds: | ||
- topframe | ||
name_template: '{{ .ProjectName }}_{{ .Version }}' | ||
format: zip | ||
files: | ||
- none* | ||
signs: | ||
- id: notarize | ||
signature: "${artifact}.zip" | ||
cmd: gon | ||
args: ["./dist/gon_notarize.json"] | ||
artifacts: all | ||
release: | ||
github: | ||
owner: progrium | ||
name: topframe | ||
ids: | ||
- default | ||
draft: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,22 @@ | ||
|
||
build: | ||
go build -o local/topframe . | ||
build: local/bin/topframe | ||
|
||
dev: | ||
go run ./topframe.go agent | ||
go run ./topframe.go | ||
|
||
clean: | ||
rm -fr dist | ||
rm -f local/bin/topframe | ||
|
||
release: | ||
git tag v$(version:dev=) | ||
git push origin v$(version:dev=) | ||
goreleaser release --rm-dist | ||
@echo "==> Remember to update ./version! Current contents: $(version)" | ||
|
||
local/bin/topframe: topframe.go data/* | ||
go build -ldflags $(ldflags) -o local/bin/topframe . | ||
|
||
version=$(shell cat version) | ||
branch=$(shell git branch --show-current) | ||
ldflags="-X main.Version=$(version:dev=$(branch))" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/bin/sh | ||
cat <<CONFIG > ./dist/gon_sign.json | ||
{ | ||
"source" : ["./dist/topframe_darwin_amd64/topframe"], | ||
"bundle_id" : "com.progrium.topframe", | ||
"sign" :{ | ||
"application_identity" : "Developer ID Application: Jeff Lindsay" | ||
} | ||
} | ||
CONFIG | ||
gon -log-level=info -log-json ./dist/gon_sign.json > /dev/null | ||
cat <<CONFIG > ./dist/gon_notarize.json | ||
{ | ||
"notarize": [{ | ||
"path": "./dist/topframe_${1}.zip", | ||
"bundle_id": "com.progrium.topframe", | ||
"staple": false | ||
}] | ||
} | ||
CONFIG |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
0.2.0dev |