Skip to content

armgit / LEANN

Public Imported from GitHub
0

[MLsys2026 Best Paper]: https://arxiv.org/abs/2506.08276. RAG on Everything with LEANN. Enjoy 97% storage savings while running a fast, accurate, and 100% private RAG application on your personal device.

fix: make bump_version.sh work on both macOS and Linux

Andy Lee16142037866c
diff --git a/scripts/bump_version.sh b/scripts/bump_version.sh
index 0e831e9..20b7e56 100755
--- a/scripts/bump_version.sh
+++ b/scripts/bump_version.sh
@@ -8,6 +8,11 @@ fi
NEW_VERSION=$1
# Update all pyproject.toml files
-sed -i '' "s/version = \".*\"/version = \"$NEW_VERSION\"/" packages/*/pyproject.toml
+# Use different sed syntax for macOS vs Linux
+if [[ "$OSTYPE" == "darwin"* ]]; then
+ sed -i '' "s/version = \".*\"/version = \"$NEW_VERSION\"/" packages/*/pyproject.toml
+else
+ sed -i "s/version = \".*\"/version = \"$NEW_VERSION\"/" packages/*/pyproject.toml
+fi
echo "Version updated to $NEW_VERSION"
\ No newline at end of file