Skip to content

Repository files navigation

slipcase-desktop

A desktop application for Slipcase containers.

A .slpc file is a ZIP archive holding a content file of any type together with a TOML flyleaf document describing it. The two become one file, so copying, moving, or sending the content file carries its flyleaf along.

Slipcase opens a container, shows what is in it, and hands the content file to whatever application the operating system has registered for it. It makes one too: New container… asks for a file and writes a container around it, which the flyleaf editor then fills in. It parses no containers itself: every read, every write, and every verdict comes from slpc.

The specification lives in excelano/slipcase and is the authority on the format. https://slipcaseformat.org publishes it as pages.

Build

cargo build --release

A Rust toolchain is all it needs. Nothing in the dependency tree compiles C.

Install

https://excelano.com/slipcase-desktop/ is the product page for every platform. What follows is the from-source route, which is what this repository is for.

From a clone, cargo build --release builds the binary on any platform with a Rust toolchain. It opens a container from the command line and does everything the packaged application does, but a double-click in a file manager does not reach it until the media type and the desktop integration are installed. On Linux:

../slipcase-common/install.sh
./packaging/linux/install.sh

slipcase-common registers application/vnd.excelano.slipcase+zip against *.slpc and ships the icon a container is drawn with, so a file manager knows what a container is; this application's own entry says what opens one. The type is a separate package because every Slipcase product needs it and only one of them can ship it — two packages cannot install the same path. packaging/debian/build-deb.sh builds the package the Excelano apt repository ships. packaging/README.md has the detail.

Languages

The window draws in German where the desktop asks for German, with English falling back wherever a sentence has none. DESIGN.md §10 is the mechanism and the places English still shows; po/ holds the catalogs and the commands that keep them current.

Testing

cargo test
cargo clippy --all-targets

The Slipcase conformance corpus is run as a command rather than as a test, because it needs a checkout of excelano/slipcase with its cases generated:

cargo run --example corpus -- /path/to/slipcase/conformance

It puts every fixture through this application's own reading of them: the verdict, whether a flyleaf tree and a content card are shown, extraction at the declared length, the pre-flight answer against what extraction then does, a full rewrite round trip with key order preserved, a rename, a content file replacement under two names, and every content file packed into a container of its own and read back.

Warning

Do NOT submit slipcase-desktop, or a copy of it under another name, to the Mac App Store. Apple's App Review Guideline 4.3 treats copies of other apps as spam, and a 4.3 finding can flag the developer account that submitted it, so that every app the account sends afterwards is flagged too. Build it for your own Mac and keep it there.

License

MIT. See LICENSE.

Releases

Packages

Used by

Contributors

Languages