diff --git a/Makefile b/Makefile index 09ccdf6..9efdf3a 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ SERVER_PARTS=bash ssh vim docker terraform -CLIENT_PARTS=i3 packages git +CLIENT_PARTS=i3 packages git postman .PHONY: clean_install diff --git a/postman/Makefile b/postman/Makefile new file mode 100644 index 0000000..17ccb0f --- /dev/null +++ b/postman/Makefile @@ -0,0 +1,26 @@ +ifeq ("x86_64", "$(shell uname -m)") +VERSION=linux64 +else ifeq ("i386", "$(shell uname -m)") +VERSION=linux32 +endif + +SNAP_BIN=/usr/bin/snap +ROOT_SNAP=sudo snap +SNAP_PACKAGE=postman + +RELEASE:=$(shell lsb_release -cs) + +clean: + $(ROOT_SNAP) remove $(SNAP_PACKAGE) + +install: +ifeq ("$(wildcard $(SNAP_BIN))", "") +# no snap +else + $(MAKE) install_snap +endif + +install_snap: + $(ROOT_SNAP) install $(SNAP_PACKAGE) + +force_update: clean install diff --git a/todo.txt b/todo.txt index 216ec9f..5da803b 100644 --- a/todo.txt +++ b/todo.txt @@ -3,3 +3,4 @@ TODO: sanitaze-folders with all dirs TODO: [packages] separate every package to separate task TODO: run apt with sudo only when needed (id!=0) TODO: gitignore +TODO: use AppImage/download directly from developer site