You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
42 lines
1.2 KiB
42 lines
1.2 KiB
2 weeks ago
|
@echo off
|
||
|
chcp 65001 >nul
|
||
|
setlocal enabledelayedexpansion
|
||
|
|
||
|
echo Starting GoFaster development with stable configuration...
|
||
|
echo Setting environment variables...
|
||
|
|
||
|
set VUE_CLI_BABEL_TRANSPILE_MODULES=false
|
||
|
set VUE_CLI_MODERN_BUILD=false
|
||
|
set NODE_ENV=development
|
||
|
|
||
|
echo VUE_CLI_BABEL_TRANSPILE_MODULES: %VUE_CLI_BABEL_TRANSPILE_MODULES%
|
||
|
echo VUE_CLI_MODERN_BUILD: %VUE_CLI_MODERN_BUILD%
|
||
|
echo NODE_ENV: %NODE_ENV%
|
||
|
|
||
|
echo Building Vue application...
|
||
|
call vue-cli-service build --mode development
|
||
|
|
||
|
if %ERRORLEVEL% EQU 0 (
|
||
|
echo Vue build successful, starting Electron...
|
||
|
echo Starting with stable configuration...
|
||
|
electron . --disable-gpu --disable-software-rasterizer --disable-dev-shm-usage
|
||
|
) else (
|
||
|
echo Vue build failed!
|
||
|
echo Attempting to clean and rebuild...
|
||
|
|
||
|
echo Cleaning dist directory...
|
||
|
if exist dist rmdir /s /q dist
|
||
|
|
||
|
echo Rebuilding Vue application...
|
||
|
call vue-cli-service build --mode development
|
||
|
|
||
|
if %ERRORLEVEL% EQU 0 (
|
||
|
echo Rebuild successful, starting Electron...
|
||
|
electron . --disable-gpu --disable-software-rasterizer --disable-dev-shm-usage
|
||
|
) else (
|
||
|
echo Rebuild failed! Please check your code for errors.
|
||
|
pause
|
||
|
exit /b 1
|
||
|
)
|
||
|
)
|