1
0
Fork 0

QML deployment for Mac release/nightlies

This commit is contained in:
James Turner 2017-12-23 17:01:54 +00:00
parent dddf9dcb83
commit ab34ede1ea

View file

@ -40,6 +40,7 @@ puts "Is-release? : ##{$isRelease}"
$prefixDir=Dir.pwd + "/dist" $prefixDir=Dir.pwd + "/dist"
dmgDir=Dir.pwd + "/image" dmgDir=Dir.pwd + "/image"
srcDir=Dir.pwd + "/flightgear" srcDir=Dir.pwd + "/flightgear"
qmlDir="#{srcDir}/src/GUI/qml"
puts "Erasing previous image dir" puts "Erasing previous image dir"
`rm -rf #{dmgDir}` `rm -rf #{dmgDir}`
@ -49,7 +50,7 @@ bundle=dmgDir + "/FlightGear.app"
# run macdeployt before we rename the bundle, otherwise it # run macdeployt before we rename the bundle, otherwise it
# can't find the bundle executable # can't find the bundle executable
puts "Running macdeployqt on the bundle to copy Qt libraries" puts "Running macdeployqt on the bundle to copy Qt libraries"
`macdeployqt #{$prefixDir}/fgfs.app` `macdeployqt -qmldir #{qmldir} #{$prefixDir}/fgfs.app`
puts "Moving & renaming app bundle" puts "Moving & renaming app bundle"
`mkdir -p #{dmgDir}` `mkdir -p #{dmgDir}`