feat: portable Windows data layout and launcher package
Separate persistent user data from application code (data/work_tracker.db, data/uploads, data/storage) with idempotent legacy migration and SQLite integrity checks. Add offline packaging scripts for a Windows x11 x64 portable ZIP (embeddable Python, Start/Stop/Backup.bat). Fix launcher: no multiline python -c in BAT and no os.dup2 — uvicorn runs detached with wvt.log; health wait and busy-port diagnostics included.
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
from fastapi import APIRouter, Depends, HTTPException, Query, Request, Form, UploadFile, File
|
||||
from fastapi.responses import RedirectResponse, Response
|
||||
from sqlalchemy.orm import Session
|
||||
from app.config import import_uploads_dir
|
||||
from app.database import database
|
||||
from app.models import project
|
||||
from app.models import boq
|
||||
@@ -17,7 +18,7 @@ import secrets
|
||||
from pathlib import Path
|
||||
|
||||
router = APIRouter()
|
||||
IMPORT_UPLOAD_DIR = Path(__file__).resolve().parents[1] / "uploads" / "project_import"
|
||||
IMPORT_UPLOAD_DIR = import_uploads_dir()
|
||||
|
||||
|
||||
def _journal_entry_or_404(db: Session, project_id: int, entry_id: int):
|
||||
|
||||
Reference in New Issue
Block a user