OM-234:CLONE - Add a zip to ProcessMaker with the files required to run cases in Mobile

fix mode
This commit is contained in:
Rodrigo Quelca
2016-02-04 15:04:23 -04:00
parent 56284d56a8
commit 8a11c90e51
2 changed files with 20 additions and 12 deletions

1
.gitignore vendored
View File

@@ -36,3 +36,4 @@ workflow/public_html/build-log.html
temp.txt
update.sh
workflow/public_html/translations/
build-prod.zip

View File

@@ -36,7 +36,6 @@ task :build => [:required] do
puts "Seems it is not a ProcessMaker installation"
exit(1)
end
if mode == "production"
targetDir = publicDir + "/lib"
pmUIFontsDir = targetDir + "/fonts"
@@ -58,6 +57,7 @@ task :build => [:required] do
buildPmUi(Dir.pwd + "/vendor/colosa/pmUI", targetDir, mode)
buildPmdynaform(Dir.pwd + "/vendor/colosa/pmDynaform", targetDir, mode)
buildPmdynaformZip(Dir.pwd + "/vendor/colosa/pmDynaform", publicDir)
buildMafe(Dir.pwd + "/vendor/colosa/MichelangeloFE", targetDir, mode)
@@ -210,6 +210,13 @@ def buildPmdynaform(homeDir, targetDir, mode)
puts "\nPmDynaform Build Finished!".magenta
end
def buildPmdynaformZip(homeDir, targetDir)
puts "\nBuilding Compress Zip library".green.bold
executeInto(homeDir, [ "mobile"])
copyFiles({homeDir + "/build-prod-zip/build-prod.zip" => targetDir + "/build-prod.zip"})
puts "\nPmDynaform Zip Build Finished!".magenta
end
def buildMafe(homeDir, targetDir, mode)
puts "\nBuilding PM Michelangelo FE".green.bold