1+ @ echo off
12rmdir /S /Q dist
23
3- cd bootstrap
4- call pnpm build
5- cd ..\server
6- call pnpm build
7- cd ..\frontend
8- call pnpm build
9- cd ..
4+ call pnpm build || exit /b
105
11- xcopy /I /E bootstrap\dist dist
12- copy bootstrap\scripts\*.* dist
6+ xcopy /I /E bootstrap\dist dist || exit /b
7+ copy bootstrap\scripts\*.* dist || exit /b
138
14- xcopy /I /E server\dist dist\fancontrol
15- copy server\native\windows\*.dll dist\fancontrol
9+ xcopy /I /E server\dist dist\fancontrol || exit /b
10+ copy server\native\windows\*.dll dist\fancontrol || exit /b
1611
17- xcopy /I /E frontend\build dist\fancontrol\frontend
12+ xcopy /I /E frontend\build dist\fancontrol\frontend || exit /b
1813
1914@ REM Remove excess versions of native dependencies
20- cd dist\fancontrol\native\win32
21- rmdir /S /Q arm64
22- rmdir /S /Q ia32
23- cd x64
24- move 22 ..\
25- for /d %%i in (*) do rd /s /q " %%i "
26- move ..\22 .
27- cd ..\..\..\..\..\
15+ cd dist\fancontrol\native\win32 || exit /b
16+ rmdir /S /Q arm64 || exit /b
17+ rmdir /S /Q ia32 || exit /b
18+ cd x64 || exit /b
19+ move 22 ..\ || exit /b
20+ for /d %%i in (*) do rd /s /q " %%i " || exit /b
21+ move ..\22 . || exit /b
22+ cd ..\..\..\..\..\ || exit /b
2823
2924@ REM Add default config and package.json
30- copy alfc.config.json dist
31- copy package.json dist
25+ copy alfc.config.json dist || exit /b
26+ copy package.json dist || exit /b
3227
33- cd dist
34- powershell Compress-Archive * alfc-without-node.zip
35- move alfc-without-node.zip ..\alfc-without-node.zip
36- curl -L --output node.exe https://nodejs.org/dist/v22.11.0/win-x64/node.exe
37- powershell Compress-Archive * alfc.zip
38- move ..\alfc-without-node.zip alfc-without-node.zip
28+ cd dist || exit /b
29+ powershell Compress-Archive * alfc-without-node.zip || exit /b
30+ move alfc-without-node.zip ..\alfc-without-node.zip || exit /b
31+ curl -L --output node.exe https://nodejs.org/dist/v22.11.0/win-x64/node.exe || exit /b
32+ powershell Compress-Archive * alfc.zip || exit /b
33+ move ..\alfc-without-node.zip alfc-without-node.zip || exit /b
3934
40- cd ..
35+ cd .. || exit /b
0 commit comments