From f328b3f08cdc1931cb7fd5ae8725416a5f682be5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Przemys=C5=82aw=20Grondek?= Date: Tue, 10 Dec 2019 11:21:12 +0100 Subject: [PATCH] [postman] Add postman installation --- Makefile | 2 +- postman/Makefile | 26 ++++++++++++++++++++++++++ todo.txt | 1 + 3 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 postman/Makefile 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