lib/motion/project/template/osx/builder.rb
def codesign(config, platform)
      app_bundle = config.app_bundle(platform)
      framework_versions = 'Frameworks/*.framework/Versions/*'
      Dir.glob(File.join(app_bundle, framework_versions)) do |version|
        unless version == File.basename('Current')
          codesign_bundle(config, version, true)
        end
      end

      codesign_bundle(config, config.app_bundle_raw(platform)) do
        build_dir = config.versionized_build_dir(platform)
        entitlements = File.join(build_dir, "Entitlements.plist")
        File.open(entitlements, 'w') { |io| io.write(config.entitlements_data) }
        entitlements
      end
    end
# First signs all frameworks (and the individual versions therein) that it
# finds in the `Frameworks` directory of the application bundle in the build
# directory and then signs the application bundle itself.
#
# @param [OSXConfig] config
#        The configuration for this build.
#
# @param [String] platform
#        The platform for which to build, which in this case should always
#        be `MacOSX`.
#
# @return [void]
#
# @todo Do we really need the platform parameter when it's always the same?
#
First signs all frameworks (and the individual versions therein) that it
finds in the `Frameworks` directory of the application bundle in the build
directory and then signs the application bundle itself.
First signs all frameworks ( and the individual versions therein ) that it finds in the ` Frameworks ` directory of the application bundle in the build directory and then signs the application bundle itself .
def codesign(config, platform)
      app_bundle = config.app_bundle(platform)
      framework_versions = 'Frameworks/*.framework/Versions/*'
      Dir.glob(File.join(app_bundle, framework_versions)) do |version|
        unless version == File.basename('Current')
          codesign_bundle(config, version, true)
        end
      end
      codesign_bundle(config, config.app_bundle_raw(platform)) do
        build_dir = config.versionized_build_dir(platform)
        entitlements = File.join(build_dir, "Entitlements.plist")
        File.open(entitlements, 'w') { |io| io.write(config.entitlements_data) }
        entitlements
      end
    end
def codesign ( config , platform ) app_bundle = config . app_bundle ( platform ) framework_versions = 'Frameworks/*.framework/Versions/*' Dir . glob ( File . join ( app_bundle , framework_versions ) ) do | version | unless version == File . basename ( 'Current' ) codesign_bundle ( config , version , true ) end end codesign_bundle ( config , config . app_bundle_raw ( platform ) ) do build_dir = config . versionized_build_dir ( platform ) entitlements = File . join ( build_dir , "Entitlements.plist" ) File . open ( entitlements , 'w' ) { | io | io . write ( config . entitlements_data ) } entitlements end end
First signs all frameworks (and the individual versions therein) that it
finds in the `Frameworks` directory of the application bundle in the build
directory and then signs the application bundle itself.
First signs all frameworks ( and the individual versions therein ) that it finds in the ` Frameworks ` directory of the application bundle in the build directory and then signs the application bundle itself .
None
void
config
platform
platform The platform for which to build, which in this case should always be `MacOSX`.
platform The platform for which to build which in this case should always be ` MacOSX ` .
todo
None