Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add build script for linux #90

Merged
merged 5 commits into from
Nov 11, 2022
Merged

add build script for linux #90

merged 5 commits into from
Nov 11, 2022

Conversation

andresbott
Copy link
Contributor

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
Contributor 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
Contributor 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.

2 participants