aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/pyinstaller.py
blob: 879ae5096ed3a2d8532146df3e858f8f1befb64e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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"),
])