Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

1.3 KB
Raw Blame
# Download vehicle for Ente's pinned custom ONNX Runtime iOS static-library
# XCFramework. CocoaPods downloads the release ZIP at `pod install` time,
# verifies its SHA-256, and caches it. Nothing is compiled or linked here:
# the ente_photos_frb pod's build phase points the Rust `ort` crate at the
# XCFramework's static archive for the active platform via ORT_LIB_PATH.
Pod::Spec.new do |s|
  s.name     = 'EnteOnnxRuntime'
  s.version  = '1.31.0-r1'
  s.summary  = "Ente's custom prebuilt ONNX Runtime static-library XCFramework for iOS."
  s.homepage = 'https://github.com/ente/ort-packaging'
  s.authors  = { 'Ente' => '[email protected]' }
  s.license  = { :type => 'MIT', :file => 'ONNXRUNTIME-LICENSE' }
  s.source   = {
    :http   => 'https://github.com/ente/ort-packaging/releases/download/ort-1.31.0-r1/onnxruntime-coreml-ios-1.31.0-r1.zip',
    :sha256 => '4e4b12ce37e4a5c971cc758c96446b067c8e25818384e85aeed6be15decd3b86',
  }

  s.platform = :ios, '15.1'

  # Keep the XCFramework as downloaded, but do not declare it as a vendored
  # framework. CocoaPods is only the download/checksum vehicle; the Rust build
  # consumes the selected .a slice directly and links it into its staticlib.
  s.preserve_paths = \
    'onnxruntime.xcframework/**/*',
    'ONNXRUNTIME-LICENSE',
    'ThirdPartyNotices.txt'
end