[libdwarf] remove embedded dSYM to ensure that copy dSYM into app

This commit is contained in:
Watson
2015-02-23 15:40:00 +09:00
parent ecc65d5578
commit 8dedfda2ae
2 changed files with 6 additions and 2 deletions

View File

@@ -486,7 +486,9 @@ EOS
sh "/usr/bin/dsymutil \"#{main_exec}\" -o \"#{dsym_path}\""
# TODO only in debug mode
copy_resource(dsym_path, app_resources_dir)
dest_path = File.join(app_resources_dir, File.basename(dsym_path))
FileUtils.rm_rf(dest_path)
copy_resource(dsym_path, dest_path)
end
# Strip all symbols. Only in distribution mode.

View File

@@ -504,7 +504,9 @@ EOS
sh "/usr/bin/dsymutil \"#{main_exec}\" -o \"#{dsym_path}\""
# TODO only in debug mode
copy_resource(dsym_path, app_resources_dir)
dest_path = File.join(app_resources_dir, File.basename(dsym_path))
FileUtils.rm_rf(dest_path)
copy_resource(dsym_path, dest_path)
end
# Strip all symbols. Only in distribution mode.