Skip to content

Commit

Permalink
hotfix: told zip to store symlinks as required by Apple guide (#944)
Browse files Browse the repository at this point in the history
  • Loading branch information
radetsky authored Sep 9, 2022
1 parent ee7df68 commit 81f5713
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ let package = Package(
targets: [
.binaryTarget(name: "themis",
// update version in URL path
url: "https://github.com/cossacklabs/themis/releases/download/0.13.12/themis.xcframework.zip",
url: "https://github.com/cossacklabs/themis/releases/download/0.14.10/themis.xcframework.zip",
// The scripts/create_xcframework.sh calculates the checksum when generating the XCF.
// Alternatively, run from package directory:
// swift package compute-checksum build/xcf_output/themis.xcframework.zip
checksum: "c74f65d4918884220efe99c3195001fa8aabc8030ad85f8ef30d2bfed11065a3"),
checksum: "9f0f3407c6713962074e264cc1a6184c55304d87626df50117448eea55444b89"),

]
)
5 changes: 3 additions & 2 deletions scripts/create_xcframeworks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,13 @@ rm -rf $output_dir/macosx
# zip the xcodeframework
# SPM accepts binary targets only in zip format
cd $output_dir
zip -r themis.xcframework.zip themis.xcframework
# -y flag stores symlink instead of followed file
zip -r -y themis.xcframework.zip themis.xcframework

rm -rf themis.xcframework

# calculate checksum from the directory with Package.swift
# update the the checksum in Package.swift if that is a new release
cd $project_dir
echo "XCF Checksum:"
swift package compute-checksum $output_dir/themis.xcframework.zip
swift package compute-checksum $output_dir/themis.xcframework.zip

0 comments on commit 81f5713

Please sign in to comment.