瀏覽代碼

codesign take 3

Josh Engebretson 10 年之前
父節點
當前提交
135b8ed75b
共有 1 個文件被更改,包括 5 次插入1 次删除
  1. 5 1
      Rakefile

+ 5 - 1
Rakefile

@@ -78,7 +78,11 @@ namespace :build  do
 
 
       Dir.chdir(CMAKE_IOS_BUILD_FOLDER) do
       Dir.chdir(CMAKE_IOS_BUILD_FOLDER) do
         sh "#{JSBIND_BIN_MACOSX} #{$RAKE_ROOT} IOS"
         sh "#{JSBIND_BIN_MACOSX} #{$RAKE_ROOT} IOS"
-        sh "cmake -DIOS=1 -DCMAKE_BUILD_TYPE=Release -G Xcode ../../"        
+        sh "cmake -DIOS=1 -DCMAKE_BUILD_TYPE=Release -G Xcode ../../"
+        sh "KEYCHAIN=/Users/jenkins/Library/Keychains/codesign.keychain"
+        # the -s option adds $KEYCHAIN to the search scope, while the -d option adds $KEYCHAIN to the system domain; both are needed
+        sh "security -v list-keychains -d system -s $KEYCHAIN"
+        sh "security -v unlock-keychain -p codesign $KEYCHAIN"
         sh "xcodebuild -configuration Release"
         sh "xcodebuild -configuration Release"
       end
       end