This commit is contained in:
CanbiZ 2025-08-28 09:45:56 +02:00
commit 203242dd32
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"
msg_info "Updating ${APP}"
cd "$INSTALL_DIR"
$STD source "$VIRTUAL_ENV"/bin/activate
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
if [[ ! -d "$VIRTUAL_ENV" ]]; then
$STD uv venv "$VIRTUAL_ENV"
fi
$STD uv sync --all-extras --active
cd "$INSTALL_DIR"/koreader/plugins
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

View File

@ -82,11 +82,7 @@ sed 's/^/v/' ~/.autocaliweb >"$INSTALL_DIR"/ACW_RELEASE
cd "$INSTALL_DIR"
$STD uv venv "$VIRTUAL_ENV"
$STD source "$VIRTUAL_ENV"/bin/activate
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
$STD uv sync --all-extras --active
cat <<EOF >./dirs.json
{
"ingest_folder": "$INGEST_DIR",