-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a1a3cab
commit e7e83ea
Showing
3 changed files
with
17 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,4 @@ | |
alfred_ddb | ||
alfred-dndbeyond-monster-workflow | ||
workflow-install.py | ||
workflow/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,23 @@ | ||
all: clean build copy | ||
|
||
release: clean build pack copy | ||
ZIP := $(shell which 7za) | ||
|
||
release: build gopack copy compress | ||
|
||
clean: | ||
$(RM) alfred-dndbeyond-monster-workflow | ||
$(RM) alfred-dndbeyond-monster-workflow.upx | ||
$(RM) "workflow/D&DBeyond\ Monster\ Search.alfredworkflow" | ||
|
||
build: | ||
echo "Building alfred-dndbeyond-monster-workflow..." | ||
go build -ldflags="-s -w" alfred-dndbeyond-monster-workflow.go icons.go types.go | ||
|
||
gopack: | ||
upx --brute alfred-dndbeyond-monster-workflow | ||
|
||
copy: | ||
python2 workflow-install.py | ||
|
||
pack: | ||
upx --brute alfred-dndbeyond-monster-workflow | ||
compress: | ||
$(ZIP) a "workflow/D&DBeyond\ Monster\ Search.alfredworkflow" * -xr'!build' -xr'!.git' -xr'!demo.gif' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters