-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
41 lines (30 loc) · 932 Bytes
/
Copy pathMakefile
File metadata and controls
41 lines (30 loc) · 932 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
BUILD_NUMBER ?= 0
include VERSION.mk
SIGNER ?= Riigi Infosüsteemi Amet
PROJ = xcodebuild -project browser-token-signing.xcodeproj VERSION=$(VERSION) BUILD_NUMBER=$(BUILD_NUMBER)
TMPROOT = $(PWD)/tmp
TARGET = $(TMPROOT)/Library/Internet\ Plug-Ins/esteidfirefoxplugin.bundle
PKG = firefox-token-signing.pkg
build: default
default: pkg
$(TARGET):
$(PROJ) DSTROOT=$(TMPROOT) install
clean:
rm -rf $(TMPROOT)
git clean -dfx
codesign: $(TARGET)
codesign -f -s "Developer ID Application: $(SIGNER)" --entitlements=browser-token-signing.entitlements $(TARGET)
$(PKG): $(TARGET)
pkgbuild --version $(VERSION) \
--identifier ee.ria.firefox-token-signing \
--root $(TMPROOT) \
--install-location / \
$(PKG)
pkg: $(PKG)
signed: codesign
pkgbuild --version $(VERSION) \
--identifier ee.ria.firefox-token-signing \
--root $(TMPROOT) \
--install-location / \
--sign "Developer ID Installer: $(SIGNER)" \
$(PKG)