Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@andresbott
Copy link

I added this small build logic to build and package the tool in debian compatible package.

Feel free to take the code and refactor it as wish.

@spoutn1k
Copy link
Owner

spoutn1k commented Nov 6, 2022

Thank you so much ! I do not use debian based distributions, so let me document myself and merge once I understand the code fully.

build-builder: ## build the builder image that contains the source code
@docker build -f build-linux.dockerfile -t mcmap-builder:latest ./..

build-linux: build-builder ## build for linux using docker
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This steps could also be out into a build script instead of having them in the make file.
furthermore build-linux and package-linux could probably unified into a single target.
similar to what i did here: https://github.com/andresbott/minecraft-overviewer-package/blob/main/targets/bullseye-64/build.sh

contents:
- src: ./mcmap # this path is mounted into the container
dst: /usr/local/bin/mcmap
file_info:
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice!
i didn't know this :D

@spoutn1k spoutn1k merged commit 0f474f4 into spoutn1k:NBT19133 Nov 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants