Repository navigation
Expand file tree
/
Copy pathMakefile
More file actions
61 lines (51 loc) · 1.42 KB
/
Copy pathMakefile
File metadata and controls
61 lines (51 loc) · 1.42 KB
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
# =========================
# Educational Ransomware Simulator - Build System
# =========================
PYTHON=python3
PIP=pip
APP=malware.py
UI=decript-window.py
BUILD_SCRIPT=build.py
# -------------------------
# Setup ambiente
# -------------------------
install:
$(PIP) install -r requirements.txt
install-dev:
$(PIP) install -r requirements.txt
$(PIP) install pyinstaller
# -------------------------
# Rodar aplicação
# -------------------------
run:
$(PYTHON) $(APP)
run-ui:
$(PYTHON) $(UI)
# -------------------------
# Build automático (PyInstaller)
# -------------------------
build:
$(PYTHON) $(BUILD_SCRIPT)
# -------------------------
# Limpeza
# -------------------------
clean:
rm -rf build dist __pycache__ *.spec temp_build temp_spec
# -------------------------
# Build manual direto (Linux)
# -------------------------
build-linux:
pyinstaller --onefile --noconsole --distpath build/linux $(APP)
pyinstaller --onefile --noconsole --distpath build/linux $(UI)
# -------------------------
# Help
# -------------------------
help:
@echo "Available commands:"
@echo " make install - install dependencies"
@echo " make install-dev - install dev tools (PyInstaller)"
@echo " make run - run malware simulator"
@echo " make run-ui - run UI only"
@echo " make build - run build.py"
@echo " make build-linux - manual Linux build"
@echo " make clean - remove build files"