File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ source = [" ./ccat" ]
2+ bundle_id = " com.sbz.ccat"
3+
4+ sign {
5+ application_identity = " Developer ID Application"
6+ }
7+
8+ # for stapling
9+ dmg {
10+ output_path = " ccat.dmg"
11+ volume_name = " ccat"
12+ }
13+
14+ zip {
15+ output_path = " ccat.zip"
16+ }
Original file line number Diff line number Diff line change @@ -20,7 +20,10 @@ janitor:
2020 pre-commit autoupdate
2121
2222release :
23- goreleaser release --rm-dist
23+ goreleaser release --clean
2424 echo " go to https://github.com/batmac/ccat/releases and create a new release"
2525
26- .PHONY : build test thanks janitor release all clean
26+ macsign :
27+ gon .gon.hcl
28+
29+ .PHONY : build test thanks janitor release all clean macsign
Original file line number Diff line number Diff line change @@ -215,3 +215,14 @@ func stepOKPrintln(a ...any) {
215215 }
216216 fmt .Println (append ([]any {prefix + "✅" }, a ... )... )
217217}
218+
219+ func Macsign () error {
220+ if runtime .GOOS != "darwin" {
221+ fmt .Println ("❗️Skipping macOS signing on non-macOS platform" )
222+ }
223+ stepPrintln ("Signing and Notarizing for macOS with `gon` ..." )
224+ if err := sh .RunV ("gon" , ".gon.hcl" ); err != nil {
225+ return err
226+ }
227+ return nil
228+ }
You can’t perform that action at this time.
0 commit comments