diff --git a/Cargo.toml b/Cargo.toml index 4d05478..8f3eeff 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "stremio-core-swift" -version = "1.2.6" +version = "1.2.62" authors = ["Smart Code OOD"] edition = "2021" resolver = "2" diff --git a/Makefile b/Makefile index fe169a0..cf660bb 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,6 @@ LIBRARY_NAME := libstremio_core_swift FRAMEWORK_NAME := StremioCore +SWIFT_FILE := Package.swift .PHONY: all all: macos ios iossim tvossim tvos visionossim package @@ -30,9 +31,12 @@ iossim: tvossim: @cargo build -Z build-std --release --lib --target aarch64-apple-tvos-sim + @cargo build -Z build-std --release --lib --target x86_64-apple-tvos @$(RM) -rf target/universal/$(LIBRARY_NAME)-tvos-sim.a @mkdir -p target/universal/ - @cp target/aarch64-apple-tvos-sim/release/$(LIBRARY_NAME).a target/universal/$(LIBRARY_NAME)-tvos-sim.a + @lipo -create -output target/universal/$(LIBRARY_NAME)-tvos-sim.a \ + target/aarch64-apple-tvos-sim/release/$(LIBRARY_NAME).a \ + target/x86_64-apple-tvos/release/$(LIBRARY_NAME).a tvos: @cargo build -Z build-std --release --lib --target aarch64-apple-tvos @@ -61,3 +65,9 @@ framework: package: framework @$(RM) -rf Sources/StremioCore/stremio @cbindgen --config Support/cbindgen.toml -o Sources/Wrapper/include/wrapper.h + +manifest: + @echo "Updating URL and SHA256 in $(SWIFT_FILE)..." + @sed -i '' 's|let url = .*|let url = "$(url)";|' $(SWIFT_FILE) + @sed -i '' 's|let sha256 = .*|let sha256 = "$(sha256)";|' $(SWIFT_FILE) + @echo "Done." diff --git a/Package.swift b/Package.swift index 86171f5..393918c 100644 --- a/Package.swift +++ b/Package.swift @@ -1,7 +1,7 @@ // swift-tools-version: 5.9 // The swift-tools-version declares the minimum version of Swift required to build this package. -let sha256 = "c6212fd5e111080ffb4ea2e1501b0a09b2c5e780b3ff63de86ac8184a75674c5"; -let url = "https://github.com/Stremio/stremio-core-swift/releases/download/1.2.61/StremioCore.xcframework.zip"; +let sha256 = "8c5042a450587cfd54b8c83a48127e5ea5e58ee3d9f04d10276949e0880c6d72"; +let url = "https://github.com/Stremio/stremio-core-swift/releases/download/1.2.62/StremioCore.xcframework.zip"; import PackageDescription