From 5722eb8f19f13769190c020db166e810ec47e0aa Mon Sep 17 00:00:00 2001 From: Akis Maziotis Date: Wed, 15 Nov 2023 07:30:01 +0200 Subject: [PATCH] [fix] Add the dir "logs" into the tarball stracture (#111) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit With the changes introduced under https://github.com/mattermost/mattermost-push-proxy/pull/109 We missed the `logs` directory from the tarbal generation. We fix this now. before: ``` ├── LICENSE.txt ├── NOTICE.txt ├── README.md ├── bin │   └── mattermost-push-proxy └── config ├── build.txt └── mattermost-push-proxy.sample.json ``` after: ``` ├── LICENSE.txt ├── NOTICE.txt ├── README.md ├── bin │   └── mattermost-push-proxy ├── config │   ├── build.txt │   └── mattermost-push-proxy.sample.json └── logs ``` --- Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile b/Makefile index 2b224c5..4db57a0 100644 --- a/Makefile +++ b/Makefile @@ -157,6 +157,7 @@ package-software: ## to package the binary cp -RL config $(GO_OUT_BIN_DIR)/$${target}_temp/config; \ echo $(APP_VERSION) > $(GO_OUT_BIN_DIR)/$${target}_temp/config/build.txt; \ cp LICENSE.txt NOTICE.txt README.md $(GO_OUT_BIN_DIR)/$${target}_temp; \ + mkdir $(GO_OUT_BIN_DIR)/$${target}_temp/logs; \ mv $$file $(GO_OUT_BIN_DIR)/$${target}_temp/bin/mattermost-push-proxy; \ mv $(GO_OUT_BIN_DIR)/$${target}_temp $(GO_OUT_BIN_DIR)/$${target}; \ tar -czf $(GO_OUT_BIN_DIR)/$${target}.tar.gz -C $(GO_OUT_BIN_DIR) $${target}; \