mirror of
https://gitlab.com/openlp/packaging.git
synced 2024-12-22 13:02:50 +00:00
3bd987ffcf
Use debug bootloader when building devel version. Add ssl hook and runtime hook to include certificates for Mac OS X(OS X). Fix release app version(OS X). Fix converting bytes to megabytes(OS X). Fix argument to cp command(OS X).
11 lines
417 B
Python
11 lines
417 B
Python
from PyInstaller.compat import is_darwin
|
|
from PyInstaller.utils.hooks.hookutils import exec_statement
|
|
|
|
if is_darwin: # TODO check if this is needed on linux
|
|
datas = []
|
|
files = exec_statement("""
|
|
import ssl
|
|
print(ssl.get_default_verify_paths().cafile)""").strip().split()
|
|
for file in files:
|
|
datas.append((file, 'lib')) # TODO find a way to make sure the bundled cafile is always named 'cert.pem'
|