feat: reso programma indipendente. fix: ora il filtro owner della pagina ticket a mio carico segue l'agente selezionato (l'asciamo stare che la funzione di selezione dell'agente non dovrebbe proprio esistere XD)
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
@echo off
|
||||
title Compilazione OTRS Turbo Executable (.exe)
|
||||
echo Compilazione di OTRS Turbo in corso...
|
||||
cd /d "%~dp0"
|
||||
|
||||
echo [1/3] Preparazione binding nativo SQLite per Node 18 (ABI 108)...
|
||||
pushd "node_modules\better-sqlite3"
|
||||
call npx prebuild-install --target=18.5.0 --runtime=node --platform=win32 --arch=x64 --force >nul 2>&1
|
||||
popd
|
||||
|
||||
echo [2/3] Creazione eseguibile otrs-turbo.exe...
|
||||
call npm run build:exe
|
||||
|
||||
echo [3/3] Copia asset e file distribuzionali in dist...
|
||||
if exist "node_modules\better-sqlite3\build\Release\better_sqlite3.node" (
|
||||
copy "node_modules\better-sqlite3\build\Release\better_sqlite3.node" "dist\better_sqlite3.node" /Y >nul
|
||||
)
|
||||
|
||||
if not exist "dist\.env" (
|
||||
if exist ".env.example" (
|
||||
copy ".env.example" "dist\.env" /Y >nul
|
||||
)
|
||||
)
|
||||
|
||||
echo.
|
||||
echo ========================================================
|
||||
echo Operazione completata con successo!
|
||||
echo Cartella distribuzionale 'dist' pronta per l'uso:
|
||||
echo - dist\otrs-turbo.exe
|
||||
echo - dist\better_sqlite3.node
|
||||
echo - dist\.env
|
||||
echo - dist\avvia.bat
|
||||
echo ========================================================
|
||||
pause
|
||||
Reference in New Issue
Block a user