fix: WinSparkle platform filtering and version display

This commit is contained in:
edde746
2026-02-24 17:42:41 +01:00
parent 8ed45e309c
commit 1eec3d280b
2 changed files with 8 additions and 6 deletions
+4 -4
View File
@@ -751,10 +751,10 @@ jobs:
<item>
<title>Version ${VERSION}</title>
<sparkle:version>${VERSION}</sparkle:version>
<sparkle:os>macos</sparkle:os>
<enclosure url="https://github.com/edde746/plezy/releases/download/${VERSION}/plezy-macos.dmg"
length="${MACOS_DMG_SIZE}" type="application/octet-stream"
sparkle:edSignature="${MACOS_ED_SIG}" />
sparkle:edSignature="${MACOS_ED_SIG}"
sparkle:os="macos" />
</item>
XMLEOF
fi
@@ -765,11 +765,11 @@ jobs:
<item>
<title>Version ${VERSION}</title>
<sparkle:version>${VERSION}</sparkle:version>
<sparkle:os>windows</sparkle:os>
<enclosure url="https://github.com/edde746/plezy/releases/download/${VERSION}/plezy-windows-installer.exe"
length="${WIN_INSTALLER_SIZE}" type="application/octet-stream"
sparkle:edSignature="${WIN_ED_SIG}"
sparkle:installerArguments="/SILENT /SP-" />
sparkle:installerArguments="/SILENT /SP-"
sparkle:os="windows" />
</item>
XMLEOF
fi
+4 -2
View File
@@ -66,8 +66,10 @@ IDI_APP_ICON ICON "resources\\app_icon.ico"
#define VERSION_AS_NUMBER 1,0,0,0
#endif
#if defined(FLUTTER_VERSION)
#define VERSION_AS_STRING FLUTTER_VERSION
#if defined(FLUTTER_VERSION_MAJOR) && defined(FLUTTER_VERSION_MINOR) && defined(FLUTTER_VERSION_PATCH)
#define STRINGIFY_(x) #x
#define STRINGIFY(x) STRINGIFY_(x)
#define VERSION_AS_STRING STRINGIFY(FLUTTER_VERSION_MAJOR) "." STRINGIFY(FLUTTER_VERSION_MINOR) "." STRINGIFY(FLUTTER_VERSION_PATCH)
#else
#define VERSION_AS_STRING "1.0.0"
#endif