forked from mikyk10/alfred-keepass
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
18 lines (13 loc) · 831 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
PLB=/usr/libexec/PlistBuddy
name=$(shell $(PLB) -c Print:name src/info.plist)
all: build open
open: bin/$(name).alfredworkflow
open bin/$(name).alfredworkflow
build:
-rm bin/*.alfredworkflow
-pushd src; v=$$(git describe --tags); $(PLB) -c "Set:version $${v#v}" info.plist; popd
-pushd src/alkeepass.d; GOOS=darwin GOARCH=amd64 go build -o ../ alkeepass.go; popd
-pushd src; zip -r ../bin/$(name).alfredworkflow alkeepass icon*.png *.md info.plist; popd
update: build
cp -f src/alkeepass '/Users/mnaito/Library/Mobile Documents/com~apple~CloudDocs/Alfred/Alfred.alfredpreferences/workflows/user.workflow.8221232E-CD36-41A3-9539-B1127FE8A67A/'
cp -f '/Users/mnaito/Library/Mobile Documents/com~apple~CloudDocs/Alfred/Alfred.alfredpreferences/workflows/user.workflow.8221232E-CD36-41A3-9539-B1127FE8A67A/info.plist' src/