mirror of
https://github.com/mikf/gallery-dl.git
synced 2024-11-22 10:42:34 +01:00
19 lines
489 B
Python
Executable File
19 lines
489 B
Python
Executable File
#!/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"),
|
|
])
|