Skip to content

CWBudde/cordova-svn-revision-build-number

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cordova-svn-revision-build-number

Retrieve the build number from SVN revision

Install

Install the following package below inside of your cordova app's root folder.

$ npm install cordova-svn-revision-build-number

A scripts/ folder will be created with the 'UpdateBuildNumber.js' file in it.

Then add the following to your app's config.xml file:

<hook src="scripts/UpdateBuildNumber.js" type="after_build"/>

Script is designed to set the android-versionCode, ios-CFBundleVersion, osx-CFBundleVersion and windows-packageVersion fields in the config.xml file to the revision number of the SVN repository.

References

This library was inspired and influenced by the cordova-build-increment library.