From 029bc1da55e15b7d382124363696c2629c137362 Mon Sep 17 00:00:00 2001 From: James Turner Date: Mon, 13 Aug 2012 11:27:04 +0100 Subject: [PATCH] Mac: make code-signing identity an env variable. (So I don't have to hard-code my profile ID into git) --- package/mac/build-mac-nightly-dmg.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/package/mac/build-mac-nightly-dmg.rb b/package/mac/build-mac-nightly-dmg.rb index a694fa251..212c54cdb 100755 --- a/package/mac/build-mac-nightly-dmg.rb +++ b/package/mac/build-mac-nightly-dmg.rb @@ -15,6 +15,9 @@ osgVersion = runOsgVersion('version-number') $osgSoVersion=runOsgVersion('so-number') $openThreadsSoVersion=runOsgVersion('openthreads-soversion-number') +codeSignIdentity = ENV['FG_CODESIGN_IDENTITY'] +puts "Code signing identity is #{codeSignIdentity}" + puts "osgVersion=#{osgVersion}, so-number=#{$osgSoVersion}" $alutSourcePath='/Library/Frameworks/ALUT.framework' @@ -78,7 +81,7 @@ end def code_sign(path) puts "Signing #{path}" - `codesign -s "FlightGear" #{path}` + `codesign -s "#{codeSignIdentity}" #{path}` end fgVersion = File.read("#{srcDir}/version").strip