Skip to content

Commit

Permalink
[fix] Add the dir "logs" into the tarball stracture (#111)
Browse files Browse the repository at this point in the history
With the changes introduced under #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
```
  • Loading branch information
phoinixgrr authored Nov 15, 2023
1 parent 699831b commit 5722eb8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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}; \
Expand Down

0 comments on commit 5722eb8

Please sign in to comment.