-
-
Notifications
You must be signed in to change notification settings - Fork 45
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
Conversation
Thank you so much ! I do not use debian based distributions, so let me document myself and merge once I understand the code fully. |
linux-build/makefile
Outdated
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 |
There was a problem hiding this comment.
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: |
There was a problem hiding this comment.
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
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.