[OSX] add app.codesign_for_release (default to true) which controls if we need to code-sign for build:release

This commit is contained in:
Laurent Sansonetti
2013-12-09 15:19:15 +01:00
parent 3afa86d286
commit 1104fe01ed
2 changed files with 4 additions and 2 deletions

View File

@@ -44,7 +44,7 @@ namespace :build do
task :release do
App.config_without_setup.build_mode = :release
App.build('MacOSX')
App.codesign('MacOSX')
App.codesign('MacOSX') if App.config_without_setup.codesign_for_release
end
end

View File

@@ -30,7 +30,8 @@ module Motion; module Project;
register :osx
variable :icon, :copyright, :category, :embedded_frameworks,
:codesign_for_development, :eval_support
:codesign_for_development, :codesign_for_release,
:eval_support
def initialize(project_dir, build_mode)
super
@@ -40,6 +41,7 @@ module Motion; module Project;
@frameworks = ['AppKit', 'Foundation', 'CoreGraphics']
@embedded_frameworks = []
@codesign_for_development = false
@codesign_for_release = true
@eval_support = false
end