Support for release candidates in the version.json file; propagates up through the version string everywhere: filenames, ZIP, source code
This commit is contained in:
@@ -30,6 +30,7 @@ task :write_version_file do
|
||||
scope = OpenStruct.new(:major => version_hash["major"],
|
||||
:minor => version_hash["minor"],
|
||||
:build => version_hash["build"],
|
||||
:rc => version_hash["rc"],
|
||||
:revision => Time.now.to_i)
|
||||
|
||||
File.open('src/version.js', 'w+') do |f|
|
||||
|
||||
@@ -29,7 +29,9 @@ def console_specfiles
|
||||
end
|
||||
|
||||
def version_string
|
||||
"#{version_hash['major']}.#{version_hash['minor']}.#{version_hash['build']}"
|
||||
version = "#{version_hash['major']}.#{version_hash['minor']}.#{version_hash['build']}"
|
||||
version += ".rc#{version_hash['rc']}" if version_hash['rc']
|
||||
version
|
||||
end
|
||||
|
||||
def version_hash
|
||||
|
||||
Reference in New Issue
Block a user