Browse Source

Add how to build app

Kentaro Wada 7 years ago
parent
commit
e362ebd86c
1 changed files with 25 additions and 0 deletions
  1. 25 0
      README.md

+ 25 - 0
README.md

@@ -136,6 +136,31 @@ pytest -v tests
 ```
 
 
+## How to build standalone app
+
+Below is an example on macOS.
+
+```bash
+git clone https://github.com/wkentaro/labelme.git
+cd labelme
+
+virtualenv venv --python /usr/local/bin/python3
+. venv/bin/activate
+pip install -e .
+pip uninstall matplotlib
+pip install pyinstaller
+
+pyinstaller app.py \
+  --onefile \
+  --windowed \
+  --name labelme \
+  --icon labelme/icons/icon.icns \
+  --specpath $(mktemp -d) \
+  --noconfirm
+open dist/labelme.app
+```
+
+
 ## Acknowledgement
 
 This repo is the fork of [mpitid/pylabelme](https://github.com/mpitid/pylabelme),