Skip to content

Commit

Permalink
Add plist contents to executable through Makefile build target
Browse files Browse the repository at this point in the history
* Also, increment version number
  • Loading branch information
13ajay authored and Lychee030 committed Aug 22, 2024
1 parent e7d5a9c commit 81b7817
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
12 changes: 12 additions & 0 deletions Info.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<plist version="1.0">
<dict>
<key>CFBundleName</key>
<string>Creds Helper</string>
<key>CFBundleDisplayName</key>
<string>Creds Helper</string>
<key>CFBundleIdentifier</key>
<string>com.amazon.aws.rolesanywhere</string>
<key>CFBundleVersion</key>
<string>1.2.0</string>
</dict>
</plist>
7 changes: 4 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
VERSION=1.1.1
VERSION=1.2.0

.PHONY: release
release: build/bin/aws_signing_helper

curdir=$(shell pwd)

build/bin/aws_signing_helper:
go build -buildmode=pie -ldflags "-X 'github.com/aws/rolesanywhere-credential-helper/cmd.Version=${VERSION}' -linkmode=external -w -s" -trimpath -o build/bin/aws_signing_helper main.go
go build -buildmode=pie -ldflags "-X 'github.com/aws/rolesanywhere-credential-helper/cmd.Version=${VERSION}' -extldflags '-sectcreate __TEXT __info_plist $(curdir)/Info.plist' -linkmode=external -w -s" -trimpath -o build/bin/aws_signing_helper main.go

.PHONY: clean
clean:
Expand All @@ -16,7 +18,6 @@ SHM2_UTIL=SOFTHSM2_CONF=tst/softhsm2.conf.tmp softhsm2-util
P11TOOL=SOFTHSM2_CONF=tst/softhsm2.conf.tmp p11tool

certsdir=tst/certs
curdir=$(shell pwd)

RSAKEYS := $(foreach keylen, 1024 2048 4096, $(certsdir)/rsa-$(keylen)-key.pem)
ECKEYS := $(foreach curve, prime256v1 secp384r1, $(certsdir)/ec-$(curve)-key.pem)
Expand Down

0 comments on commit 81b7817

Please sign in to comment.