فهرست منبع

Create a simple Makefile

Eren Yilmaz 5 سال پیش
والد
کامیت
4c4242dce6
3فایلهای تغییر یافته به همراه16 افزوده شده و 5 حذف شده
  1. 1 1
      .gitignore
  2. 13 0
      Makefile
  3. 2 4
      README.md

+ 1 - 1
.gitignore

@@ -9,4 +9,4 @@ cool_query.py
 __pycache__
 future_plans.txt
 secret_trading_tools.py
-*.bak
+*.bak

+ 13 - 0
Makefile

@@ -0,0 +1,13 @@
+
+.PHONY: compile
+compile:
+	echo "IMPORTANT: Make sure the client is not currently running."
+	cp debug.py debug.py.bak
+	echo debug = False > debug.py
+	python -OO -m PyInstaller run_client.py -y
+	rm debug.py
+	mv debug.py.bak debug.py
+	cd dist; \
+	"C:\Program Files\7-Zip\7z.exe" a \
+	orderer.zip \
+	run_client\*

+ 2 - 4
README.md

@@ -31,8 +31,6 @@ python3 -OO run_server.py
 ### Client
 The client is intended to be compiled with
 ```
-echo debug = False > debug.py &&\
-python -OO -m PyInstaller run_client.py &&\
-echo debug = True > debug.py
+make compile
 ```
-where `pyinstaller` can be installed using pip.
+and requires `pyinstaller` which can be installed using pip.