OSX: add app.codesign_for_development Rakefile variable to enable codesign during development (normally only done in release builds)

This commit is contained in:
Laurent Sansonetti
2013-08-11 21:23:03 +02:00
parent be011b0ba6
commit fd6255ec0b
2 changed files with 5 additions and 2 deletions

View File

@@ -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

View File

@@ -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