This commit is contained in:
dingfeng.wong
2025-07-22 01:17:49 +08:00
commit 5f0d1d63de
12 changed files with 7165 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
#!/usr/bin/env bash
PROJECT_PATH="${1:-/Users/wongdingfeng/.config/tooling}"
OFFLINE_PACKAGES_DIR="$PROJECT_PATH/offline_packages"
source "$PROJECT_PATH/.venv/bin/activate"
"$PROJECT_PATH/.venv/bin/pip" download -r "$PROJECT_PATH/requirements.txt" --dest "$OFFLINE_PACKAGES_DIR"
uv build --wheel
cp "$PROJECT_PATH/dist/"*.whl "$OFFLINE_PACKAGES_DIR/install.whl"
cat << EOF > "$OFFLINE_PACKAGES_DIR/install.sh"
pip install --no-index --find-links=./ install.whl
EOF