Skip to content

Commit

Permalink
fix pod arch path
Browse files Browse the repository at this point in the history
  • Loading branch information
rachguo authored and rachguo committed Dec 14, 2023
1 parent ba0237e commit 26472d0
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .pipelines/ios_packaging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,12 @@ jobs:
ls
ORT_C_LOCAL_POD_PATH=$(Build.ArtifactStagingDirectory)/onnxruntime-c.podspec \
ORT_OBJC_LOCAL_POD_PATH=$(Build.ArtifactStagingDirectory)/onnxruntime-objc.podspec \
C_LOCAL_POD_ARCHIVE_PATH=$(find . -name "pod-archive-onnxruntime-c*.zip")
OBJC_LOCAL_POD_ARCHIVE_PATH=$(find . -name "pod-archive-onnxruntime-objc*.zip")
sed -i "" -e "s|file:///http_source_placeholder|file:///${C_LOCAL_POD_ARCHIVE_PATH}|" "${ORT_C_LOCAL_POD_PATH}"
sed -i "" -e "s|file:///http_source_placeholder|file:///${OBJC_LOCAL_POD_ARCHIVE_PATH}|" "${ORT_OBJC_LOCAL_POD_PATH}"
C_LOCAL_POD_ARCHIVE_PATH=$(find -name "pod-archive-onnxruntime-c*.zip")
OBJC_LOCAL_POD_ARCHIVE_PATH=$(find -name "pod-archive-onnxruntime-objc*.zip")
C_LOCAL_POD_ARCHIVE_PATH_CLEANED=${C_LOCAL_POD_ARCHIVE_PATH#./}
OBJC_LOCAL_POD_ARCHIVE_PATH_CLEANED=${OBJC_LOCAL_POD_ARCHIVE_PATH#./}
sed -i "" -e "s|file:///http_source_placeholder|file:////${C_LOCAL_POD_ARCHIVE_PATH_CLEANED}|" "${ORT_C_LOCAL_POD_PATH}"
sed -i "" -e "s|file:///http_source_placeholder|file:////${OBJC_LOCAL_POD_ARCHIVE_PATH_CLEANED}|" "${ORT_OBJC_LOCAL_POD_PATH}"
displayName: "List downloaded artifacts and update podspec files"
workingDirectory: $(Build.ArtifactStagingDirectory)
Expand Down

0 comments on commit 26472d0

Please sign in to comment.