Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tgoyne committed Aug 27, 2023
1 parent fba0cde commit e08384a
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions scripts/create-release-package.rb
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,12 @@ def zip(name, *files)
</plist>
}
end
sh 'cp', '-Rc', "#{tmp}/#{xcode_14_version}/Release/Realm.xcframework", "#{package_dir}"
sh 'cp', '-Rc', "#{tmp}/#{xcode_14_version}/Static/Realm.xcframework", "#{package_dir}/static/Realm.xcframework"
sh 'cp', '-Rca', "#{tmp}/#{xcode_14_version}/Release/Realm.xcframework", "#{package_dir}"
FileUtils.mkdir_p "#{package_dir}/static"
sh 'cp', '-Rca', "#{tmp}/#{xcode_14_version}/Static/Realm.xcframework", "#{package_dir}/static"
for version in XCODE_VERSIONS
sh 'cp', '-Rc', "#{tmp}/#{version}/Release/RealmSwift.xcframework", "#{package_dir}/#{version}/RealmSwift.xcframework"
FileUtils.mkdir_p "#{package_dir}/#{version}"
sh 'cp', '-Rca', "#{tmp}/#{version}/Release/RealmSwift.xcframework", "#{package_dir}/#{version}"
end

Dir.chdir(tmp) do
Expand All @@ -117,8 +119,8 @@ def zip(name, *files)
puts 'Creating Carthage release zip'
Dir.mktmpdir do |tmp2|
Dir.chdir(tmp2) do
sh 'cp', '-Rc', "#{tmp}/#{xcode_14_version}/Release/Realm.xcframework", tmp2
sh 'cp', '-Rc', "#{tmp}/#{xcode_14_version}/Release/RealmSwift.xcframework", tmp2
sh 'cp', '-Rca', "#{tmp}/#{xcode_14_version}/Release/Realm.xcframework", tmp2
sh 'cp', '-Rca', "#{tmp}/#{xcode_14_version}/Release/RealmSwift.xcframework", tmp2
zip 'Carthage.xcframework.zip', 'Realm.xcframework', 'RealmSwift.xcframework'
end
end
Expand Down

0 comments on commit e08384a

Please sign in to comment.