Contributing to shipcrate
Thanks for helping! shipcrate is small on purpose: POSIX shell, no dependencies, and a security-first release flow. Please keep changes in that spirit.
Ways to help
- Report a bug or ask for a feature: open an issue.
Include your OS, the
shipcrate initflags you used and the failing output. - Security issue: use a private advisory. Never open a public issue for one.
- Pull request: fixes, new languages, new platforms, docs. For anything big, open an issue first so we can agree on the shape.
Set up
git clone https://github.com/simarpreetsingh-019/shipcrate && cd shipcrate
sh scripts/install-hooks.sh # pre-commit: quick gate · pre-push: full gate
sh scripts/check.sh # shell syntax, secret scan, workflow guardrails, init + shipped tests
Before pushing, also run the Linux CI job on your machine: sh tools/ci-local.sh (Docker). It catches GNU and
mawk differences a Mac-only check misses. Windows-only code paths still need CI.
The full gate needs ruby (YAML and Homebrew syntax). It also uses rustc, swiftc, node, python3 and pwsh
where they’re installed; checks for a missing tool are skipped locally, and CI runs them all on macOS, Linux and Windows.
Where things live
| Path | What |
|---|---|
bin/shipcrate |
The init command: questions, defaults per language and target, placeholder filling, safe copying |
templates/common/ |
Copied into every project (scripts, workflows, tests, SECURITY.md…) |
templates/app/, templates/cli/ |
Homebrew cask / formula, Windows installer |
templates/updaters/ |
Update-check code per language, plus their tests in updaters/tests/ |
skills/, .agents/, AGENTS.md, .cursor/ |
Instructions for AI agents (keep the two SKILL.md copies identical: the gate checks) |
tests/test-init.sh |
Generates every project type and runs the tests shipped into each one |
Templates use {{PLACEHOLDER}} names filled in by bin/shipcrate. A leftover placeholder fails the tests.
Rules for changes
- Tests come with the change. A new language, platform or updater feature needs a test in
tests/test-init.shand, if users get the code, a shipped test intemplates/common/tests/shipcrate/ortemplates/updaters/tests/. - Never weaken a guardrail (release-mode gate, release checks, workflow lint, checksum or host checks) without discussing it in an issue first.
- No new dependencies for
initor the scripts. POSIXsh; it must work in macOS/bin/sh, Linuxdashand Git Bash. - No telemetry, no secrets. The update check stays one anonymous GET. No tokens in any file.
- Keep docs in step: README,
docs/,SECURITY.md, the skill andCHANGELOG.md(under## [Unreleased]).
Adding a language (example)
bin/shipcrate: defaults in thecase "$KLANG"block (TARGETS,ASSET,BUILD_CMD,ARTIFACT,VERSION_CMD).templates/common/scripts/check.sh: build/test/lint/audit steps (in release mode, missing tools must fail).templates/common/scripts/ci-tools.sh: install those tools on CI.templates/updaters/<lang>/plus a test intemplates/updaters/tests/covering host, checksum, upgrade and rollback.- Add the combination to
tests/test-init.sh.
Pull requests
- One topic per PR, with a clear description of what changed and how you tested it.
sh scripts/check.shpasses locally and CI is green on all three OSes.- By contributing you agree your work is released under the MIT License.
Maintainer: Simarpreet Singh · @simarpreet_019