Skip to content

Commit

Permalink
version: bump up version
Browse files Browse the repository at this point in the history
  • Loading branch information
AlvinHV committed Aug 24, 2024
1 parent 48c2761 commit 1e7d858
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
12 changes: 11 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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."
4 changes: 2 additions & 2 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -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

Expand Down

0 comments on commit 1e7d858

Please sign in to comment.