add PyInstaller script and hook (#166)
parent
96c7ccd380
commit
18345381f3
@ -0,0 +1,9 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
from gallery_dl import extractor, downloader, postprocessor
|
||||
|
||||
hiddenimports = [
|
||||
package.__name__ + "." + module
|
||||
for package in (extractor, downloader, postprocessor)
|
||||
for module in package.modules
|
||||
]
|
@ -0,0 +1,18 @@
|
||||
#!/usr/bin/env python3
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
"""Build a standalone executable using PyInstaller"""
|
||||
|
||||
import PyInstaller.__main__
|
||||
import util
|
||||
|
||||
PyInstaller.__main__.run([
|
||||
"--onefile",
|
||||
"--console",
|
||||
"--name", "gallery-dl." + ("exe" if PyInstaller.is_win else "bin"),
|
||||
"--additional-hooks-dir", util.path("scripts"),
|
||||
"--distpath", util.path("dist"),
|
||||
"--workpath", util.path("build"),
|
||||
"--specpath", util.path("build"),
|
||||
util.path("gallery_dl", "__main__.py"),
|
||||
])
|
Loading…
Reference in new issue