Commit graph cad-editor/.github
Author SHA1 Message Date
Hakan Seven
dd26dfeef7 chore(release): label Windows artifacts portable / installer
Rename release uploads:
  OpenCADStudio-<tag>-windows-x86_64.exe → -portable.exe
  OpenCADStudio-<tag>-windows-x86_64.msi → -installer.msi

Makes the distinction obvious on the release page so users don't have
to guess which file is the standalone exe and which one runs setup.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-29 23:40:53 +03:00
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
Hakan Seven
89a01a8654 Revert "chore(github): add issue templates (bug / feature / question)"
This reverts commit 2e69d0a425.
2026-05-26 17:39:05 +03:00
Hakan Seven
2e69d0a425 chore(github): add issue templates (bug / feature / question)
YAML issue forms with required fields so new reports arrive with the
context needed to act on them (version, OS, reproduction steps for
bugs; problem-before-solution for features). Auto-applies the matching
label.

blank_issues_enabled: false forces use of one of the three templates.
config.yml also surfaces the Patreon link as a contact option.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-26 17:37:03 +03:00
Hakan Seven
ef1f9a08d6 chore: rename H7CAD to Open CAD Studio
Joining the OpenAEC Foundation (open-aec.com). Crate/struct become
OpenCADStudio, user-facing strings use the spaced "Open CAD Studio"
form, repo URLs point to HakanSeven12/open-cad-studio. Logo (window
icon + assets/logo.svg) redrawn with OCS initials. Drop examples/
binaries — unused.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-23 17:16:15 +03:00
Hakan Seven
aea113e687 chore(release): drop Intel macOS build; arm64 only
The macos-13 / x86_64-apple-darwin matrix entry was failing in the
v0.3.5 run and we don't plan to ship Intel macOS binaries. Collapse
the macOS job to a single arm64 build on macos-14 (Apple Silicon),
removing the matrix and threading the target literally through the
build / .app / .dmg steps. README updates to match.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-20 21:31:19 +03:00
Hakan Seven
9527509ea2 chore(release): drop flatpak, add macOS .dmg, hide Windows console
- .github/workflows/release.yml: remove the build-flatpak job; matrix-
  add macOS (arm64 + x86_64) that builds H7CAD.app by hand, renders
  .icns from assets/logo.svg via librsvg + iconutil, and packages a
  UDZO .dmg. AppImage path updated to packaging/H7CAD.desktop.
- packaging/H7CAD.desktop: moved out of flatpak/ so the AppImage job
  doesn't depend on a Flatpak layout.
- packaging/Info.plist: macOS bundle template; __VERSION__ swapped
  for the release tag at build time.
- flatpak/: deleted (manifests, metainfo, desktop, builder cache).
- src/main.rs: `#![cfg_attr(all(windows, not(debug_assertions)),
  windows_subsystem = "windows")]` so the Windows GUI binary no
  longer spawns a console window alongside it (debug builds keep
  the console for log output).
- README: add macOS install section, document Gatekeeper / SmartScreen
  on first launch since the binaries are unsigned.

Bump to 0.3.5.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-20 21:13:02 +03:00
Hakan Seven
465dcc1600 ci: include version, OS and arch in release asset filenames
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-24 10:13:11 +03:00
Hakan Seven
4506cff931 ci: remove one-time upload_tag workaround from release workflow
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-24 10:11:28 +03:00
Hakan Seven
135fef54c5 ci: support upload_tag input on workflow_dispatch
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-24 02:12:22 +03:00
Hakan Seven
0a88d063f9 ci: add AppImage build job to release workflow
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-24 01:57:40 +03:00
Hakan Seven
527cce8ff0 Rename workflow and job identifiers for clarity
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-31 01:18:29 +03:00
Hakan Seven
a8089f7c74 Rename flatpak-release.yml to release.yml 2026-03-22 18:36:48 +03:00
Hakan Seven
803f5a005c Add Windows build job to release workflow 2026-03-22 18:35:45 +03:00
Hakan Seven
ba587e99ec Use gh release upload instead of action for flatpak bundle 2026-03-22 18:16:11 +03:00
Hakan Seven
5a3b92831f Add contents:write permission to Flatpak release workflow 2026-03-22 17:54:38 +03:00
Hakan Seven
536ae5394c Add workflow_dispatch trigger to Flatpak release workflow 2026-03-22 17:38:24 +03:00
Hakan Seven
95d4a2d7c3 Add Flatpak release workflow and CI manifest 2026-03-22 17:31:06 +03:00
Hakan Seven
10c40f7ca0
Add Patreon username to FUNDING.yml
Added Patreon username for funding support.
2026-03-22 15:10:36 +03:00