-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path2copyall.bat
88 lines (63 loc) · 1.85 KB
/
2copyall.bat
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
@echo off
echo This will copy all Bibledit files into a staging directory
echo Clearing staging directory
rmdir /S /Q C:\bibledit-windows
mkdir C:\bibledit-windows
if %errorlevel% neq 0 ( pause; exit /b %errorlevel% )
echo Copying Bibledit supporting data into staging directory
xcopy server\* C:\bibledit-windows /E /I /Y /Q /EXCLUDE:exclude.txt
if %errorlevel% neq 0 ( pause; exit /b %errorlevel% )
echo Getting processor architecture
set arch=%processor_architecture%
echo %arch%
if %arch%==AMD64 (
goto archready
)
if %arch%==ARM64 (
goto archready
)
echo Unsupported architecture %arch%
exit /b 1
:archready
echo Copying kernel binary into staging directory
if %arch%==AMD64 (
echo Copy x64
copy x64\Release\server.exe C:\bibledit-windows /Y
if %errorlevel% neq 0 ( pause; exit /b %errorlevel% )
)
if %arch%==ARM64 (
echo Copy arm64
copy ARM64\Release\server.exe C:\bibledit-windows /Y
if %errorlevel% neq 0 ( pause; exit /b %errorlevel% )
)
echo Copying GUI binaries into staging directory
if %arch%==AMD64 (
echo Copy x64
xcopy gui\bibledit\bin\Release\* C:\bibledit-windows /E /I /Y /Q
if %errorlevel% neq 0 ( pause; exit /b %errorlevel% )
)
if %arch%==ARM64 (
echo Copy arm64
xcopy gui\bibledit\bin\ARM64\Release\* C:\bibledit-windows /E /I /Y /Q
if %errorlevel% neq 0 ( pause; exit /b %errorlevel% )
)
echo Copying Microsoft WebView2 binaries
if %arch%==AMD64 (
echo Copy x64
)
if %arch%==ARM64 (
echo Copy arm64
pushd packages
pushd M*
xcopy runtimes\win-arm64\native\* C:\bibledit-windows /E /I /Y /Q
if %errorlevel% neq 0 ( pause; exit /b %errorlevel% )
popd
popd
)
echo Cleaning unwanted files from staging directory
if %arch%==AMD64 (
rmdir /S /Q C:\bibledit-windows\Debug
rmdir /S /Q C:\bibledit-windows\x64
)
echo If the script gets here, all went well
pause