Skip to content

Commit

Permalink
Windows uses version.build for sparkle:version
Browse files Browse the repository at this point in the history
WinSparkle uses the application executable ProductVersion setting to check for updates. This is the x.x.x.x format.
  • Loading branch information
trevordevore committed Jan 28, 2019
1 parent ca85812 commit 5c486a2
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -44,7 +44,7 @@ Sparkle and WinSparkle both use an `appcast.xml` file to detect updates. You nee
sparkle:os="windows"
sparkle:installerArguments="[[WIN_INSTALLER_ARGUMENTS]]"
url="https://www.your-company.com/download/your-app/1_0/[[BUILD_PROFILE]]/[[WINDOWS_INSTALLER_NAME]]%20[[VERSION]]-[[BUILD]].exe"
sparkle:version="[[BUILD]]"
sparkle:version="[[VERSION]].[[BUILD]]"
sparkle:shortVersionString="[[VERSION]]"
length="0"
type="application/octet-stream" />
@@ -126,7 +126,9 @@ The auto update helper also adds the `PreUpdateApplication` message that is disp

## Always increment `build`

When using this helper you must always increment `build` in the `app.yml` file. That is the value that is used to determine if a new update is available. Refer to the [Levure documentation on Version information](https://github.com/trevordevore/levure/wiki/packager#version-information) for more info.
When using this helper with an application that is deployed on macOS you must always increment `build` in the `app.yml` file. That is the value that is used to determine if a new update is available on macOS. Refer to the [Levure documentation on Version information](https://github.com/trevordevore/levure/wiki/packager#version-information) for more info.

On Windows the entire `version` + `build` string is checked (e.g. 1.0.1.52).

## Packaging your application

2 changes: 1 addition & 1 deletion appcast.xml
Original file line number Diff line number Diff line change
@@ -21,7 +21,7 @@
sparkle:os="windows"
sparkle:installerArguments="[[WIN_INSTALLER_ARGUMENTS]]"
url="https://www.your-company.com/download/your-app/1_0/[[BUILD_PROFILE]]/[[WINDOWS_INSTALLER_NAME]]%20[[VERSION]]-[[BUILD]].exe"
sparkle:version="[[BUILD]]"
sparkle:version="[[VERSION]].[[BUILD]]"
sparkle:shortVersionString="[[VERSION]]"
length="0"
type="application/octet-stream" />

0 comments on commit 5c486a2

Please sign in to comment.