Autocaliweb: use uv lock

- Broken until ACW is updated (issue with pyopenssl/cryptography)
This commit is contained in:
vhsdream 2025-08-27 14:01:16 -04:00
parent 73d2bab42a
commit 191d965503
2 changed files with 5 additions and 10 deletions

View File

@ -42,11 +42,10 @@ function update_script() {
fetch_and_deploy_gh_release "autocaliweb" "gelbphoenix/autocaliweb" "tarball" "latest" "/opt/autocaliweb" fetch_and_deploy_gh_release "autocaliweb" "gelbphoenix/autocaliweb" "tarball" "latest" "/opt/autocaliweb"
msg_info "Updating ${APP}" msg_info "Updating ${APP}"
cd "$INSTALL_DIR" cd "$INSTALL_DIR"
$STD source "$VIRTUAL_ENV"/bin/activate if [[ ! -d "$VIRTUAL_ENV" ]]; then
echo "pyopenssl>=24.2.1" >./constraint.txt $STD uv venv "$VIRTUAL_ENV"
$STD uv pip compile requirements.txt optional-requirements.txt -c constraint.txt -o combined-requirements.lock fi
$STD uv pip sync combined-requirements.lock $STD uv sync --all-extras --active
$STD deactivate
cd "$INSTALL_DIR"/koreader/plugins cd "$INSTALL_DIR"/koreader/plugins
PLUGIN_DIGEST="$(find acwsync.koplugin -type f -name "*.lua" -o -name "*.json" | sort | xargs sha256sum | sha256sum | cut -d' ' -f1)" PLUGIN_DIGEST="$(find acwsync.koplugin -type f -name "*.lua" -o -name "*.json" | sort | xargs sha256sum | sha256sum | cut -d' ' -f1)"
echo "Plugin files digest: $PLUGIN_DIGEST" >acwsync.koplugin/${PLUGIN_DIGEST}.digest echo "Plugin files digest: $PLUGIN_DIGEST" >acwsync.koplugin/${PLUGIN_DIGEST}.digest

View File

@ -82,11 +82,7 @@ sed 's/^/v/' ~/.autocaliweb >"$INSTALL_DIR"/ACW_RELEASE
cd "$INSTALL_DIR" cd "$INSTALL_DIR"
$STD uv venv "$VIRTUAL_ENV" $STD uv venv "$VIRTUAL_ENV"
$STD source "$VIRTUAL_ENV"/bin/activate $STD uv sync --all-extras --active
echo "pyopenssl>=24.2.1" >./constraint.txt
$STD uv pip compile requirements.txt optional-requirements.txt -c constraint.txt -o combined-requirements.lock
$STD uv pip sync combined-requirements.lock
$STD deactivate
cat <<EOF >./dirs.json cat <<EOF >./dirs.json
{ {
"ingest_folder": "$INGEST_DIR", "ingest_folder": "$INGEST_DIR",