Skip to content

Commit 74a018a

Browse files
committed
feat(client): "make installer" creates distributable CLI package
This uses the same "single-binary" branch of `makeself` that is used to package `deisctl` installers.
1 parent e05478d commit 74a018a

2 files changed

Lines changed: 14 additions & 0 deletions

File tree

client/.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# installer droppings
2+
dist/
3+
makeself/

client/Makefile

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,17 @@ clean:
1919
client:
2020
pyinstaller deis.spec
2121

22+
installer: build
23+
@if [ ! -d makeself ]; then git clone -b single-binary https://github.com/deis/makeself.git; fi
24+
PATH=./makeself:$$PATH BINARY=deis makeself.sh --bzip2 --current --nox11 dist \
25+
dist/deis-cli-`grep '__version__\ =\ ' deis.py | cut -d' ' -f3 | tr -d \'`-`go env GOOS`-`go env GOARCH`.run \
26+
"Deis CLI" "echo \
27+
&& echo '\033[0;36mdeis\033[0m is in the current directory. Please' \
28+
&& echo 'move \033[0;36mdeis\033[0m to a directory in your search PATH.' \
29+
&& echo \
30+
&& echo 'See http://docs.deis.io/ for documentation.' \
31+
&& echo"
32+
2233
setup-venv:
2334
@if [ ! -d venv ]; then virtualenv venv; fi
2435
venv/bin/pip install -q flake8==2.2.2

0 commit comments

Comments
 (0)