Project

General

Profile

Defect #63

build script - WiX project version is not set dynamically

Added by Deoren Moor about 6 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Build scripts
Target version:
Start date:
01/02/2011
Due date:
% Done:

100%

Affected Version:
devel
Resolution:
Fixed

Description

Instead of leaving it at 1.0.0.0, the version should be set dynamically by the build script. Also, instead of using 1.0.0.0, stick to Major.Minor.Revision (0.0.0) as the versioning scheme.


Subtasks

Defect #65: Update WiX project to use command-line variable for Product->Version attributeClosedDeoren Moor

Associated revisions

Revision 99 (diff)
Added by Deoren Moor about 6 years ago

[issues #63]
build script:

  • Setting WiX Product->Version attribute dynamically. If it's a dev build, set WiX project version to 0.0.SVNRevision. Otherwise, set WiX project version to release_version
  • Adding release_version to filename suffix.

History

#1 Updated by Deoren Moor about 6 years ago

Current plan:

If "dev" is found in release_version (within build script), have the build script set the value to 0.0.X where X is the svn revision number.

This should provide for a remove/replace upgrade/installation scheme.

#2 Updated by Deoren Moor about 6 years ago

So far I'm using this logic to get the version info to pass to the WiX build process:

if release_version[0:3] == "dev":
    msi_version = '0.0.' + str(release_version[9:])
else:
    msi_version = release_version

Testing builds will have dev-svn as the prefix, so that makes it easy to match on and the character count is fixed. This also makes getting the svn revision easy via a slice.

If this isn't a Testing build, then use the release_version as the msi_version.

#3 Updated by Deoren Moor about 6 years ago

  • Status changed from Assigned to Closed
  • Resolution set to Fixed

Implemented in r99.

Also available in: Atom PDF