Skip to content

Commit b9104b7

Browse files
Improved makefile build commands
1 parent 1cec37a commit b9104b7

File tree

3 files changed

+21
-6
lines changed

3 files changed

+21
-6
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
/target
2+
/out
23
.DS_Store

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,13 @@
22

33
[![rust badge](https://img.shields.io/static/v1?label=Made%20with&message=Rust&style=for-the-badge&logo=rust&labelColor=e82833&color=b11522)](https://www.rust-lang.org/) [![license badge](https://img.shields.io/github/license/theRookieCoder/ferium?style=for-the-badge)](https://github.com/theRookieCoder/ferium/blob/main/LICENSE.txt) [![copyleft badge](https://img.shields.io/static/v1?label=&message=Copyleft&style=for-the-badge&labelColor=silver&color=silver&logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAQAAAC0NkA6AAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAAmJLR0QA/4ePzL8AAAAHdElNRQfjAxYBNgYPa+9oAAAEM0lEQVRYw6WYb0zVVRjHP9wQW7umA0xoKNSC+6bSNkzetKZbaVu19aLpfOGcbcw/S+uNbikuNwMsVyE3XVsro7VEXjS3ylmLxkRtC9crHGjCAv9AATK4CoZye8Hl/J7n/M7v8rvX57w55/lznt/583yf5/xyCEOlrKaSCp6ggCiQYJheLvMHv9HHA1MZ++kmmaZ1UUNZ9g6eo4X7aR3Mtvs0syJzB0U0MR3KgddOsiQTFxsZzdDBTLvFetd0OT5OHo1U+7j9tNJBN4MkgChFVLCS1Sz1aR7jHf5Lv4Yov1hfN8YRKgP1V9LIuGVxhmg6Fwv4XalPcJD8OTe3gA+YVHYXgt3kWato46nQp1jOWWs1eW7Fz5VaLbkZ3cdc6pX9UfeNkvd+a1aRtV3Fle+mLeGWEO/0mT/EWo7Sxh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IizoUAAAAldEVYdGRhdGU6bW9kaWZ5ADIwMTktMDMtMjJUMDE6NTQ6MDYrMDA6MDCTf3Y5AAAAAElFTkSuQmCC)](https://en.wikipedia.org/wiki/Copyleft)
44

5-
Ferium is an open source and easy to use package manager for Minecraft mods on [Modrinth](https://modrinth.com) and [GitHub Releases](https://github.com/releases). Simply specify the mods you use through the CLI and in just one command, you can download all the mods and update any existing ones.
5+
Ferium is an open source and easy to use package manager for Minecraft mods on [Modrinth](https://modrinth.com) and [GitHub Releases](https://github.com/releases). Simply specify the mods you use through the CLI and in just one command, you can download all the mods and update existing ones.
66

77
## Feature requests
88

99
If you want to have a feature added, check the [project](https://github.com/theRookieCoder/ferium/projects/1) to see if the feature is already added/planned. If not, you can [create a new issue](https://github.com/theRookieCoder/ferium/issues/new)
1010

1111
## Building or working on Ferium
1212

13-
You can build the project and install it to `~/bin` make sure you have `cargo` installed and run `make install`. If you are working on the project, you can use `make install-dev`. If you want to obtain executables for a specific OS, you can run `make build-<OS>` and replace `<OS>` with `mac`, `win`, or `linux`
13+
First you have to install the Rust toolchain (`cargo`, `rustup`, etc).
14+
To build the project and install it to `~/bin`, run `make install`. If you want to test the project, you can use `make install-dev` which compiles with `--debug`. If you want to obtain executables for a specific OS, you can run `make build-<OS>` and replace `<OS>` with `mac`, `win`, or `linux`. The produced binaries will be zipped and moved to `out/`

makefile

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,33 @@
11
build-mac:
22
cargo clean
3-
# For macOS on Intel
3+
rm -f out/ferium-macos-x64.zip out/ferium-macos-arm.zip
4+
mkdir -p out
5+
46
cargo build --target=x86_64-apple-darwin --release
5-
# For macOS on Apple Silicon
67
cargo build --target=aarch64-apple-darwin --release
78

9+
zip -r out/ferium-macos-x64.zip -j target/x86_64-apple-darwin/release/ferium
10+
zip -r out/ferium-macos-arm.zip -j target/aarch64-apple-darwin/release/ferium
11+
812
build-win:
913
cargo clean
10-
# For Windows x64
14+
rm -f out/ferium-windows-gnu.zip
15+
mkdir -p out
16+
1117
cargo build --target=x86_64-pc-windows-gnu --release
1218

19+
zip -r out/ferium-windows-gnu.zip -j target/x86_64-pc-windows-gnu/release/ferium
20+
1321
build-linux:
1422
cargo clean
15-
# For Linux x86-64
23+
rm -f out/ferium-linux-gnu.zip
24+
mkdir -p out
25+
1626
cargo build --target=x86_64-unknown-linux-gnu --release
1727

28+
mkdir out
29+
zip -r out/ferium-linux-gnu.zip -j target/x86_64-unknown-linux-gnu/release/ferium
30+
1831
install:
1932
cargo install --force --path . --root ~
2033

0 commit comments

Comments
 (0)