[workspace.package] version in the root Cargo.toml is the single source of the version. The app
shows it in About, draftcraft --version and draftcraft-cli --version.
cargo xtask version # prints it
cargo xtask version set 1.1.0 # changes it, and moves CHANGELOG.md's Unreleased notes under 1.1.0
cargo xtask ci # the quality checks
git commit -am "DraftCraft 1.1.0" && git push origin mainThe release notes are CHANGELOG.md: every change adds its line under ## Unreleased, and
version set moves them into the release's section (run it before tagging even when Cargo.toml
already has the version). The app carries the file and shows the new sections once, in its What's
New window, at the first start after an update. Read them over before tagging; the GitHub release
notes can start from the same section.
git tag -a v1.1.0 -m "DraftCraft 1.1.0"
git push origin v1.1.0Pushing a v* tag runs .github/workflows/release.yml, which
builds every package with packages.yml:
| Package | Contents |
|---|---|
draftcraft-macos-arm64.dmg |
DraftCraft.app (Apple silicon, with draftcraft-cli inside) |
draftcraft-macos-x86_64.dmg |
the same for Intel Macs (cross-compiled on the Apple-silicon runner) |
draftcraft-cli-macos-arm64.zip, draftcraft-cli-macos-x86_64.zip |
draftcraft-cli for macOS on its own |
draftcraft-windows-x64-setup.exe |
the setup (apps/draftcraft-setup, built by packaging/windows/package.ps1): the WiX 5 MSI inside one .exe; for this account or everyone, Start menu, optional desktop shortcut, .dxf/.dwg registration |
draftcraft-windows-arm64-setup.exe |
the same for Windows on ARM (cross-compiled) |
draftcraft-windows-x64.zip |
DraftCraft.exe, draftcraft-cli.exe, licences, to unzip anywhere |
draftcraft-windows-arm64.zip |
the same for Windows on ARM |
draftcraft-linux-x86_64.AppImage |
the app; … cli <args> runs draftcraft-cli (built by packaging/linux/appimage.sh) |
draftcraft-linux-aarch64.AppImage |
the same for 64-bit ARM (built on an ARM runner) |
draftcraft-linux-x86_64.deb, draftcraft-linux-aarch64.deb |
Debian/Ubuntu package (packaging/linux/package.sh, nfpm): /usr/bin, menu entry, icons, MIME types, man pages |
draftcraft-linux-x86_64.rpm, draftcraft-linux-aarch64.rpm |
the same for Fedora, openSUSE and RHEL |
draftcraft-linux-x86_64.pkg.tar.zst, draftcraft-linux-aarch64.pkg.tar.zst |
the same for Arch Linux, Manjaro and EndeavourOS (pacman -U) |
The names carry no version, so the README's releases/latest/download/<name> links always give the
newest. The same workflow runs on every pull request that changes packaging/ or the workflows; its
packages are then that run's artifacts, so a packaging change can be tried before a release. On the
way it installs the x64 setup (and runs it again as Update Now does) both .debs, both .rpms (in a Fedora container) and the x86_64 Arch package (in an Arch container) on the runners, checks the .dxf/.dwg registration, and
uninstalls them. The workflow creates the GitHub Release DraftCraft v<version> with them and SHA256SUMS.txt. The DMG is
made on a macOS 26 runner, whose Xcode compiles the app icon. The workflow can also be started by hand
(Actions › Release › Run workflow) for an existing tag.
From 2.0.2, Update Now in the app's update window downloads the new release and installs it
(crates/ui-egui/src/self_update.rs): DraftCraft.app from
draftcraft-macos-{arm64,x86_64}.dmg, a Windows folder from draftcraft-windows-{x64,arm64}.zip (whose
top folder is DraftCraft/), a copy the setup installed by running
draftcraft-windows-{x64,arm64}-setup.exe /passive once DraftCraft has quit, the AppImage from draftcraft-linux-{x86_64,aarch64}.AppImage, each for
the processor it runs on. Each file is checked
against SHA256SUMS.txt, and the DMG's app must have the bundle id dev.skryx.draftcraft and the
release's version. Keep those names, that folder and SHA256SUMS.txt, or installed copies can no
longer update themselves (they then offer the release page instead).
A copy installed by the MSI (its draftcraft.exe is the one named under App Paths) or by the
.deb offers the release page too: the new installer or package replaces it, keeping Windows'
and the package manager's record of the installed version right.
| System | How DraftCraft is registered |
|---|---|
| Windows (MSI) | DraftCraft.Drawing ProgId, OpenWithProgids of .dxf/.dwg, Applications\draftcraft.exe\SupportedTypes, and Capabilities in RegisteredApplications (packaging/windows/draftcraft.wxs), in the install's own context. It appears in Open with and in Settings › Apps › Default apps; Windows lets only the user make it the default. The zip registers nothing. |
| macOS | CFBundleDocumentTypes and UTImportedTypeDeclarations in packaging/macos/Info.plist.in, with LSHandlerRank Alternate: Finder lists it in Open With, and Get Info › Open with › Change All… makes it the default. |
Linux (.deb) |
MimeType= in dev.skryx.draftcraft.desktop and the image/vnd.dxf/image/vnd.dwg types in dev.skryx.draftcraft.mime.xml; the package's scripts refresh the desktop, MIME and icon caches. The AppImage registers nothing. |
The app opens the files it is given on its command line (draftcraft [files…]), which is how Windows
and Linux hand them over. macOS hands them over as an Apple event instead, which the app does not
handle yet, so on macOS a file opened from Finder starts DraftCraft without loading it.
The release doesn't need it, but the same script makes the DMG locally (Apple-silicon Mac with Xcode):
git clone https://github.com/storytold/craft-fonts.git ../craft-fonts # once
CRAFT_FONTS_DIR="$PWD/../craft-fonts" packaging/macos/package.sh --arch aarch64It writes dist/release/draftcraft-<version>-macos-aarch64.dmg and
draftcraft-cli-<version>-macos-aarch64.zip. --arch x86_64 builds the Intel package the release
ships, and --arch universal one app for both; both need rustup target add x86_64-apple-darwin.
The DMG opens as a window with its own background (logo, blueprint grid, a card behind the app and
one behind Applications, a compass arc between them). package.sh only copies three committed files
from packaging/macos/dmg/: background.png and background@2x.png (joined into the volume's
/.background/background.tiff) and DS_Store (window size, icon places, the background). After
changing the art (background.swift) or the layout, remake them on a Mac and commit them:
pip install ds_store==1.3.1 mac_alias==2.2.2 # or PYTHON=<a venv's python>
packaging/macos/dmg/make-layout.sh <folder with Inter-Medium.ttf and Inter-Regular.ttf>The background is found by its path on a volume named DraftCraft, so keep that volume name.
The builds are not signed with a paid certificate: macOS builds are signed ad hoc and Windows builds are not signed, so users see the warnings the README explains. Both are ready for certificates; adding these repository secrets is enough, no workflow change:
| Secret | Effect |
|---|---|
APPLE_CERTIFICATE (base64 Developer ID Application .p12), APPLE_CERTIFICATE_PASSWORD |
packaging/macos/import-cert.sh imports it, and package.sh signs the app, CLI and DMG with it (hardened runtime, entitlements.plist) |
APPLE_ID, APPLE_PASSWORD (app-specific password), APPLE_TEAM_ID |
with the certificate, package.sh notarizes and staples the app and the DMG |
WINDOWS_CERTIFICATE (base64 .pfx), WINDOWS_CERTIFICATE_PASSWORD |
packaging/windows/sign.ps1 signs the exes and the MSI |
Locally, package.sh reads MACOS_SIGN_IDENTITY, APPLE_ID, APPLE_PASSWORD and APPLE_TEAM_ID
(see the top of the script).
Edit them on GitHub or with gh release edit v1.1.0 --notes-file notes.md: what is new, what was fixed,
and the download table.