mirror of
https://github.com/rbreu/beeref.git
synced 2026-03-11 08:54:28 +00:00
build.py: Fix lib dir on Windows
This commit is contained in:
parent
35acce6b3d
commit
cd59039b1d
1 changed files with 3 additions and 6 deletions
9
build.py
9
build.py
|
|
@ -16,11 +16,9 @@ def datapath(src, dest):
|
|||
return os.path.join(*src) + os.pathsep + os.path.join(*dest)
|
||||
|
||||
|
||||
pyqt_dir = os.path.join(get_python_lib(), 'PyQt6')
|
||||
print(sorted(os.listdir(pyqt_dir)))
|
||||
print('****')
|
||||
pyqt_dir = os.path.join(get_python_lib(), 'PyQt6', 'Qt6')
|
||||
print(sorted(os.listdir(pyqt_dir)))
|
||||
libdir = 'bin' if sys.platform.startswith('win') else 'lib'
|
||||
|
||||
|
||||
appname = f'{constants.APPNAME}-{constants.VERSION}'
|
||||
|
||||
|
|
@ -32,10 +30,9 @@ PyInstaller.__main__.run([
|
|||
'--hidden-import', 'PyQt6.sip',
|
||||
'--hidden-import', 'PyQt6.QtPrintSupport',
|
||||
'--icon', os.path.join('beeref', 'assets', 'logo.png'),
|
||||
#'--paths', os.path.join(pyqt_dir, 'bin'),
|
||||
'--add-data', datapath(
|
||||
[pyqt_dir, 'plugins', 'platforms'], ['platforms']),
|
||||
'--add-data', datapath([pyqt_dir, 'lib'], ['.']),
|
||||
'--add-data', datapath([pyqt_dir, libdir], ['.']),
|
||||
'--add-data', datapath(
|
||||
['beeref', 'documentation'], ['beeref', 'documentation']),
|
||||
'--add-data', datapath(
|
||||
|
|
|
|||
Loading…
Reference in a new issue