mirror of
https://github.com/zhigang1992/RubyMotion.git
synced 2026-04-22 11:46:10 +08:00
[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:
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user