Repository navigation
Installers with .dxf/.dwg associations, Intel Macs, Linux ARM64 and a designed DMG - #10
Merged
Merged
Conversation
- 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>
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
marked this pull request as draft
November 11, 2026 17:21
SkryxDev
marked this pull request as ready for review
November 11, 2026 17:27
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Prepares the Windows, macOS and Linux distribution with
.dxf/.dwgfile 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:The file registration (
draftcraft.wxs, in the install's own context) is now complete:DraftCraft.DrawingProgId with a name and an icon;OpenWithProgidsfor.dxfand.dwg;Applications\draftcraft.exe\SupportedTypes;CapabilitiesplusRegisteredApplications.DraftCraft therefore shows up in Open with and in Settings › Apps › Default apps, without taking over the extensions by itself.
install-policy.jsonlists the new values, andcheck-install-policy.ps1checks 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
lipothat 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.shcopies three committed files frompackaging/macos/dmg/and still builds withhdiutil makehybrid, so nothing is mounted. The files arebackground.png,background@2x.png(joined into a Retina TIFF) andDS_Store.make-layout.shremakes them frombackground.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.inalready declared.dxf/.dwg(CFBundleDocumentTypes,UTImportedTypeDeclarations,LSHandlerRankAlternate), 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) toimport-cert.shandpackage.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
.debare built natively on GitHub'subuntu-22.04-armrunner and installed and checked like the x86_64 ones.Linux: a
.debnext to the AppImage, from the existingpackage.shandnfpm.yaml. It installs:/usr/bin/draftcraftanddraftcraft-cli;.desktopmenu entry withMimeType=;image/vnd.dxfandimage/vnd.dwg;Its scripts refresh the desktop, MIME and icon caches.
package.shgains--targetso it can reuse the binaries the workflow built with--target.Workflows. The builds move from
release.ymltopackages.yml:v*tag,release.ymlcalls it and publishes the files;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, runsdraftcraft-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}.zipordraftcraft-linux-{x86_64,aarch64}.AppImage. A Windows copy installed by the MSI (its exe is the one named inApp 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..debcopies already got the release page. Covered by the testan_installer_copy_is_known_by_the_exe_its_registration_names.New release assets
draftcraft-windows-x64.msianddraftcraft-windows-arm64.msi;draftcraft-macos-x86_64.dmganddraftcraft-cli-macos-x86_64.zip;draftcraft-linux-aarch64.AppImage;draftcraft-linux-x86_64.debanddraftcraft-linux-aarch64.deb.The existing names are unchanged.
Limits and manual steps
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 ofunsafe_code = "forbid".DraftCraft, so the volume name must stay.Checks
cargo xtask ci: green, except the 3 macOS-only tests documented in AGENTS.md.packages.ymlon this PR: see the checks below.🤖 Generated with Claude Code