Skip to content

Commit b51bbb9

Browse files
Added GitHub Releases support. See changelog
1 parent 65d4860 commit b51bbb9

File tree

14 files changed

+749
-119
lines changed

14 files changed

+749
-119
lines changed

CHANGELOG.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,27 @@
22

33
This changelog is formatted based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
44

5+
## [3.2.0] - 06.08.2021
6+
7+
> A quick note about Octorok
8+
>
9+
> Octorok is pretty buggy right now. AFAIK GitHub does not provide proper definitions for the structs used by their REST API, hence some fields which are supposed to be nullable may not be. _Please_ file an issue the moment you get an error about Octorok JSON deserialisation failing due to missing fields
10+
11+
### Added
12+
13+
- Added support for GitHub Releases
14+
- Added `Octorok`, a Github API abstraction for Ferium
15+
- Made the help page a 'copy' of the README file with suitable formatting
16+
- Added version command for checking the version
17+
- Added repositories to the configuration
18+
19+
### Changed
20+
21+
- Made HTTP calls non-blocking and asynchronous
22+
- Made all HTTP calls reuse a predefined client
23+
- Added more documentation
24+
- Made `make` builds timed
25+
526
## [3.1.2] - 06.08.2021
627

728
### Added

Cargo.lock

Lines changed: 112 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
[package]
22
name = "ferium"
3-
version = "3.1.2"
3+
version = "3.2.0"
44
edition = "2018"
55
authors = ["theRookieCoder"]
66

77
[dependencies]
88
reqwest = { version = "0.11", features = ["json", "blocking"] }
9+
tokio = { version = "1.11", features = ["full"] }
910
serde = { version = "1", features = ["derive"] }
1011
clap = {version = "2", features = ["yaml"]}
12+
shellexpand = "2"
1113
serde_json = "1"
1214
bytes = "1"
13-
shellexpand = "2"

README.md

Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
# Ferium
22

3-
Ferium is an open source and easy to use package manager for Minecraft mods (that are on [Modrinth](https://modrinth.com)).
3+
Ferium is an open source and easy to use package manager for Minecraft mods (that are on [Modrinth](https://modrinth.com) and [Github](https://github.com/releases) Releases).
44

55
## Feature to do
66

77
- [x] Allow configuration through a CLI
8-
- [ ] Add support for downloading from Github releases
8+
- [x] Add support for downloading from Github releases
99
- [ ] Release the Labrinth library as a seperate Crate
10+
- [ ] Add support for checking mod loader compatibility
1011
- [ ] Check that the version is compatible with a specified Minecraft version
1112
- [ ] Add support for downloading from CurseForge
1213

@@ -19,19 +20,29 @@ This section is the same as the one in `ferium help` + formatting.
1920

2021
### Commands
2122
- `list`
22-
- List all the mods configured with some of their metadata
23+
- Lists all the mods configured with some of their metadata
2324
- `help`
24-
- Show this help page
25+
- Shows this help page
2526
- `upgrade`
26-
- Download and install the latest version of the mods specified
27+
- Downloads and installs the latest version of the mods specified
2728
- `add MOD_ID`
28-
- Add a mod to the config
29+
- Adds a Modrinth mod to the config
2930
- A mod's `MOD_ID` is specified as '`</>` PROJECT ID' in the right sidebar of the mod's Modrith page
31+
- `add-repo OWNER REPO`
32+
- Adds a repository to the config
33+
- `OWNER` is username of the owner of the repository
34+
- `REPO` is the name of the repository
3035

3136
### Examples
3237
```bash
33-
$ ferium upgrade # Upgrades all the mods in your config
34-
$ ferium add AANobbMI # Adds the Sodium mod to your config
38+
# Upgrade all the mods in your config:
39+
$ ferium upgrade
40+
41+
# Add the Sodium mod to your config:
42+
$ ferium add AANobbMI
43+
44+
# Add the C2ME mod's repository to your config:
45+
$ ferium add-repo ishlandbukkit C2ME-fabric
3546
```
3647

3748
### Error codes

makefile

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
build-mac:
2+
cargo clean
23
# For macOS arm
3-
cargo build --target=aarch64-apple-darwin --release
4+
time cargo build --target=aarch64-apple-darwin --release
45
# For macOS x86-64
5-
cargo build --target=x86_64-apple-darwin --release
6+
time cargo build --target=x86_64-apple-darwin --release
67

78
build-win:
9+
cargo clean
810
# For Windows x86-64
911
cargo build --target=x86_64-pc-windows-msvc --release
1012
# For Windows on arm
1113
cargo build --target=aarch64-pc-windows-msvc --release
1214

1315
build-linux:
1416
# For Linux x86-64
15-
cargo build --target=x86_64-unknown-linux-gnu --release
17+
cargo clean
18+
time cargo build --target=x86_64-unknown-linux-gnu --release
1619
# For Linux arm
17-
cargo build --target=aarch64-unknown-linux-gnu --release
18-
19-
run:
20-
cargo run --release
20+
time cargo build --target=aarch64-unknown-linux-gnu --release

0 commit comments

Comments
 (0)