mirror of
https://github.com/zhigang1992/RubyMotion.git
synced 2026-04-19 13:09:23 +08:00
OSX: add app.codesign_for_development Rakefile variable to enable codesign during development (normally only done in release builds)
This commit is contained in:
@@ -37,12 +37,14 @@ namespace :build do
|
||||
desc "Build the project for development"
|
||||
task :development do
|
||||
App.build('MacOSX')
|
||||
App.codesign('MacOSX') if App.config_without_setup.codesign_for_development
|
||||
end
|
||||
|
||||
desc "Build the project for release"
|
||||
task :release do
|
||||
App.config_without_setup.build_mode = :release
|
||||
App.build('MacOSX')
|
||||
App.codesign('MacOSX')
|
||||
end
|
||||
end
|
||||
|
||||
@@ -77,7 +79,6 @@ end
|
||||
|
||||
desc "Create a .pkg archive"
|
||||
task :archive => 'build:release' do
|
||||
App.codesign('MacOSX')
|
||||
App.archive
|
||||
end
|
||||
|
||||
|
||||
@@ -29,7 +29,8 @@ module Motion; module Project;
|
||||
class OSXConfig < XcodeConfig
|
||||
register :osx
|
||||
|
||||
variable :icon, :copyright, :category, :embedded_frameworks
|
||||
variable :icon, :copyright, :category, :embedded_frameworks,
|
||||
:codesign_for_development
|
||||
|
||||
def initialize(project_dir, build_mode)
|
||||
super
|
||||
@@ -38,6 +39,7 @@ module Motion; module Project;
|
||||
@category = 'utilities'
|
||||
@frameworks = ['AppKit', 'Foundation', 'CoreGraphics']
|
||||
@embedded_frameworks = []
|
||||
@codesign_for_development = false
|
||||
end
|
||||
|
||||
def platforms; ['MacOSX']; end
|
||||
|
||||
Reference in New Issue
Block a user