Skip to content
This repository has been archived by the owner on Jun 11, 2021. It is now read-only.

Commit

Permalink
Simplified release command
Browse files Browse the repository at this point in the history
Signed-off-by: French Ben <frenchben@docker.com>
  • Loading branch information
French Ben committed Nov 9, 2017
1 parent 34165ae commit 0cabf97
Showing 1 changed file with 25 additions and 2 deletions.
27 changes: 25 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,9 +1,31 @@
.PHONY: docs docs-shell docs-build run

VERSION := $(shell jq -r '.version' package.json)

# TODO: clearly need to note pre-req's - OSX and node installed? - see contributing docs
run:

install:
npm install
npm run

run: install
npm start

release: install
npm run release
mv release/Kitematic-Mac.zip release/Kitematic-$(VERSION)-Mac.zip
mv release/Kitematic-Ubuntu.zip release/Kitematic-$(VERSION)-Ubuntu.zip
mv release/Kitematic-Windows.zip release/Kitematic-$(VERSION)-Windows.zip

#zip:
# docker container run --rm -it -w /to_zip -v $(PWD)/dist/Kitematic\ \(Beta\)-darwin-x64:/to_zip -v $(PWD)/dist:/out kramos/alpine-zip -r /out/Kitematic-$(VERSION)-Mac.zip .

clean:
-rm .DS_Store
-rm -Rf build/
-rm -Rf dist/
-rm -Rf releases/
-rm -Rf node_modules/


# Get the IP ADDRESS
DOCKER_IP=$(shell python -c "import urlparse ; print urlparse.urlparse('$(DOCKER_HOST)').hostname or ''")
Expand All @@ -27,3 +49,4 @@ docs-shell: docs-build

docs-build:
docker build -t "$(DOCKER_DOCS_IMAGE)" -f docs/Dockerfile .

0 comments on commit 0cabf97

Please sign in to comment.