-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathBuildProjectLinux.sh
More file actions
executable file
·42 lines (26 loc) · 879 Bytes
/
BuildProjectLinux.sh
File metadata and controls
executable file
·42 lines (26 loc) · 879 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
37
38
39
40
41
42
#!/bin/bash
mkdir -p "GUI/Core"
if test -f "/opt/intel/oneapi/setvars.sh"; then
source /opt/intel/oneapi/setvars.sh
ifort -qopenmp -qopenmp-link=static -fpp src/fortran/main.f -o ./GUI/Core/FC-Taylor.exe \
-O3 -axCOMMON-AVX512,CORE-AVX512,CORE-AVX2,AVX
else
gfortran -fopenmp -cpp src/fortran/main.f -o ./GUI/Core/FC-Taylor.exe -O3 -msse4.2 -mtune=intel
fi
rm -f functions.mod
python3 -m venv .env --clear
source ./.env/bin/activate
pushd "src/python"
python3 -m pip install -r requirements.txt
python3 -m PyInstaller --onefile --noconfirm --clean --log-level=WARN --distpath=../../GUI/Core --name=FC-Taylor-Calibrate.exe fc-taylor-calibrate.py
deactivate
rm -rf __pycache__
rm -rf build
rm -f FC-Taylor-Calibrate.exe.spec
popd
cp "docs/LICENSE.md" "GUI/LICENSE.md"
pushd "GUI"
npm install
npm run build-linux64
popd
rm -rf "GUI/LICENSE.md"