FilmCraft: An open-source, nonlinear video editor written by scratch in pure Rust
Windows packaging: Start Menu/Add-Remove icon, no console window, correct description
Brandon Thomas7fee797ee7ba
diff --git a/.github/workflows/packaging-lint.yml b/.github/workflows/packaging-lint.ymlindex 74ffd3335..23dd3354f 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/filmcraft.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/filmcraft.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.filmcraft.desktopsed -e 's/@VERSION@/0.0.0/' -e 's/@DATE@/2026-01-01/' packaging/linux/ai.storyteller.filmcraft.metainfo.xml.in >"$RUNNER_TEMP/ai.storyteller.filmcraft.metainfo.xml"appstreamcli validate --no-net --explain "$RUNNER_TEMP/ai.storyteller.filmcraft.metainfo.xml"diff --git a/apps/filmcraft/src/main.rs b/apps/filmcraft/src/main.rsindex 541a8275f..08cf62ae3 100644--- a/apps/filmcraft/src/main.rs+++ b/apps/filmcraft/src/main.rs@@ -14,7 +14,7 @@//! with unsaved changes the app asks to recover them; `--recover` recovers the newest without//! asking, `--no-recover` starts without asking (the changes stay available via File ▸ Recover//! Unsaved Changes…).-+#![cfg_attr(all(target_os = "windows", not(debug_assertions)), windows_subsystem = "windows")]#![cfg_attr(not(test), deny(clippy::unwrap_used, clippy::expect_used, clippy::panic, clippy::unimplemented, clippy::todo, clippy::unreachable))]mod app_nap;diff --git a/packaging/windows/filmcraft.wxs b/packaging/windows/filmcraft.wxsindex bcdaa18e4..c74666eee 100644--- a/packaging/windows/filmcraft.wxs+++ b/packaging/windows/filmcraft.wxs@@ -17,15 +17,15 @@Scope="perMachine"Compressed="yes"Language="1033">- <SummaryInformation Description="FilmCraft image editor" Manufacturer="Learning Machines LLC" />+ <SummaryInformation Description="FilmCraft video editor" 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 FilmCraft is already installed." /><MediaTemplate EmbedCab="yes" CompressionLevel="high" />- <Icon Id="FilmcraftIcon" SourceFile="$(var.IconPath)" />- <Property Id="ARPPRODUCTICON" Value="FilmcraftIcon" />+ <Icon Id="FilmcraftIcon.ico" SourceFile="$(var.IconPath)" />+ <Property Id="ARPPRODUCTICON" Value="FilmcraftIcon.ico" /><Property Id="ARPURLINFOABOUT" Value="https://getartcraft.com/apps/filmcraft" /><Property Id="ARPURLUPDATEINFO" Value="https://getartcraft.com/apps/filmcraft" /><Property Id="ARPHELPLINK" Value="https://discord.gg/artcraft" />@@ -45,8 +45,8 @@<Component Id="FilmcraftApp" Guid="15933017-925B-4963-8992-52000EB26AAA"><File Id="FilmcraftExe" Source="$(var.BinDir)\filmcraft.exe" KeyPath="yes"><Shortcut Id="StartMenuShortcut" Directory="ProgramMenuFolder" Name="FilmCraft"- Description="FilmCraft image editor" WorkingDirectory="INSTALLFOLDER" Advertise="yes"- Icon="FilmcraftIcon" IconIndex="0" />+ Description="FilmCraft video editor" WorkingDirectory="INSTALLFOLDER" Advertise="yes"+ Icon="FilmcraftIcon.ico" IconIndex="0" /></File><RegistryValue Root="HKLM" Key="Software\Microsoft\Windows\CurrentVersion\App Paths\filmcraft.exe" Value="[#FilmcraftExe]" Type="string" />