-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
35 lines (27 loc) · 1.05 KB
/
Makefile
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
py = python3
# cc := ${py} -m nuitka --follow-imports --standalone --remove-output --plugin-enable=multiprocessing --plugin-enable=numpy --show-progress
cc := ${py} -m PyInstaller
pgg = dist/gui/pygame_gui
data := ${pgg}/data
pggdatacdn = https://raw.githubusercontent.com/MyreMylar/pygame_gui/main/pygame_gui/data
all: init build data
.PHONY: init build data test clean
init:
$(py) -m pip install PyInstaller==3.6 pytest==5.4.3
$(py) -m pip install -r requirements.txt
build:
$(cc) --onedir -y -w --noupx -i img/favicon.ico gui.spec
$(cc) --onefile --noupx installer.py
data:
rm -rf $(pgg)
mkdir $(pgg)
mkdir $(data)
curl -s -o $(data)/default_theme.json $(pggdatacdn)/default_theme.json
curl -s -o $(data)/FiraCode-Bold.ttf $(pggdatacdn)/FiraCode-Bold.ttf
curl -s -o $(data)/FiraCode-Regular.ttf $(pggdatacdn)/FiraCode-Regular.ttf
curl -s -o $(data)/FiraMono-BoldItalic.ttf $(pggdatacdn)/FiraMono-BoldItalic.ttf
curl -s -o $(data)/FiraMono-RegularItalic.ttf $(pggdatacdn)/FiraMono-RegularItalic.ttf
test:
$(py) -m pytest tests/
clean:
rm -rf dist/ build/