forked from s-h-a-d-o-w/alfc
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.bat
More file actions
36 lines (28 loc) · 892 Bytes
/
Copy pathbuild.bat
File metadata and controls
36 lines (28 loc) · 892 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
rmdir /S /Q dist
cd bootstrap
call yarn build
cd ..\server
call yarn build
cd ..\frontend
call yarn build
cd ..
xcopy /I /E bootstrap\dist dist
copy bootstrap\scripts\*.* dist
xcopy /I /E server\dist dist\fancontrol
copy server\native\windows\*.dll dist\fancontrol
xcopy /I /E server\node_modules\edge-js\lib\native dist\fancontrol\native
xcopy /I /E frontend\build dist\fancontrol\frontend
@REM Remove 32 bit versions of native dependencies
cd dist\fancontrol\native\win32
rmdir /S /Q ia32
cd ..\..\..\..\
@REM Add default config and package.json
copy alfc.config.json dist
copy package.json dist
cd dist
powershell Compress-Archive * alfc-without-node.zip
move alfc-without-node.zip ..\alfc-without-node.zip
curl --output node.exe https://nodejs.org/dist/latest-v14.x/win-x64/node.exe
powershell Compress-Archive * alfc.zip
move ..\alfc-without-node.zip alfc-without-node.zip
cd ..