flatnotes: follow upstream move to uv and Python 3.13

This commit is contained in:
MickLesk
2026-09-07 13:17:44 +02:00
parent 26f5922b1e
commit 820e8e8bef
2 changed files with 10 additions and 14 deletions

View File

@@ -38,19 +38,18 @@ function update_script() {
create_backup /opt/flatnotes/.env /opt/flatnotes/data
PYTHON_VERSION="3.13" setup_uv
NODE_VERSION="24" setup_nodejs
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "flatnotes" "dullage/flatnotes" "tarball"
restore_backup
msg_info "Updating Flatnotes"
cd /opt/flatnotes/client
$STD npm install
$STD npm run build
cd /opt/flatnotes
rm -f uv.lock
sed -i 's/^name = ""$/name = "flatnotes"/' pyproject.toml
$STD /usr/local/bin/uvx migrate-to-uv
$STD /usr/local/bin/uv sync
$STD uv sync --locked --no-dev
$STD npm ci
$STD npm run build
msg_ok "Updated Flatnotes"
msg_info "Starting Service"