-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMakefile
More file actions
22 lines (18 loc) · 931 Bytes
/
Makefile
File metadata and controls
22 lines (18 loc) · 931 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
TARGETS = onair
VERSION = $(shell bash ./genVersion.sh)
RAWVERSION = $(shell bash ./)
onair: ifttt.go hue.go onair.go watcher.go go.mod go.sum
go build -ldflags='-extldflags "-sectcreate __TEXT __info_plist $(shell pwd)/Info.plist" -X "main.buildVersion=$(VERSION)"' -o $@
clean:
rm -rf $(TARGETS) _CodeSignature *.pkg package
.PHONY: sign
sign:
mkdir -p package
cp onair package
codesign -s 'Developer ID Application: Big Technology LLC (FMGF9BLA5F)' -f -v --timestamp --options runtime ./package/onair
pkgbuild --root package --identifier net.pcable.onair --version $(VERSION:v%=%) --install-location /usr/local/bin onair-$(VERSION)-raw.pkg
productsign -s 'Developer ID Installer: Big Technology LLC (FMGF9BLA5F)' --timestamp onair-$(VERSION)-raw.pkg onair-$(VERSION).pkg
xcrun notarytool submit --keychain-profile "BigTech ASC" onair-$(VERSION).pkg
.PHONY: staple
staple:
xcrun stapler staple onair-$(VERSION).pkg