cad-editor/src
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Hakan Seven a0800d95c9 feat(packaging): open files from argv, ship Windows MSI installer (#36)
Cross-platform prerequisite for OS-level file associations: the boot
task now consumes `std::env::args_os().nth(1)` as a path and dispatches
`Message::OpenRecent` for it. Flag-style args (starting with `-`) are
ignored, and `OpenRecent` already does the file-existence check, so a
bogus path lands as a clean command-line error instead of a panic.

Linux: the AppImage's desktop entry adds `image/vnd.dwg` alongside the
existing `image/vnd.dxf` MIME type and grows a `%f` placeholder in
`Exec=` so the launcher forwards the picked file path. Once the
AppImage is integrated with the system (xdg-mime / AppImageLauncher),
double-clicking a .dwg / .dxf opens it in Open CAD Studio.

Windows: new `packaging/windows/main.wxs` defines an MSI installer —
per-machine install to `Program Files\Open CAD Studio`, Start Menu
shortcut, `MajorUpgrade` so newer MSIs replace older ones, and a
single ProgID `OpenCADStudio.Drawing` that owns both `.dwg` and
`.dxf` and launches the exe with the file as `argv[1]`. The icon is
pulled from the SVG logo, converted to multi-resolution ICO at build
time with the runner's pre-installed ImageMagick. CI now also runs
`candle` / `light` (WiX Toolset 3, pre-installed on `windows-latest`)
and uploads both the bare `.exe` (portable) and `.msi` (installer)
to the release.

macOS Info.plist already declares the DWG / DXF UTIs; combined with
the argv-handling change above, double-clicking a drawing in Finder
will open it in Open CAD Studio without further packaging changes.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-29 23:34:14 +03:00
..
app feat(packaging): open files from argv, ship Windows MSI installer (#36) 2026-05-29 23:34:14 +03:00
command fix(dyn-input): correct Y coordinate, label by prompt type — #27 2026-05-27 13:41:54 +03:00
entities feat(select): Select Similar + Quick Select panel (#28) 2026-05-29 20:30:56 +03:00
io chore: rename H7CAD to Open CAD Studio 2026-05-23 17:16:15 +03:00
modules refactor(ui): remove the viewport navigation bar 2026-05-27 17:49:23 +03:00
scene feat(qselect): per-property filter with operator + value (#28) 2026-05-29 21:09:56 +03:00
shaders fix(shader): satisfy DX12/FXC X3507 in hatch fs_main (#31) 2026-05-29 21:16:21 +03:00
snap fix(snap): correct snap symbols + drop bogus midpoints on circles (#34) 2026-05-29 01:39:02 +03:00
ui refactor(grip): square-only marker set + oriented stretch handles 2026-05-29 02:07:34 +03:00
lib.rs feat: in-app update notice — checks GitHub releases on startup 2026-05-16 19:55:57 +03:00
linetypes.rs chore: rename H7CAD to Open CAD Studio 2026-05-23 17:16:15 +03:00
main.rs chore(release): drop flatpak, add macOS .dmg, hide Windows console 2026-05-20 21:13:02 +03:00
patterns.rs chore: rename H7CAD to Open CAD Studio 2026-05-23 17:16:15 +03:00
update_check.rs feat(update-check): suppress popup for releases under 30 min old 2026-05-29 15:29:00 +03:00