From e2e7d0b5042b9458332fc62863063d0a8d8e88da Mon Sep 17 00:00:00 2001 From: cxykevin Date: Thu, 15 Feb 2024 08:25:00 +0000 Subject: [PATCH] update Makefile. Signed-off-by: cxykevin --- Makefile | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 686bff5..32e3567 100644 --- a/Makefile +++ b/Makefile @@ -39,7 +39,11 @@ endif env\python.exe: tmp/py/python.zip 7z x -y -aos -oenv/ tmp/py/python.zip install: dist/PEinjector.7z installer/install.py +ifeq ($(OS), Windows_NT) python installer/install.py +else + sudo python installer/install.py +endif build: dist/PEinjector.7z prepare: env/python.exe clean: @@ -53,15 +57,16 @@ else mkdir dist -p endif debug: dist/PEinjector.7z - python installer/install.py ifeq ($(OS), Windows_NT) + python installer/install.py start_vm.cmd else - start_vm.sh + sudo python installer/install.py + sudo start_vm.sh endif start: ifeq ($(OS), Windows_NT) start_vm.cmd else - start_vm.sh + sudo start_vm.sh endif