Enable tray icon and fix build scripts
CI / lint (push) Successful in 25s
CI / security (push) Successful in 15s
CI / test (push) Successful in 30s
CI / build (push) Successful in 14s
CI / e2e (push) Failing after 25s
Desktop Build / build-windows (push) Has been cancelled
Desktop Build / build-linux (push) Has been cancelled
CI / lint (push) Successful in 25s
CI / security (push) Successful in 15s
CI / test (push) Successful in 30s
CI / build (push) Successful in 14s
CI / e2e (push) Failing after 25s
Desktop Build / build-windows (push) Has been cancelled
Desktop Build / build-linux (push) Has been cancelled
This commit is contained in:
@@ -24,11 +24,14 @@ curl -L -o python-embed.zip "https://www.python.org/ftp/python/3.11.9/python-3.1
|
||||
powershell Expand-Archive -Path python-embed.zip -DestinationPath python-embed\
|
||||
del python-embed.zip
|
||||
|
||||
REM Enable pip in embedded Python
|
||||
REM Enable pip and site-packages in embedded Python
|
||||
echo import site >> python-embed\python311._pth
|
||||
|
||||
REM Bootstrap pip (embed Python doesn't include it)
|
||||
python-embed\python.exe -m ensurepip --upgrade
|
||||
REM Download get-pip.py (embed Python doesn't include ensurepip)
|
||||
echo 📥 Downloading get-pip.py...
|
||||
curl -L -o get-pip.py "https://bootstrap.pypa.io/get-pip.py"
|
||||
python-embed\python.exe get-pip.py --no-cache-dir
|
||||
del get-pip.py
|
||||
|
||||
REM Install dependencies
|
||||
python-embed\python.exe -m pip install --no-cache-dir -r ..\backend\requirements.txt
|
||||
@@ -48,9 +51,14 @@ echo [4/5] Copying runtime to output dir...
|
||||
set "OUTDIR=target\x86_64-pc-windows-msvc\release"
|
||||
if exist "%OUTDIR%\python-embed" rmdir /s /q "%OUTDIR%\python-embed"
|
||||
if exist "%OUTDIR%\backend" rmdir /s /q "%OUTDIR%\backend"
|
||||
if exist "%OUTDIR%\frontend" rmdir /s /q "%OUTDIR%\frontend"
|
||||
xcopy /E /I /Q "python-embed" "%OUTDIR%\python-embed"
|
||||
xcopy /E /I /Q "..\backend" "%OUTDIR%\backend"
|
||||
echo ✅ Runtime copied
|
||||
xcopy /E /I /Q "..\frontend" "%OUTDIR%\frontend"
|
||||
|
||||
REM Add parent directory to Python path so 'import backend' works at runtime
|
||||
echo ..>> "%OUTDIR%\python-embed\python311._pth"
|
||||
echo ✅ Runtime + frontend copied + sys.path fixed
|
||||
|
||||
REM ── 5. Résultats ───────────────────────────────────────────────
|
||||
echo [5/5] Results:
|
||||
|
||||
Reference in New Issue
Block a user