From daebd26a2894d88eb4c703b3be75f042cd563fef Mon Sep 17 00:00:00 2001 From: Chris Date: Thu, 30 Nov 2017 14:55:44 -0600 Subject: PLT-8018: Bundled jira plugin (#7920) * bundled jira plugin * fix generated file formatting, add prepackaged key * whoops, uploaded wrong file * whitelist generated files for license check * make it work for people without go/bin in their path --- Makefile | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index a0cf74f1c..a056a264f 100644 --- a/Makefile +++ b/Makefile @@ -275,6 +275,17 @@ store-mocks: go get github.com/vektra/mockery/... GOPATH=$(shell go env GOPATH) $(shell go env GOPATH)/bin/mockery -dir store -all -output store/storetest/mocks -note 'Regenerate this file using `make store-mocks`.' +update-jira-plugin: + go get github.com/jteeuwen/go-bindata/... + curl -s https://api.github.com/repos/mattermost/mattermost-plugin-jira/releases/latest | grep browser_download_url | grep darwin-amd64 | cut -d '"' -f 4 | wget -qi - -O plugin.tar.gz + $(shell go env GOPATH)/bin/go-bindata -pkg jira -o app/plugin/jira/plugin_darwin_amd64.go plugin.tar.gz + curl -s https://api.github.com/repos/mattermost/mattermost-plugin-jira/releases/latest | grep browser_download_url | grep linux-amd64 | cut -d '"' -f 4 | wget -qi - -O plugin.tar.gz + $(shell go env GOPATH)/bin/go-bindata -pkg jira -o app/plugin/jira/plugin_linux_amd64.go plugin.tar.gz + curl -s https://api.github.com/repos/mattermost/mattermost-plugin-jira/releases/latest | grep browser_download_url | grep windows-amd64 | cut -d '"' -f 4 | wget -qi - -O plugin.tar.gz + $(shell go env GOPATH)/bin/go-bindata -pkg jira -o app/plugin/jira/plugin_windows_amd64.go plugin.tar.gz + rm plugin.tar.gz + gofmt -s -w ./app/plugin/jira + check-licenses: ./scripts/license-check.sh $(TE_PACKAGES) $(EE_PACKAGES) -- cgit v1.2.3-1-g7c22