MacOS build support

This commit is contained in:
Piotr Dobrowolski 2018-09-02 12:55:48 +02:00
parent caf09bc432
commit e302b796ae
4 changed files with 21 additions and 1 deletions

View File

@ -20,6 +20,9 @@ clean:
run: all run: all
python3 luftdaten-tool.py python3 luftdaten-tool.py
dist: all
python3 -m PyInstaller luftdaten-tool.spec
i18n-update: i18n-update:
@for f in $(TS_FILES) ; do \ @for f in $(TS_FILES) ; do \
pylupdate5 *.py gui/*.py -ts $$f -verbose; \ pylupdate5 *.py gui/*.py -ts $$f -verbose; \

View File

@ -7,6 +7,17 @@ Binary builds
Our main target is having working prebuilt binaries for users to simply Our main target is having working prebuilt binaries for users to simply
download and run, to avoid all the setup below. download and run, to avoid all the setup below.
### Windows
Currently Windows builds require *Python 3.6* installed system-wide and added to
`%PATH%`.
### MacOS
Currently MacOS builds require *Python 3.6* and Qt SDK installed (just the "Qt >
5... > macOS" part in installer) with following added to $PATH:
export PATH="$HOME/Qt/5.11.1/clang_64/bin:$PATH"
Development Development
----------- -----------

View File

@ -27,3 +27,9 @@ exe = EXE(pyz,
upx=True, upx=True,
runtime_tmpdir=None, runtime_tmpdir=None,
console=False ) console=False )
# This is used on MacOS only
app = BUNDLE(exe,
name='Luftdaten.info Flashing Tool.app',
icon=None,
bundle_identifier=None)

View File

@ -8,7 +8,7 @@ idna==2.7
macholib==1.11 macholib==1.11
pefile==2018.8.8 pefile==2018.8.8
pyaes==1.6.1 pyaes==1.6.1
PyInstaller==3.3.1 https://github.com/pyinstaller/pyinstaller/archive/bbf964c6b89ca33823031fa7ed277c0269192b3e.zip#egg=PyInstaller
PyQt5==5.11.2 PyQt5==5.11.2
PyQt5-sip==4.19.12 PyQt5-sip==4.19.12
pyserial==3.4 pyserial==3.4