VectorCraft: An open-source, vector art tool written by scratch in pure Rust
Windows packaging: Start Menu/Add-Remove icon, no console window, correct description
Brandon Thomas7bca89dd15fd
diff --git a/.github/workflows/packaging-lint.yml b/.github/workflows/packaging-lint.ymlindex addead6b4..23db4e93f 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/vectorcraft.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/vectorcraft.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.vectorcraft.desktopsed -e 's/@VERSION@/0.0.0/' -e 's/@DATE@/2026-01-01/' packaging/linux/ai.storyteller.vectorcraft.metainfo.xml.in >"$RUNNER_TEMP/ai.storyteller.vectorcraft.metainfo.xml"appstreamcli validate --no-net --explain "$RUNNER_TEMP/ai.storyteller.vectorcraft.metainfo.xml"diff --git a/apps/vectorcraft/src/main.rs b/apps/vectorcraft/src/main.rsindex e82e24163..21e533643 100644--- a/apps/vectorcraft/src/main.rs+++ b/apps/vectorcraft/src/main.rs@@ -5,6 +5,7 @@//! `--control <port>` (or `VECTORCRAFT_CONTROL_PORT`) starts a localhost JSON-lines control server://! `{"id":1,"method":"ui.inspect","params":{}}` → `{"id":1,"ok":true,"result":…}`.//! See `vectorcraft_ui_egui::control` for the methods.+#![cfg_attr(all(target_os = "windows", not(debug_assertions)), windows_subsystem = "windows")]mod clipboard;mod control_server;diff --git a/packaging/windows/vectorcraft.wxs b/packaging/windows/vectorcraft.wxsindex e6e5f77f1..c09ec79f1 100644--- a/packaging/windows/vectorcraft.wxs+++ b/packaging/windows/vectorcraft.wxs@@ -23,8 +23,8 @@DowngradeErrorMessage="A newer version of VectorCraft is already installed." /><MediaTemplate EmbedCab="yes" CompressionLevel="high" />- <Icon Id="VectorcraftIcon" SourceFile="$(var.IconPath)" />- <Property Id="ARPPRODUCTICON" Value="VectorcraftIcon" />+ <Icon Id="VectorcraftIcon.ico" SourceFile="$(var.IconPath)" />+ <Property Id="ARPPRODUCTICON" Value="VectorcraftIcon.ico" /><Property Id="ARPURLINFOABOUT" Value="https://getartcraft.com/apps/vectorcraft" /><Property Id="ARPURLUPDATEINFO" Value="https://getartcraft.com/apps/vectorcraft" /><Property Id="ARPHELPLINK" Value="https://discord.gg/artcraft" />@@ -45,7 +45,7 @@<File Id="VectorcraftExe" Source="$(var.BinDir)\vectorcraft.exe" KeyPath="yes"><Shortcut Id="StartMenuShortcut" Directory="ProgramMenuFolder" Name="VectorCraft"Description="VectorCraft vector illustration app" WorkingDirectory="INSTALLFOLDER" Advertise="yes"- Icon="VectorcraftIcon" IconIndex="0" />+ Icon="VectorcraftIcon.ico" IconIndex="0" /></File><RegistryValue Root="HKLM" Key="Software\Microsoft\Windows\CurrentVersion\App Paths\vectorcraft.exe" Value="[#VectorcraftExe]" Type="string" />