Browse Source

Fix Makefile

Lutz Roeder 6 năm trước cách đây
mục cha
commit
7b4e966810
2 tập tin đã thay đổi với 2 bổ sung4 xóa
  1. 1 3
      Makefile
  2. 1 1
      src/server.py

+ 1 - 3
Makefile

@@ -28,7 +28,6 @@ update:
 
 build_python:
 	@[ -d node_modules ] || npm install
-	rm -rf ./build
 	python3 ./setup.py build --version
 
 build_electron:
@@ -50,11 +49,10 @@ start:
 
 publish_python:
 	@[ -d node_modules ] || npm install
-	rm -rf ./build
 	python3 ./setup.py build --version bdist_wheel
 	python3 -m pip install --user keyring
 	python3 -m pip install --user twine
-	# twine upload build/dist/*
+	twine upload build/dist/*
 
 publish_github_electron:
 	@[ -d node_modules ] || npm install

+ 1 - 1
src/server.py

@@ -89,7 +89,7 @@ class HTTPRequestHandler(BaseHTTPRequestHandler):
                         status_code = 200
                 else:
                     status_code = 404
-        if self.verbose:
+        if self.log:
             sys.stdout.write(str(status_code) + ' ' + self.command + ' ' + self.path + '\n')
         sys.stdout.flush()
         self.send_response(status_code)