Always copy embedded.mobileprovision

The `embedded.mobileprovision` should always be copied over in the codesign step. Otherwise subsequent builds with a different provisioning profile will build an incorrect app bundle.
Example use case:
```
rake enterprise # Build an adhoc distribution
rake appstore # Build an appstore release
```
This commit is contained in:
Jan Brauer
2013-08-20 09:31:48 +02:00
parent 94bebac686
commit d98894eb11

View File

@@ -92,10 +92,8 @@ PLIST
# Copy the provisioning profile.
bundle_provision = File.join(bundle_path, "embedded.mobileprovision")
if !File.exist?(bundle_provision) or File.mtime(config.provisioning_profile) > File.mtime(bundle_provision)
App.info 'Create', bundle_provision
FileUtils.cp config.provisioning_profile, bundle_provision
end
App.info 'Create', bundle_provision
FileUtils.cp config.provisioning_profile, bundle_provision
# Codesign.
codesign_cmd = "CODESIGN_ALLOCATE=\"#{File.join(config.platform_dir(platform), 'Developer/usr/bin/codesign_allocate')}\" /usr/bin/codesign"