Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/release-notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
| | Download | |
|---|---|---|
| **Windows** 10 and 11 | `Cubby_{{VERSION}}_x64-setup.exe` | If Windows warns about the installer, click *More info*, then *Run anyway*: it isn't signed yet. |
| **macOS** 11 or later, Apple Silicon | `Cubby_{{VERSION}}_aarch64.dmg` | Drag Cubby to Applications. The first time macOS blocks it because it isn't notarized yet: open *System Settings*, *Privacy & Security*, and click *Open Anyway*. |
| **macOS** 11 or later, Apple Silicon | `Cubby_{{VERSION}}_aarch64.dmg` | Drag Cubby to Applications. It is signed and notarized by Apple. |
| **macOS** 11 or later, Intel | `Cubby_{{VERSION}}_x64.dmg` | Same as above. |
| **Linux** 64-bit | `Cubby_{{VERSION}}_amd64.AppImage` | Make it executable, then run it. Debian and Ubuntu can use `Cubby_{{VERSION}}_amd64.deb` instead. |

Expand Down
40 changes: 40 additions & 0 deletions .github/releases/v2026.11.1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
<p align="center">A new way to start an instance, CurseForge as a full source next to Modrinth, and the freedom to go back to the version you liked.</p>

![Discover in Cubby](https://raw.githubusercontent.com/benjaminbrtrd/Cubby/main/docs/screenshots/discover.png)

If something breaks, [open an issue](https://github.com/benjaminbrtrd/Cubby/issues/new) with the crash report from the app.

## ✨ What's new

**A wizard for new instances.** *New instance* now walks you through it: start from scratch, from a modpack or from an import, pick the Minecraft version and the loader (or the pack, which sets both), then, if you like, mods, resource packs, a shader pack and datapacks. A summary follows every choice, and everything installs once the instance is ready. Open any mod or pack from the wizard to read its page, then add it from there.

**CurseForge, all the way.** Mods, resource packs, shader packs and datapacks from CurseForge install straight from Discover, like Modrinth ones: Cubby picks the file made for your instance, adds the mods it requires and replaces an older version you already have. Each project has its own page in Cubby, with its description, gallery and every file. Files whose author only allows downloads on curseforge.com get a link to their page.

**Better filters.** Pick several Minecraft versions, loaders and categories at once, on Modrinth and on CurseForge, modpacks included, from every Minecraft release rather than only the newest ones.

**What's in a modpack.** A modpack's page lists its content (mods, resource packs and shader packs) for the version you pick, on every source: Modrinth, CurseForge, FTB, ATLauncher and Technic.

**Go back to an older version.** Every mod, resource pack, shader pack and world datapack from Modrinth or CurseForge has a *Versions* button: pick an older or a newer version and Cubby replaces the file. An instance made from a modpack can switch to another version of the pack: its mods and settings change, your worlds and your own mods stay.

**Updates checked at start.** When Cubby opens, it looks for mod and pack updates in every instance and tells you what it found. Nothing is updated without you, and a mod on a release is only offered releases.

**Where each file comes from.** Mods and packs show the logo of their source (Modrinth, CurseForge or a local file) and an icon for what they are: content, library or performance. A file you installed from CurseForge stays marked as CurseForge, even when Modrinth has the same file.

**Signed for macOS.** The Mac app is signed and notarized by Apple: it opens without the "unidentified developer" warning.

## 🐛 Fixes

- Updating a mod keeps it selected and its panel open: the list no longer flickers while Cubby reads the new files.
- *Versions* opens on the version you have installed, not on the newest one.
- *Hide installed* also works for content from CurseForge.
- CurseForge searches past 10,000 results say "More than 10,000" instead of a capped number.
- Side panels no longer cut versions and statuses; the delete buttons fill the width, with their hint underneath.
- Project galleries show full-size pictures.
- A click outside a dialog closes it.
- The Play button of a Library card no longer covers its menu.
- *Previous* buttons have their chevron, like *Next*.

## ⚠️ Good to know

- **Coming from 2026.11.0?** Cubby updates itself.
- The version filter of the other modpack sources now lists every version, behind *Show all versions*.
28 changes: 14 additions & 14 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ resolver = "2"
members = ["crates/*", "src-tauri"]

[workspace.package]
version = "2026.11.0"
version = "2026.11.1"
edition = "2021"
license = "GPL-3.0-only"
repository = "https://github.com/benjaminbrtrd/Cubby"
Expand Down
102 changes: 102 additions & 0 deletions crates/cubby-atlauncher/src/contents.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
//! What a version of an ATLauncher pack contains, from its manifest (`Configs.json`): the mods with their
//! names and versions, which optional, and the CurseForge project of those that come from there.

use cubby_common::packs::{sort_contents, ContentSite, PackContentItem, PackContentKind};

use crate::model::{AtlManifest, AtlMod};
use crate::modtypes::ModKind;

/// What a mod type installs, as listed content; `None` for configs, loaders and server files.
fn content_kind(m: &AtlMod) -> Option<PackContentKind> {
let kind = ModKind::parse(&m.kind);
let kind = match kind {
ModKind::Extract => ModKind::parse(m.extract_to.as_deref().unwrap_or_default()),
ModKind::Decomp => ModKind::parse(m.decomp_type.as_deref().unwrap_or_default()),
other => other,
};
match kind {
ModKind::Mods | ModKind::Flan | ModKind::Dependency | ModKind::Ic2Lib | ModKind::DenLib | ModKind::Coremods | ModKind::Jar => Some(PackContentKind::Mod),
ModKind::TexturePack | ModKind::ResourcePack | ModKind::TexturePackExtract | ModKind::ResourcePackExtract => Some(PackContentKind::ResourcePack),
ModKind::ShaderPack => Some(PackContentKind::Shader),
_ => None,
}
}

/// The mods, resource packs and shader packs a client gets from this manifest (optional ones marked), whether
/// or not the player would pick the optional ones.
pub fn manifest_contents(manifest: &AtlManifest) -> Vec<PackContentItem> {
let mut out = Vec::new();
for m in manifest.mods.iter().filter(|m| m.client && !m.name.trim().is_empty()) {
let Some(kind) = content_kind(m) else { continue };
let name = m.name.trim().to_string();
let mut item = PackContentItem::from_file(&m.file, kind);
item.name = name;
item.file_name = Some(m.file.trim().to_string()).filter(|f| !f.is_empty());
item.version = Some(m.version.trim().to_string()).filter(|v| !v.is_empty());
item.optional = m.optional;
item.description = Some(m.description.trim().to_string()).filter(|d| !d.is_empty());
// ATLauncher writes "Unknown" when it doesn't know
item.authors = m.authors.iter().map(|a| a.trim().to_string()).filter(|a| !a.is_empty() && !a.eq_ignore_ascii_case("unknown")).collect();
item.page_url = m.website.clone().filter(|u| u.starts_with("https://") || u.starts_with("http://"));
if let Some(id) = m.curse_id {
item.site = Some(ContentSite::Curseforge);
item.project_id = Some(id.to_string());
}
out.push(item);
}
sort_contents(&mut out);
out
}

#[cfg(test)]
mod tests {
use super::*;
use std::path::Path;

fn manifest(name: &str) -> AtlManifest {
let bytes = std::fs::read(Path::new(env!("CARGO_MANIFEST_DIR")).join("tests/fixtures").join(name)).unwrap();
serde_json::from_slice(&bytes).unwrap()
}

#[test]
fn lists_client_mods_with_their_projects() {
let items = manifest_contents(&manifest("manifest_pixelmon.json"));
assert!(!items.iter().any(|i| i.name == "Pixelmon Server"), "server-only");
let jei = items.iter().find(|i| i.name == "Just Enough Items (JEI)").unwrap();
assert_eq!(jei.site, Some(ContentSite::Curseforge));
assert_eq!(jei.project_id.as_deref(), Some("238222"));
assert_eq!(jei.kind, PackContentKind::Mod);
let pixelmon = items.iter().find(|i| i.name == "Pixelmon").unwrap();
assert_eq!(pixelmon.version.as_deref(), Some("9.4.2"));
assert_eq!(pixelmon.site, None);
assert_eq!(pixelmon.page_url.as_deref(), Some("https://www.pixelmonmod.com/"));
let raw = manifest("manifest_pixelmon.json");
let raw_jei = raw.mods.iter().find(|m| m.name == "Just Enough Items (JEI)").unwrap();
assert_eq!(jei.authors, raw_jei.authors.iter().filter(|a| *a != "Unknown").cloned().collect::<Vec<_>>());
assert_eq!(jei.description.as_deref(), Some(raw_jei.description.trim()).filter(|d| !d.is_empty()));
let ost = items.iter().find(|i| i.name == "The Pixelmon Mod OST").unwrap();
assert_eq!(ost.kind, PackContentKind::ResourcePack);
assert_eq!(items.last().unwrap().kind, PackContentKind::ResourcePack, "mods come first");
assert_eq!(items.len(), 14);
}

#[test]
fn marks_optional_mods() {
let m = manifest("manifest_optional.json");
let items = manifest_contents(&m);
let optional: Vec<&str> = items.iter().filter(|i| i.optional).map(|i| i.name.as_str()).collect();
let expected: Vec<&str> = m.mods.iter().filter(|x| x.client && x.optional && content_kind(x).is_some()).map(|x| x.name.as_str()).collect();
assert!(!optional.is_empty());
assert_eq!(optional.len(), expected.len());
assert!(items.iter().any(|i| i.name == "Base Mod" && !i.optional));
}

#[test]
fn reads_curse_ids_as_numbers_or_text() {
let m: AtlMod = serde_json::from_str(r#"{"name":"A","curse_id":"238222","curse_file_id":0}"#).unwrap();
assert_eq!(m.curse_id, Some(238222));
assert_eq!(m.curse_file_id, None);
let m: AtlMod = serde_json::from_str(r#"{"name":"A","curseForgeProjectId":12,"curse_file_id":null}"#).unwrap();
assert_eq!(m.curse_id, Some(12));
}
}
2 changes: 2 additions & 0 deletions crates/cubby-atlauncher/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
//! and its optional mods, and turn it into a [`PackPlan`](cubby_common::packs::PackPlan).

mod client;
mod contents;
mod index;
mod model;
mod modtypes;
Expand All @@ -10,6 +11,7 @@ mod plan;
#[cfg(test)]
mod plan_tests;

pub use contents::manifest_contents;
pub use client::{AtLauncherClient, AtlPlan, ATL_BASE};
pub use index::safe_name;
pub use model::{AtlLibrary, AtlManifest, AtlMod, LoaderMetadata, ManifestConfigs, ManifestLoader, ManifestMessages};
Expand Down
20 changes: 20 additions & 0 deletions crates/cubby-atlauncher/src/model.rs
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,26 @@ pub struct AtlMod {
/// Installed on the client. Like Prism, a missing flag means "no".
#[serde(default, deserialize_with = "nullable")]
pub client: bool,
/// The mod's web page.
#[serde(default)]
pub website: Option<String>,
#[serde(default, deserialize_with = "nullable")]
pub authors: Vec<String>,
/// The CurseForge project of the mod, when it comes from there.
#[serde(default, rename = "curse_id", alias = "curseForgeProjectId", deserialize_with = "lenient_id")]
pub curse_id: Option<u64>,
#[serde(default, rename = "curse_file_id", alias = "curseForgeFileId", deserialize_with = "lenient_id")]
pub curse_file_id: Option<u64>,
}

/// An id that may be a number, a string or null; 0 and anything unreadable read as `None`.
fn lenient_id<'de, D: Deserializer<'de>>(deserializer: D) -> Result<Option<u64>, D::Error> {
Ok(match Option::<serde_json::Value>::deserialize(deserializer)? {
Some(serde_json::Value::Number(n)) => n.as_u64(),
Some(serde_json::Value::String(s)) => s.trim().parse().ok(),
_ => None,
}
.filter(|id| *id != 0))
}

/// One entry of `libraries`.
Expand Down
18 changes: 18 additions & 0 deletions crates/cubby-atlauncher/tests/contents_live.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
//! Lists the contents of a real ATLauncher pack version. Needs network; run with `-- --ignored --nocapture`.

use cubby_atlauncher::{manifest_contents, AtLauncherClient};
use cubby_common::net::Http;

#[tokio::test]
#[ignore = "needs network"]
async fn lists_a_pack() {
let atl = AtLauncherClient::new(Http::new().unwrap());
let pack = atl.packs().await.unwrap().remove(0);
let version = atl.versions(&pack.id).await.unwrap().remove(0);
let items = manifest_contents(&atl.manifest(&pack.id, &version.id).await.unwrap());
println!("{} {}: {} items", pack.name, version.name, items.len());
for i in items.iter().take(10) {
println!(" {:?} {} {:?} {:?} {:?} optional={}", i.kind, i.name, i.version, i.project_id, i.page_url, i.optional);
}
assert!(!items.is_empty());
}
Loading
Loading