docs(packaging): installing, the unit's claims, status, and the git decision; the Linux packages depend on git (P15 C1)
docs/install.md is three short sections for a person installing. docs/packaging.md records what the installed app is on each system, why NSIS and the macOS bundle are scripts of our own, how signing is wired with the owner's secrets, what was left out, and what bundling git would require (GPL-2.0, separate program, unmodified: notices, source offer), which stays the owner's decision. WB-pkg-1 to WB-pkg-8 are the product rules. The Linux packages, the AUR file and the rpm now depend on git, so the package manager fetches it and a Linux person never meets the missing-git words. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
1 parent
2c9aea0883
commit
27f9607434
11 files changed
+399
-13
No files matched your search
@@ -683,3 +683,27 @@ fn only_a_person_runs_the_workflow_that_publishes_the_repositories() {
|
||||
"it refuses a draft"
|
||||
);
|
||||
}
|
||||
|
||||
/// WB-pkg-4: on Linux git is a dependency of every package, so the package
|
||||
/// manager fetches it; nothing carries a git of its own.
|
||||
#[test]
|
||||
fn the_linux_packages_depend_on_git_and_none_carries_one() {
|
||||
let packager = read("deploy/packaging/packager.toml");
|
||||
assert_eq!(
|
||||
packager.matches("\"git\"").count(),
|
||||
2,
|
||||
"the deb and the pacman package depend on git"
|
||||
);
|
||||
assert!(read("crates/ledger-cli/Cargo.toml").contains("requires = { git = \"*\" }"));
|
||||
assert!(read("deploy/packaging/aur/PKGBUILD").contains("'git'"));
|
||||
for file in [
|
||||
"deploy/packaging/windows/wanderbooks.nsi",
|
||||
"deploy/packaging/macos/build-macos.sh",
|
||||
] {
|
||||
let text = read(file).to_lowercase();
|
||||
assert!(
|
||||
!text.contains("mingit") && !text.contains("git.exe"),
|
||||
"{file} bundles a git"
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user