Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions lib/motion/project/builder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -487,6 +487,8 @@ def build(config, platform, opts)
end
end

embed_provisioning_profile(config, bundle_path)

# Optional support for #eval (OSX-only).
if config.respond_to?(:eval_support) and config.eval_support
repl_dylib_path = File.join(datadir, '..', 'librubymotion-repl.dylib')
Expand Down Expand Up @@ -554,6 +556,10 @@ def copy_resource(res_path, dest_path)
end
end

def embed_provisioning_profile(config, bundle)

end

def profile(config, platform, config_plist)
plist_path = File.join(config.versionized_build_dir(platform), 'pbxperfconfig.plist')
App.info('Create', plist_path)
Expand Down
8 changes: 8 additions & 0 deletions lib/motion/project/template/osx/builder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -104,5 +104,13 @@ def codesign_bundle(config, bundle)
sh(command)
end
end

def embed_provisioning_profile(config, bundle)
if config.provisioning_profile
bundle_provision = File.join(bundle, "embedded.provisionprofile")
App.info 'Copy', bundle_provision
FileUtils.cp config.provisioning_profile, bundle_provision
end
end
end
end; end
3 changes: 2 additions & 1 deletion lib/motion/project/template/osx/config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class OSXConfig < XcodeConfig
variable :icon, :copyright, :category,
:embedded_frameworks, :external_frameworks,
:codesign_for_development, :codesign_for_release,
:eval_support
:eval_support, :provisioning_profile

def initialize(project_dir, build_mode)
super
Expand All @@ -44,6 +44,7 @@ def initialize(project_dir, build_mode)
@codesign_for_development = false
@codesign_for_release = true
@eval_support = false
@provisioning_profile = nil
end

def platforms; ['MacOSX']; end
Expand Down