-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild_script
More file actions
38 lines (32 loc) · 818 Bytes
/
build_script
File metadata and controls
38 lines (32 loc) · 818 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
SHELL := /bin/bash
all: build-electron clean
echo "DONE!";
first:
mkdir -p .cache
venv:
python3 -m venv venv
. venv/bin/activate; \
cd CLI/; \
pip3 install -r requirements.txt; \
pip3 install -r dev-requirements.txt;
build-server: first
cd Server/; \
npm ci && \
npm run create-executable && \
mv CAV_server ../.cache/;
build-cli: venv build-server
. venv/bin/activate; \
cd ./CLI/cli/; \
pyinstaller -F --add-data '../../.cache/CAV_server:.' ./main.py -n LocalParty && \
mv dist/LocalParty ../../.cache/;
build-electron: build-cli
mkdir -p ./Electron/ElectronGUI/binaries/
yes | cp .cache/LocalParty ./Electron/ElectronGUI/binaries/
cd Electron/ElectronGUI/; \
npm ci; \
npm run make; \
mv out/ ../../dist/;
clean:
rm -rf .cache/ venv/
cd CLI/cli && \
rm -rf build/ LocalParty.spec;