-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathBuildProjectWindows.bat
65 lines (57 loc) · 1.59 KB
/
BuildProjectWindows.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
@echo off
if exist "C:\Program Files (x86)\Intel\oneAPI\setvars.bat" ^
call "C:\Program Files (x86)\Intel\oneAPI\setvars.bat"
if not exist GUI\Core mkdir GUI\Core
call ifort -openmp -fpp -F1000000000 src/fortran/main.f -o ./GUI/Core/FC-Taylor.exe ^
-O3 -QaxCOMMON-AVX512,CORE-AVX512,CORE-AVX2,AVX
if %ERRORLEVEL% neq 0 (
if exist main.obj del main.obj
echo.
echo Could not compile the Fortran source!
echo The program was therefore not built!
echo.
pause
exit
)
if exist main.obj del main.obj
if exist functions.mod del functions.mod
call python -m venv .env --clear --upgrade-deps
call ".env\Scripts\activate.bat"
pushd %~dp0\src\python\
call pip install -r requirements.txt
call pyinstaller --onefile --noconfirm --clean ^
--log-level=WARN ^
--distpath=../../GUI/Core ^
--name=FC-Taylor-Calibrate ^
--icon=../../GUI/assets/icons/win/icon.ico ^
fc-taylor-calibrate.py
if %ERRORLEVEL% neq 0 (
rmdir /s /q __pycache__
rmdir /s /q build
if exist FC-Taylor-Calibrate.spec del FC-Taylor-Calibrate.spec
popd
call deactivate
echo.
echo Could not build the Python calibration script!
echo The program was therefore not built!
echo.
pause
exit
)
rmdir /s /q __pycache__
rmdir /s /q build
if exist FC-Taylor-Calibrate.spec del FC-Taylor-Calibrate.spec
popd
call deactivate
copy docs\LICENSE.md GUI\LICENSE.md /y
pushd %~dp0\GUI\
call npm install
call npm run build-win64
call npm run setup-win64
popd
del GUI\LICENSE.md
echo.
echo The application was built!
echo See the GUIbinaries\ folder
echo.
pause