Add CI/CD pipelines, NSIS installer, ES module bundling, and ruff linting
Lint & Test / test (push) Failing after 9s
Release / create-release (push) Successful in 1s
Release / build-windows (push) Successful in 59s

- Add Gitea Actions workflows: test.yml (lint + test on push/PR) and
  release.yml (build + NSIS installer + upload on v* tags)
- Add NSIS installer with optional desktop shortcut and auto-start
- Add esbuild bundler: ES module migration with IIFE bundle output
- Add build-dist-windows.sh for cross-building Windows distribution
- Fix all ruff lint errors (import sorting, unused imports, line length)
- Remove redundant scripts (start-server.bat, stop-server.bat,
  start-server-background.vbs)
- Update CLAUDE.md with CI/CD and release documentation
This commit is contained in:
2026-03-23 02:01:28 +03:00
parent be48318212
commit 5439af1955
41 changed files with 1702 additions and 310 deletions
+6 -9
View File
@@ -13,15 +13,12 @@ Usage:
import os
import sys
import socket
import logging
try:
import win32serviceutil
import win32service
import win32event
import servicemanager
import win32api
import win32event
import win32service
import win32serviceutil
WIN32_AVAILABLE = True
except ImportError:
@@ -64,8 +61,9 @@ class MediaServerService:
def main(self):
"""Main service loop."""
import uvicorn
from media_server.main import app
from media_server.config import settings
from media_server.main import app
config = uvicorn.Config(
app,
@@ -95,10 +93,9 @@ def install_service():
try:
# Get the path to the Python executable
python_exe = sys.executable
# Get the path to this module
module_path = os.path.abspath(__file__)
os.path.abspath(__file__)
win32serviceutil.InstallService(
MediaServerService._svc_name_,