Skip to content

Commit b7c74b7

Browse files
Add command now adds dependencies
1 parent 6a77c2d commit b7c74b7

File tree

9 files changed

+351
-211
lines changed

9 files changed

+351
-211
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ jobs:
1313
matrix:
1414
os: [ubuntu-latest, macos-latest, windows-latest]
1515
env:
16+
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
1617
CURSEFORGE_API_KEY: ${{ secrets.CURSEFORGE_API_KEY }}
1718
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1819
steps:
@@ -68,6 +69,11 @@ jobs:
6869
name: binaries
6970
path: out/ferium*.zip
7071
if-no-files-found: error
72+
73+
- name: Upload to Crates
74+
uses: actions-rs/cargo@v1
75+
with:
76+
command: publish
7177

7278
release:
7379
runs-on: ubuntu-latest

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
# Changelog for Ferium
22

3+
## `v3.23.0`
4+
### 01.05.2022
5+
6+
- All crates have their minor version specified in `Crates.toml`
7+
- The workflow will now publish to crates.io too
8+
- Update README
9+
- Move upgrading code in `main.rs` to `subcommands::upgrade`
10+
- Added dependency handling to `subcommands::add`
11+
- Required dependencies will automatically be added
12+
- Optional dependencies will be added after the user approves
13+
314
## `v3.22.2`
415
### 27.04.2022
516

Cargo.lock

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

Cargo.toml

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "ferium"
3-
version = "3.22.2"
3+
version = "3.23.0"
44
edition = "2021"
55
authors = ["Ilesh Thiada (theRookieCoder) <[email protected]>", "Daniel Hauck (SolidTux)"]
66
description = "Ferium is a CLI program for managing Minecraft mods from Modrinth, CurseForge, and Github Releases"
@@ -22,23 +22,23 @@ default = ["gui"]
2222
gui = ["libium/gui"]
2323

2424
[dependencies]
25-
tokio = { version = "1", default-features = false, features = ["rt-multi-thread", "macros"] }
26-
reqwest = { version = "0", default-features = false, features = ["rustls-tls"] }
27-
octocrab = { version = "0", default-features = false, features = ["rustls"] }
28-
clap = { version = "3", features = ["derive"] }
29-
lazy_static = "1"
30-
serde_json = "1"
31-
dialoguer = "0"
32-
itertools = "0"
33-
colored = "2"
34-
ferinth = "2"
35-
anyhow = "1"
36-
libium = "1"
37-
online = "3"
38-
semver = "1"
39-
furse = "1"
40-
bytes = "1"
41-
url = "2"
25+
tokio = { version = "1.18", default-features = false, features = ["rt-multi-thread", "macros"] }
26+
reqwest = { version = "0.11", default-features = false, features = ["rustls-tls"] }
27+
octocrab = { version = "0.16", default-features = false, features = ["rustls"] }
28+
clap = { version = "3.1", features = ["derive"] }
29+
lazy_static = "1.4"
30+
dialoguer = "0.10"
31+
serde_json = "1.0"
32+
itertools = "0.10"
33+
colored = "2.0"
34+
ferinth = "2.1"
35+
libium = "1.10"
36+
anyhow = "1.0"
37+
online = "3.0"
38+
semver = "1.0"
39+
bytes = "1.1"
40+
furse = "1.1"
41+
url = "2.2"
4242

4343
[dev-dependencies]
44-
rand = "0"
44+
rand = "0.8"

README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,7 @@ When you first start up, you will have to create a new profile by running `feri
6464
6565
Now after adding all your mods, run `ferium upgrade` to download all of them to your output directory. This defaults to `.minecraft/mods` where `.minecraft` is the default Minecraft resources directory, you don't need to worry about this if you play with Mojang's launcher (unless you change the resources directory, of course). You can choose to pick a custom output directory during profile creation or [change it later](#profiles).
6666

67-
If Ferium fails to find a compatible version of a mod, it will print it's name in red and give a reason. It will continue downloading the rest of the mods and will exit with an error. This most likely means that the mod does not release for the mod loader and/or game version you selected. (if it does and Ferium can't find it for some reason [file a bug](https://github.com/theRookieCoder/ferium/issues/new))
68-
69-
PS: [There is a known bug about this](https://github.com/theRookieCoder/ferium/issues/12)
67+
If Ferium fails to find a compatible version of a mod, it will print it's name in red and give a reason. It will continue downloading the rest of the mods and will exit with an error. See the [advanced section](#advanced) for more information.
7068

7169
### Managing Mods
7270

0 commit comments

Comments
 (0)