mirror of
https://github.com/Yubico/yubioath-flutter.git
synced 2024-11-26 10:33:15 +03:00
Use binary "python" on Windows and "python3" otherwise
This commit is contained in:
parent
52fb2d8cdf
commit
c2795cab0c
@ -19,7 +19,13 @@ DEFINES += APP_VERSION=\\\"5.0.1\\\"
|
||||
|
||||
message(Version of this build: $$VERSION)
|
||||
|
||||
buildqrc.commands = python3 build_qrc.py ${QMAKE_FILE_IN}
|
||||
win32|win64 {
|
||||
PYTHON_BIN = python
|
||||
} else {
|
||||
PYTHON_BIN = python3
|
||||
}
|
||||
|
||||
buildqrc.commands = ${PYTHON_BIN} build_qrc.py ${QMAKE_FILE_IN}
|
||||
buildqrc.input = QRC_JSON
|
||||
buildqrc.output = ${QMAKE_FILE_IN_BASE}.qrc
|
||||
buildqrc.variable_out = RESOURCES
|
||||
@ -30,7 +36,7 @@ QMAKE_EXTRA_COMPILERS += buildqrc
|
||||
QRC_JSON = resources.json
|
||||
|
||||
# Generate first time
|
||||
system(python3 build_qrc.py resources.json)
|
||||
system($$PYTHON_BIN build_qrc.py resources.json)
|
||||
|
||||
# Install python dependencies with pip on mac and win
|
||||
win32|macx {
|
||||
|
Loading…
Reference in New Issue
Block a user