2019-04-16 18:23:46 +02:00
|
|
|
#!/usr/bin/env python3
|
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
|
|
|
|
"""Build a standalone executable using PyInstaller"""
|
|
|
|
|
|
|
|
import PyInstaller.__main__
|
|
|
|
import util
|
2020-03-06 15:15:59 +01:00
|
|
|
import os
|
2019-04-16 18:23:46 +02:00
|
|
|
|
|
|
|
PyInstaller.__main__.run([
|
|
|
|
"--onefile",
|
|
|
|
"--console",
|
2020-03-06 15:15:59 +01:00
|
|
|
"--name", "gallery-dl." + ("exe" if os.name == "nt" else "bin"),
|
2019-04-16 18:23:46 +02:00
|
|
|
"--additional-hooks-dir", util.path("scripts"),
|
|
|
|
"--distpath", util.path("dist"),
|
|
|
|
"--workpath", util.path("build"),
|
|
|
|
"--specpath", util.path("build"),
|
|
|
|
util.path("gallery_dl", "__main__.py"),
|
|
|
|
])
|