Compare commits

...

27 Commits

Author SHA1 Message Date
James Turner
ec87228483 Fix Mac packaging. 2015-05-06 11:29:53 +01:00
James Turner
0014a3b728 Win & Mac package fixes. 2015-04-29 21:48:39 +01:00
James Turner
4bcce7bf6b Include Model/AI/Scenery files in base package 2015-04-29 21:43:40 +01:00
James Turner
93437a36db Enable launcher on Mac rlease builds explicitly. 2015-04-26 22:45:20 +01:00
James Turner
ce33b8e106 Set explicit revision to make Mac build happy. 2015-04-10 16:21:59 +01:00
James Turner
9abe776f11 Use grumble, not sphere, to stage aircraft files.
Aircraft for 3.4.1 package are at /home/jenkins/fgdata_340 now.
2015-04-10 15:21:31 +01:00
James Turner
3377e64dc8 Ooops, remove the dir too. 2015-04-08 13:25:49 +01:00
James Turner
d677cf542b Refresh gitmodules on the branch. 2015-04-08 09:13:03 +01:00
James Turner
8c442a6882 Bump heads. 2015-04-08 00:55:47 +01:00
James Turner
94608dca2e Work on packaging for 3.4.1 release 2015-04-08 00:20:59 +01:00
James Turner
3003c677de Base package assembly for 3.4.1 2015-04-06 16:20:02 +01:00
James Turner
6cb2539ef0 Add fgdata release branch on fgmeta. 2015-04-06 15:32:55 +01:00
James Turner
032e83f16a Manual Mac bump again. 2015-02-24 12:16:31 +00:00
James Turner
599783e630 Bump for Mac slave. 2015-02-23 17:16:05 +00:00
James Turner
66307024d2 Bump for Mac fixes. 2015-02-20 13:24:40 +00:00
James Turner
9995ecc702 Manual bump for Mac slave. 2015-02-18 10:07:48 +00:00
James Turner
9f357d48ef Bump FG. (Mac Jenkins slave being odd)
This kind of thing shouldn’t be needed anymore, but the Mac slave
keeps pulling the wrong branch tip. Making an explicit commit here to
see if that makes any difference.
2015-02-17 12:21:01 +00:00
James Turner
8c1ae25172 Fix Info.plist template 2015-02-16 13:56:08 +00:00
James Turner
5b8a136e70 Bump FG 2015-02-13 16:58:34 +00:00
James Turner
3e884c6930 V2 Code-signing on Mac. 2015-02-13 14:53:50 +00:00
Clément de l'Hamaide
a0f4935580 Windows installer: do not use previous App dir for new installation 2015-02-12 18:58:34 +01:00
Clément de l'Hamaide
eb52d011bd Back to rsync stuff for base package on Linux 2015-01-19 00:46:13 +01:00
Clément de l'Hamaide
f2eac53a90 Back to rsync stuff for base package on Mac 2015-01-19 00:44:15 +01:00
James Turner
8738690def Revised package script for Mac. 2015-01-18 23:03:58 +00:00
James Turner
84fdb24d6d Mac launcher is gone. 2015-01-18 22:56:14 +00:00
James Turner
b1ed584316 Remove references to SVN in Mac release. 2015-01-18 22:52:35 +00:00
Clément de l'Hamaide
d0d738dea1 Bump submodule revision 2015-01-18 18:29:35 +01:00
15 changed files with 111 additions and 119 deletions

4
.gitignore vendored
View File

@@ -20,3 +20,7 @@ CMakeFiles
archivebuild
osgbuild
CMakeCache.txt
aircraft-data
base_package
extended-data

20
.gitmodules vendored
View File

@@ -1,16 +1,16 @@
[submodule "simgear"]
path = simgear
url = git://gitorious.org/fg/simgear.git
branch = next
url = git://git.code.sf.net/p/flightgear/simgear
branch = release/3.4.0
[submodule "flightgear"]
path = flightgear
url = git://gitorious.org/fg/flightgear.git
branch = next
url = git://git.code.sf.net/p/flightgear/flightgear
branch = release/3.4.0
[submodule "fgrun"]
path = fgrun
url = git://gitorious.org/fg/fgrun.git
branch = next
[submodule "maclauncher"]
path = maclauncher
url = git://gitorious.org/fg/maclauncher.git
branch = master
url = git://git.code.sf.net/p/flightgear/fgrun
branch = release/3.4.0
[submodule "fgdata"]
path = fgdata
url = git://git.code.sf.net/p/flightgear/fgdata
branch = release/3.4.0

View File

@@ -43,6 +43,7 @@ AppPublisherURL=http://www.flightgear.org
AppSupportURL=http://www.flightgear.org
AppUpdatesURL=http://www.flightgear.org
DefaultDirName={pf}\FlightGear {#FGVersion}
UsePreviousAppDir=no
DefaultGroupName=FlightGear {#FGVersion}
LicenseFile=X:\flightgear\COPYING
Uninstallable=yes
@@ -122,6 +123,9 @@ Source: "X:\3rdParty\bin\oalinst.exe"; DestDir: "{app}\bin"; Flags: ignoreversio
Source: "X:\data\*.*"; DestDir: "{app}\data"; Flags: ignoreversion recursesubdirs skipifsourcedoesntexist
Source: "X:\fgdata\*.*"; DestDir: "{app}\data"; Flags: ignoreversion recursesubdirs skipifsourcedoesntexist
; work-around for 3.4.1: look for additional aircraft data
Source: "X:\extended-data\*.*"; DestDir: "{app}\data"; Flags: ignoreversion recursesubdirs skipifsourcedoesntexist
; 32 bits install
Source: "{#OSGInstallDir}\bin\osg{#OSGSoNumber}-osg.dll"; DestDir: "{app}\bin"; Check: not Is64BitInstallMode
Source: "{#OSGInstallDir}\bin\osg{#OSGSoNumber}-osgDB.dll"; DestDir: "{app}\bin"; Check: not Is64BitInstallMode

View File

@@ -13,7 +13,7 @@
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleExecutable</key>
<string>FlightGear</string>
<string>fgfs</string>
<key>CFBundleIdentifier</key>
<string>org.flightgear.FlightGear</string>
<key>CFBundleVersion</key>
@@ -21,13 +21,20 @@
<key>CFBundleShortVersionString</key>
<string><%= fgVersion %></string>
<key>LSMinimumSystemVersion</key>
<string>10.6.0</string>
<string>10.7.0</string>
<key>NSMainNibFile</key>
<string>MainMenu</string>
<key>NSPrincipalClass</key>
<string>NSApplication</string>
<key>NSHumanReadableCopyright</key>
<string>©1996-<%= fgCurrentYear%>, The FlightGear Project</string>
<!-- when launched via LaunchServices, run the launcher GUI -->
<key>LSEnvironment</key>
<dict>
<key>FG_LAUNCHER</key>
<string>1</string>
</dict>
</dict>
</plist>

21
aircraft.rules Normal file
View File

@@ -0,0 +1,21 @@
+ /Aircraft
+ /Aircraft/777
+ /Aircraft/777-200
+ /Aircraft/b1900d
+ /Aircraft/CitationX
+ /Aircraft/ZLT-NT
+ /Aircraft/dhc2
+ /Aircraft/Cub
+ /Aircraft/sopwithCamel
+ /Aircraft/f-14b
+ /Aircraft/ASK13
+ /Aircraft/bo105
+ /Aircraft/Dragonfly
+ /Aircraft/SenecaII
+ /Aircraft/A6M2
- /Aircraft/*
+ /Models
+ /Scenery
+ /AI
- /*

View File

@@ -2,29 +2,6 @@
- *.xcf
- *.tex
+ /fgdata/Aircraft/Generic
+ /fgdata/Aircraft/Instruments
+ /fgdata/Aircraft/Instruments-3d
+ /fgdata/Aircraft/c172p
+ /fgdata/Aircraft/777
+ /fgdata/Aircraft/777-200
+ /fgdata/Aircraft/b1900d
+ /fgdata/Aircraft/ufo
+ /fgdata/Aircraft/CitationX
+ /fgdata/Aircraft/ZLT-NT
+ /fgdata/Aircraft/dhc2
+ /fgdata/Aircraft/Cub
+ /fgdata/Aircraft/sopwithCamel
+ /fgdata/Aircraft/f-14b
+ /fgdata/Aircraft/ASK13
+ /fgdata/Aircraft/bo105
+ /fgdata/Aircraft/Dragonfly
+ /fgdata/Aircraft/SenecaII
+ /fgdata/Aircraft/A6M2
- /fgdata/Aircraft/*
- /fgdata/Textures/Unused
- /fgdata/Textures/*.orig
- /fgdata/Docs/source

1
fgdata Submodule

Submodule fgdata added at 90dcec50e2

2
fgrun

Submodule fgrun updated: b9ae69e336...9357de19f0

View File

@@ -55,3 +55,30 @@ make install
make package_source
cp flightgear-*.tar.bz2 ../output/.
#####################################################################################
echo "Assembling base package"
cd $WORKSPACE
rm -rf base_package
# a: archive mode
# z: compress
# delete: 'delete extraneous files from dest dirs'; avoid bug 1344
# filter: use the rules in our rules file
echo "Copying FGData files"
rsync -a --delete \
--filter 'merge base-package.rules' \
fgdata base_package
echo "Syncing extended data"
rsync -a --filter 'merge aircraft.rules' /home/jenkins/fgdata_340/ extended-data
echo "Copying extended data"
rsync -a extended-data/ base_package/fgdata
echo "Creating tar archive"
pushd base_package
tar cjf $WORKSPACE/output/FlightGear-$VERSION-data.tar.bz2 fgdata/
popd

View File

@@ -33,7 +33,7 @@ popd
################################################################################
echo "Starting on FlightGear"
pushd fgBuild
cmake -DCMAKE_INSTALL_PREFIX:PATH=$WORKSPACE/dist -G Xcode ../flightgear
cmake -DCMAKE_INSTALL_PREFIX:PATH=$WORKSPACE/dist -DENABLE_QT=1 -G Xcode ../flightgear
xcodebuild -configuration RelWithDebInfo -target install build
@@ -46,24 +46,6 @@ popd
chmod +x $WORKSPACE/dist/bin/osgversion
################################################################################
echo "Building Macflightgear launcher"
#OSX_TARGET="10.6"
# JMT - disabling setting the sysroot since it's breaking things on
# current build slave. Sinc ethe slave runs 10.6 natively, we don't
# actually need to set these. Real solution would be to use a proper
# build system for the Mac-launcher of course.
# -mmacosx-version-min=$OSX_TARGET -isysroot $SDK_PATH
pushd maclauncher/FlightGearOSX
# compile the stub executable
gcc -o FlightGear main.m \
-framework Cocoa -framework RubyCocoa -framework Foundation -framework AppKit
popd
################################################################################
# run the unlock script now - we need to do this right before code-signing,
# or the keychain may automatically re-lock after some period of time

View File

@@ -22,19 +22,15 @@ puts "Code signing identity is #{$codeSignIdentity}"
puts "osgVersion=#{osgVersion}, so-number=#{$osgSoVersion}"
$svnLibs = ['svn_client', 'svn_wc', 'svn_delta', 'svn_diff', 'svn_ra',
'svn_ra_local', 'svn_repos', 'svn_fs', 'svn_fs_fs', 'svn_fs_util',
'svn_ra_svn', 'svn_subr', 'svn_ra_neon']
def fix_install_names(object)
#puts "fixing install names for #{object}"
$osgLibs.each do |l|
oldName = "lib#{l}.#{$osgSoVersion}.dylib"
newName = "@executable_path/../Frameworks/#{oldName}"
`install_name_tool -change #{oldName} #{newName} #{object}`
end
oldName = "libOpenThreads.#{$openThreadsSoVersion}.dylib"
newName= "@executable_path/../Frameworks/#{oldName}"
`install_name_tool -change #{oldName} #{newName} #{object}`
@@ -44,40 +40,26 @@ $prefixDir=Dir.pwd + "/dist"
dmgDir=Dir.pwd + "/image"
srcDir=Dir.pwd + "/flightgear"
def fix_svn_install_names(object)
$svnLibs.each do |l|
fileName = "lib#{l}-1.0.dylib"
newName = "@executable_path/../Frameworks/#{fileName}"
`install_name_tool -change #{fileName} #{newName} #{object}`
end
end
def copy_svn_libs()
puts "Copying Subversion client libraries"
$svnLibs.each do |l|
libFile = "lib#{l}-1.0.dylib"
path = "#{$frameworksDir}/#{libFile}"
`cp #{$prefixDir}/lib/#{libFile} #{$frameworksDir}`
fix_svn_install_names(path)
# `install_name_tool -id #{libFile} #{path}`
end
end
def code_sign(path)
puts "Signing #{path}"
`codesign -s "#{$codeSignIdentity}" #{path}`
end
puts "Erasing previous image dir"
`rm -rf #{dmgDir}`
bundle=dmgDir + "/FlightGear.app"
# run macdeployt before we rename the bundle, otherwise it
# can't find the bundle executable
puts "Running macdeployqt on the bundle to copy Qt libraries"
`macdeployqt #{$prefixDir}/fgfs.app`
puts "Moving & renaming app bundle"
`mkdir -p #{dmgDir}`
`mv #{$prefixDir}/fgfs.app #{bundle}`
bundle=dmgDir + "/FlightGear.app"
contents=bundle + "/Contents"
macosDir=contents + "/MacOS"
$frameworksDir=contents +"/Frameworks"
resourcesDir=contents+"/Resources"
osgPluginsDir=contents+"/PlugIns/osgPlugins-#{osgVersion}"
osgPluginsDir=contents+"/PlugIns/osgPlugins"
# for writing copyright year to Info.plist
t = Time.new
@@ -94,18 +76,19 @@ puts "Creating directory structure"
`mkdir -p #{resourcesDir}`
`mkdir -p #{osgPluginsDir}`
puts "Copying binaries"
`cp #{$prefixDir}/fgfs.app/Contents/MacOS/fgfs #{macosDir}/fgfs`
bins = ['fgjs', 'fgcom', 'fgviewer']
# fix install names on the primary executable
fix_install_names("#{macosDir}/fgfs")
puts "Copying auxilliary binaries"
bins = ['fgjs', 'fgcom']
bins.each do |b|
if !File.exist?("#{$prefixDir}/bin/#{b}")
next
end
outPath = "#{macosDir}/#{b}"
`cp #{$prefixDir}/bin/#{b} #{outPath}`
fix_install_names(outPath)
fix_svn_install_names(outPath)
end
puts "copying libraries"
@@ -120,21 +103,11 @@ libFile = "libOpenThreads.#{$openThreadsSoVersion}.dylib"
`cp #{$prefixDir}/lib/#{libFile} #{$frameworksDir}`
$osgPlugins.each do |p|
pluginFile = "osgdb_#{p}.so"
`cp #{$prefixDir}/lib/osgPlugins-#{osgVersion}/#{pluginFile} #{osgPluginsDir}`
pluginFile = "osgdb_#{p}.dylib"
`cp #{$prefixDir}/lib/osgPlugins/#{pluginFile} #{osgPluginsDir}`
fix_install_names("#{osgPluginsDir}/#{pluginFile}")
end
copy_svn_libs()
# Macflightgear launcher
puts "Copying Macflightgear launcher files"
Dir.chdir "maclauncher/FlightGearOSX" do
`cp FlightGear #{macosDir}`
`rsync -a *.rb *.lproj *.sh *.tiff *.html #{resourcesDir}`
end
if File.exist?("#{$prefixDir}/bin/fgcom-data")
puts "Copying FGCom data files"
`ditto #{$prefixDir}/bin/fgcom-data #{resourcesDir}/fgcom-data`
@@ -156,16 +129,14 @@ File.open("#{contents}/Info.plist", 'w') { |f|
`mv fgdata/Docs/getstart.pdf "#{dmgDir}/Getting Started.pdf"`
puts "Copying base package files into the image"
`rsync -a fgdata/ #{resourcesDir}/data`
`rsync -a --filter 'merge base-package.rules' fgdata/ #{resourcesDir}/data`
# code sign all executables in MacOS dir. Do this last since reource
# changes will invalidate the signature!
Dir.foreach(macosDir) do |b|
if b == '.' or b == '..' then
next
end
code_sign("#{macosDir}/#{b}")
end
# work-around for 3.4.1: copy aircraft/scenery files too
`rsync -a extended-data/ #{resourcesDir}/data`
# code sign the entire bundle once complete - v2 code-signing
puts "Signing #{bundle}"
`codesign --deep -s "#{$codeSignIdentity}" #{bundle}`
puts "Creating DMG"

View File

@@ -29,10 +29,9 @@ ECHO #define OSGVersion "%OSG_VERSION%" >> InstallConfig.iss
ECHO #define OSGSoNumber "%OSG_SO_NUMBER%" >> InstallConfig.iss
ECHO #define OTSoNumber "%OT_SO_NUMBER%" >> InstallConfig.iss
set DATA_FILE=FlightGear-%FLIGHTGEAR_VERSION%-data
REM set DATA_FILE=FlightGear-%FLIGHTGEAR_VERSION%-data
REM extract the data files
7z e -aoa %DATA_FILE%.tar.bz2 && 7z x -aoa %DATA_FILE%.tar
REM 7z e -aoa %DATA_FILE%.tar.bz2 && 7z x -aoa %DATA_FILE%.tar
REM run Inno-setup!
REM use iscc instead of compil32 for better error reporting

Submodule maclauncher deleted from 45a598c7cc

Submodule simgear updated: e836e85697...63b439e9ac