mirror of
https://github.com/zhigang1992/RubyMotion.git
synced 2026-04-02 22:42:49 +08:00
Revert "make sure to create a Resources directory for mac"
This reverts commit 71ed8ce9b3.
This changing causes the following error:
% mkdir -p resources/en.lproj
% touch resources/en.lproj/InfoPlist.strings
% rake
Build ./build/iPhoneSimulator-6.1-Development
Compile ./app/app_delegate.rb
Create ./build/iPhoneSimulator-6.1-Development/tt.app
Link ./build/iPhoneSimulator-6.1-Development/tt.app/tt
Create ./build/iPhoneSimulator-6.1-Development/tt.app/Info.plist
Create ./build/iPhoneSimulator-6.1-Development/tt.app/PkgInfo
Copy ./resources/Default-568h@2x.png
Copy ./resources/en.lproj/InfoPlist.strings
rake aborted!
This commit is contained in:
@@ -348,7 +348,6 @@ EOS
|
||||
|
||||
# Copy resources, handle subdirectories.
|
||||
app_resources_dir = config.app_resources_dir(platform)
|
||||
FileUtils.mkdir_p(app_resources_dir)
|
||||
reserved_app_bundle_files = [
|
||||
'_CodeSignature/CodeResources', 'CodeResources', 'embedded.mobileprovision',
|
||||
'Info.plist', 'PkgInfo', 'ResourceRules.plist',
|
||||
@@ -370,6 +369,7 @@ EOS
|
||||
end
|
||||
dest_path = File.join(app_resources_dir, res)
|
||||
if !File.exist?(dest_path) or File.mtime(res_path) > File.mtime(dest_path)
|
||||
FileUtils.mkdir_p(File.dirname(dest_path))
|
||||
App.info 'Copy', res_path
|
||||
FileUtils.cp_r(res_path, dest_path)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user