Skip to content

Installers with .dxf/.dwg associations, Intel Macs, Linux ARM64 and a designed DMG - #10

Merged
SkryxDev merged 3 commits into
mainfrom
packaging-installers
Nov 11, 2026
Merged

SkryxDev merged 3 commits into
mainfrom
packaging-installers

Conversation

@SkryxDev

@SkryxDev SkryxDev commented Nov 10, 2026 •

Copy link
Copy Markdown
Member

Prepares the Windows, macOS and Linux distribution with .dxf/.dwg file associations, for the next release. It also adds Intel Macs and 64-bit ARM Linux, and gives the DMG a window of its own. Not to be merged on its own: it goes in with the next release, because the README links to the MSI, the .debs, the Intel DMG and the ARM AppImage, which exist only from that release on.

What changes

Windows: an installer. The release used to ship only zips. It now also builds the MSI that packaging/windows/package.ps1 (WiX 5) already defined:

  • per-account install by default, or for everyone;
  • Start menu entry and an optional desktop shortcut;
  • statically linked C runtime;
  • major upgrades.

The file registration (draftcraft.wxs, in the install's own context) is now complete:

  • the DraftCraft.Drawing ProgId with a name and an icon;
  • OpenWithProgids for .dxf and .dwg;
  • Applications\draftcraft.exe\SupportedTypes;
  • Capabilities plus RegisteredApplications.

DraftCraft therefore shows up in Open with and in Settings › Apps › Default apps, without taking over the extensions by itself. install-policy.json lists the new values, and check-install-policy.ps1 checks them in every build. The zips stay, built from the same signed binaries, for the in-app updates of unzipped copies.

macOS: Apple silicon and Intel. The release builds two DMGs and two CLI zips. The Intel one is cross-compiled on the macOS 26 runner, which the Icon Composer icon needs, and the workflow checks with lipo that each app and CLI holds the right architecture. The Intel build doesn't run in CI.

macOS: the DMG window. The DMG opens on its own background: the logo, a blueprint grid, a card behind the app and one behind Applications, and a compass arc between them. It also sets the window size, the icon places and the volume icon. package.sh copies three committed files from packaging/macos/dmg/ and still builds with hdiutil makehybrid, so nothing is mounted. The files are background.png, background@2x.png (joined into a Retina TIFF) and DS_Store. make-layout.sh remakes them from background.swift, which renders with Inter (OFL; only the image is committed). Tried on a DMG built the same way, with the background, layout and volume icon all showing.

macOS: file types. Info.plist.in already declared .dxf/.dwg (CFBundleDocumentTypes, UTImportedTypeDeclarations, LSHandlerRank Alternate), so Finder lists DraftCraft under Open With. The workflow now passes the optional secrets (APPLE_CERTIFICATE, APPLE_CERTIFICATE_PASSWORD, APPLE_ID, APPLE_PASSWORD, APPLE_TEAM_ID) to import-cert.sh and package.sh. Signing with a Developer ID and notarization therefore start as soon as the secrets exist, with no workflow change. Without them the build is ad-hoc signed, as today.

Linux: x86_64 and aarch64. The aarch64 AppImage and .deb are built natively on GitHub's ubuntu-22.04-arm runner and installed and checked like the x86_64 ones.

Linux: a .deb next to the AppImage, from the existing package.sh and nfpm.yaml. It installs:

  • /usr/bin/draftcraft and draftcraft-cli;
  • the .desktop menu entry with MimeType=;
  • the hicolor icons;
  • the MIME types image/vnd.dxf and image/vnd.dwg;
  • metainfo, man pages and completions.

Its scripts refresh the desktop, MIME and icon caches. package.sh gains --target so it can reuse the binaries the workflow built with --target.

Workflows. The builds move from release.yml to packages.yml:

  • for a v* tag, release.yml calls it and publishes the files;
  • it also runs on PRs that touch packaging/ or the workflows, with the packages as the run's artifacts.

On the way it really installs the x64 MSI (per-user, /qn), checks the registry entries, runs draftcraft-cli, uninstalls, and checks that nothing is left. It does the same with the .deb: desktop-file-validate, icon, MIME, mimeinfo.cache, then removal. On macOS it checks the document types in the app's Info.plist.

In-app update. Each copy downloads the file for its own processor: draftcraft-macos-{arm64,x86_64}.dmg, draftcraft-windows-{x64,arm64}.zip or draftcraft-linux-{x86_64,aarch64}.AppImage. A Windows copy installed by the MSI (its exe is the one named in App Paths) no longer updates by unzipping over itself, which would have left the version Windows records out of date. It offers the release page, and the new MSI upgrades it. .deb copies already got the release page. Covered by the test an_installer_copy_is_known_by_the_exe_its_registration_names.

New release assets

  • draftcraft-windows-x64.msi and draftcraft-windows-arm64.msi;
  • draftcraft-macos-x86_64.dmg and draftcraft-cli-macos-x86_64.zip;
  • draftcraft-linux-aarch64.AppImage;
  • draftcraft-linux-x86_64.deb and draftcraft-linux-aarch64.deb.

The existing names are unchanged.

Limits and manual steps

  • macOS, opening from Finder: the app receives files through the command line, which is how Windows and Linux pass them. macOS sends them as an Apple event (application:openURLs:) instead, and winit handles that event in its own app delegate. On macOS, Open With therefore starts DraftCraft without loading the file. The fix belongs in the winit fork (storytold/winit), which can forward the event; it can't go here because of unsafe_code = "forbid".
  • No signing: without certificates, SmartScreen (Windows) and Gatekeeper (macOS) still show their warnings on first launch; the README explains them. Notarization needs an Apple Developer account and the secrets above.
  • Windows default app: Windows lets only the user choose it, from Open with › Always or Default apps.
  • Windows arm64: the arm64 MSI is built and its metadata checked, but it isn't installed in CI (no Windows ARM runner).
  • Intel Macs: the Intel app is built and its architecture checked, but it isn't run in CI.
  • DMG layout: the background is found by its path on a volume named DraftCraft, so the volume name must stay.

Checks

  • cargo xtask ci: green, except the 3 macOS-only tests documented in AGENTS.md.
  • packages.yml on this PR: see the checks below.

🤖 Generated with Claude Code

SkryxDev and others added 2 commits November 10, 2026 21:13
- Windows: the release now ships the WiX installer next to the zips. It
  registers DraftCraft for .dxf/.dwg (ProgId with name and icon,
  OpenWithProgids, SupportedTypes, Capabilities in RegisteredApplications),
  so it appears in Open with and Default apps.
- Linux: a .deb next to the AppImage, with the menu entry, icons and MIME
  types; package.sh gains --target to reuse the workflow's build.
- macOS: the workflow passes optional signing and notarization secrets, so
  a Developer ID takes effect without workflow changes.
- packages.yml builds every package. release.yml calls it for tags, and it
  runs on packaging PRs, where it installs and uninstalls the x64 MSI and
  the .deb and checks the registration.
- In-app update: a copy installed by the MSI gets the release page instead
  of unzipping over itself.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- macOS: an Intel DMG and CLI zip next to the Apple-silicon ones (cross-compiled on the
  macOS 26 runner); the in-app updater picks the file for its own processor.
- Linux: AppImage and .deb for aarch64, built on GitHub's ARM runner, installed and checked
  like the x86_64 ones.
- The DMG opens on its own background (logo, blueprint grid, cards behind the app and the
  Applications link, a compass arc between them), with the window size, icon places and
  volume icon set. package.sh copies committed files; make-layout.sh remakes them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@SkryxDev SkryxDev changed the title Installers with .dxf/.dwg associations: Windows MSI, Linux .deb, macOS Installers with .dxf/.dwg associations, Intel Macs, Linux ARM64 and a designed DMG Nov 10, 2026
WiX writes the Directory table's DefaultDir as "short|long" for a name that isn't 8.3, such as
DraftCraft, so the check rejected every MSI before it was signed. The error now names the values.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@withshalom
withshalom marked this pull request as draft November 11, 2026 17:21
@SkryxDev
SkryxDev marked this pull request as ready for review November 11, 2026 17:27
@SkryxDev
SkryxDev merged commit 78041e0 into main Nov 11, 2026
7 checks passed
@SkryxDev
SkryxDev deleted the packaging-installers branch November 11, 2026 17:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant