Script work.

master
DominikDeak 4 years ago
parent 45ae807115
commit b0ba553bf3
No known key found for this signature in database
GPG Key ID: 85514EC0CCE7007C
  1. 7
      Scripts/Detail/Config.py
  2. 9
      Scripts/build.py

@ -20,10 +20,10 @@ class Configuration():
platformVersion = "" platformVersion = ""
productName = "" productName = "Synergy"
productVersion = "unknown-version" productVersion = "unknown-version"
productStage = "snapshot" productStage = "snapshot"
productPackageName = "" productPackageName = "-".join( [ productName, productVersion, productStage ] ).lower()
productRepoPath = "" productRepoPath = ""
productBuildPath = "" productBuildPath = ""
productVersionPath = "" productVersionPath = ""
@ -110,12 +110,13 @@ class Configuration():
self.platformVersion = "-".join( platformInfo ) self.platformVersion = "-".join( platformInfo )
utility.printItem( "platformVersion: ", self.platformVersion ) utility.printItem( "platformVersion: ", self.platformVersion )
utility.printHeading( "Loading configuration..." )
def configureProductVersion( self ): def configureProductVersion( self ):
self.updateProductVersion() self.updateProductVersion()
utility.printHeading( "Loading configuration..." )
loadConfiguration( self, configPath ) loadConfiguration( self, configPath )
utility.printHeading( "Git configuration..." ) utility.printHeading( "Git configuration..." )

@ -19,9 +19,10 @@ def configureSubmodules():
utility.runCommand( "git submodule update --init --remote --recursive" ) utility.runCommand( "git submodule update --init --remote --recursive" )
statusAfter = utility.captureCommandOutput( "git submodule status" ) statusAfter = utility.captureCommandOutput( "git submodule status" )
print( statusAfter )
if statusBefore != statusAfter: if statusBefore != statusAfter:
print( statusAfter ) utility.printHeading( "Updating product version..." )
config.updateProductVersion() config.updateProductVersion()
def configureEnvironment(): def configureEnvironment():
@ -34,9 +35,11 @@ def configureEnvironment():
for name, value in variables.items(): for name, value in variables.items():
print( "\tSetting ${" + utility.style.bold + name + utility.style.none + "}" ) if value:
print( "\tSetting: ${" + utility.style.bold + name + utility.style.none + "}" )
os.environ[ name ] = value os.environ[ name ] = value
else:
print( "\tUnused: " + utility.style.error + name + utility.style.none )
def buildProducts(): def buildProducts():

Loading…
Cancel
Save