diff --git a/Package.swift b/Package.swift index cbb22ac..3c39a4d 100644 --- a/Package.swift +++ b/Package.swift @@ -11,7 +11,7 @@ var binaryTarget: Target = .binaryTarget( ) // CI will replace the nils with the actual values when building a release -let version: String = "" +let version: String = "0.1.4" let binaryURL: String = "https://github.com/Rallista/valhalla-mobile/releases/download/\(version)/valhalla-wrapper.xcframework.zip" let binaryChecksum: String = "55cc42fb0aa758f65e320155b1c612a2a830fe1d0fcbad62f0c040ec4c00705e" diff --git a/scripts/write_xcframework_spm.sh b/scripts/write_xcframework_spm.sh index 192b16e..00d792e 100755 --- a/scripts/write_xcframework_spm.sh +++ b/scripts/write_xcframework_spm.sh @@ -16,7 +16,7 @@ echo "Release URL: ${artifact_url}" # sed -i '' "s|^let useLocalBinary: Bool = .*|let useLocalBinary: Bool = false|" Package.swift # Replace `let version` line with the new binary url for the release artifact in Package.swift -sed -i '' "s|^let version: String = .*|let version: String = \"$version\"|" Package.swift +sed -i '' "s|^let version: String = .*|let version: String = \"$release_tag\"|" Package.swift # Replace let binaryChecksum: String? = nil with the new binary checksum for the release artifact in Package.swift sed -i '' "s|^let binaryChecksum: String = .*|let binaryChecksum: String = \"$xcframework_checksum\"|" Package.swift