DesignCraft: An open-source page and layout design editor written by scratch in pure Rust
Windows packaging: Start Menu/Add-Remove icon, no console window, correct description
Brandon Thomas60de09f1bbf0
diff --git a/.github/workflows/packaging-lint.yml b/.github/workflows/packaging-lint.ymlindex 3fea4f43f..603764095 100644--- a/.github/workflows/packaging-lint.yml+++ b/.github/workflows/packaging-lint.yml@@ -47,6 +47,10 @@ jobs:- name: XML, desktop entry, AppStream, Flatpak manifestrun: |xmllint --noout packaging/windows/designcraft.wxs packaging/macos/*.plist* packaging/linux/*.xml*+ # Windows Installer needs Icon ids ending in .ico or .exe, or shortcuts show a blank icon.+ if grep -oE '<Icon Id="[^"]*"' packaging/windows/designcraft.wxs | grep -vE '\.(ico|exe)"$'; then+ echo "::error::Icon Id must end in .ico or .exe"; exit 1+ fidesktop-file-validate packaging/linux/ai.storyteller.designcraft.desktopsed -e 's/@VERSION@/0.0.0/' -e 's/@DATE@/2026-01-01/' packaging/linux/ai.storyteller.designcraft.metainfo.xml.in >"$RUNNER_TEMP/ai.storyteller.designcraft.metainfo.xml"appstreamcli validate --no-net --explain "$RUNNER_TEMP/ai.storyteller.designcraft.metainfo.xml"diff --git a/apps/designcraft/src/main.rs b/apps/designcraft/src/main.rsindex d0b9c2e23..2fb3a1fb9 100644--- a/apps/designcraft/src/main.rs+++ b/apps/designcraft/src/main.rs@@ -5,6 +5,7 @@//! `--control <port>` (or `DESIGNCRAFT_CONTROL_PORT`) starts a localhost JSON-lines control server://! `{"id":1,"method":"ui.inspect","params":{}}` → `{"id":1,"ok":true,"result":…}`.//! See `designcraft_ui_egui::control` for the methods.+#![cfg_attr(all(target_os = "windows", not(debug_assertions)), windows_subsystem = "windows")]#![deny(clippy::unwrap_used, clippy::expect_used, clippy::panic, clippy::unimplemented, clippy::todo, clippy::unreachable)]mod control_server;diff --git a/packaging/windows/designcraft.wxs b/packaging/windows/designcraft.wxsindex 12791af43..8e2de81a0 100644--- a/packaging/windows/designcraft.wxs+++ b/packaging/windows/designcraft.wxs@@ -17,15 +17,15 @@Scope="perMachine"Compressed="yes"Language="1033">- <SummaryInformation Description="DesignCraft image editor" Manufacturer="Learning Machines LLC" />+ <SummaryInformation Description="DesignCraft page layout and publishing" Manufacturer="Learning Machines LLC" /><!-- Same-version upgrades let successive pre-releases of one X.Y.Z replace each other(MSI versions are numeric, so 1.2.3-rc.1 and 1.2.3-rc.2 are both 1.2.3). --><MajorUpgrade AllowSameVersionUpgrades="yes"DowngradeErrorMessage="A newer version of DesignCraft is already installed." /><MediaTemplate EmbedCab="yes" CompressionLevel="high" />- <Icon Id="DesigncraftIcon" SourceFile="$(var.IconPath)" />- <Property Id="ARPPRODUCTICON" Value="DesigncraftIcon" />+ <Icon Id="DesigncraftIcon.ico" SourceFile="$(var.IconPath)" />+ <Property Id="ARPPRODUCTICON" Value="DesigncraftIcon.ico" /><Property Id="ARPURLINFOABOUT" Value="https://getartcraft.com/apps/designcraft" /><Property Id="ARPURLUPDATEINFO" Value="https://getartcraft.com/apps/designcraft" /><Property Id="ARPHELPLINK" Value="https://discord.gg/artcraft" />@@ -45,8 +45,8 @@<Component Id="DesigncraftApp" Guid="DE018EF3-EE87-4E36-9F76-0B7B060A195E"><File Id="DesigncraftExe" Source="$(var.BinDir)\designcraft.exe" KeyPath="yes"><Shortcut Id="StartMenuShortcut" Directory="ProgramMenuFolder" Name="DesignCraft"- Description="DesignCraft image editor" WorkingDirectory="INSTALLFOLDER" Advertise="yes"- Icon="DesigncraftIcon" IconIndex="0" />+ Description="DesignCraft page layout and publishing" WorkingDirectory="INSTALLFOLDER" Advertise="yes"+ Icon="DesigncraftIcon.ico" IconIndex="0" /></File><RegistryValue Root="HKLM" Key="Software\Microsoft\Windows\CurrentVersion\App Paths\designcraft.exe" Value="[#DesigncraftExe]" Type="string" />