QML deployment for Mac release/nightlies
This commit is contained in:
parent
dddf9dcb83
commit
ab34ede1ea
1 changed files with 2 additions and 1 deletions
|
@ -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}`
|
||||||
|
|
Loading…
Reference in a new issue