Make sure the pkgutils script has no third party dependencies by default
This commit is contained in:
@@ -22,11 +22,11 @@ from __future__ import annotations
|
|||||||
|
|
||||||
import argparse
|
import argparse
|
||||||
|
|
||||||
import PyInstaller.__main__
|
|
||||||
|
|
||||||
|
|
||||||
def runPyinstaller() -> None:
|
def runPyinstaller() -> None:
|
||||||
"""Run the pyinstaller."""
|
"""Run the pyinstaller."""
|
||||||
|
import PyInstaller.__main__
|
||||||
|
|
||||||
build = ["novelWriter.py", "--clean", "--windowed", "--onedir", "--noconfirm"]
|
build = ["novelWriter.py", "--clean", "--windowed", "--onedir", "--noconfirm"]
|
||||||
build += ["--name", "novelwriter"]
|
build += ["--name", "novelwriter"]
|
||||||
build += ["--workpath", "build_bin"]
|
build += ["--workpath", "build_bin"]
|
||||||
@@ -34,6 +34,7 @@ def runPyinstaller() -> None:
|
|||||||
build += ["--hidden-import", "pyenchant"]
|
build += ["--hidden-import", "pyenchant"]
|
||||||
build += ["--add-data", "novelwriter/assets:assets"]
|
build += ["--add-data", "novelwriter/assets:assets"]
|
||||||
PyInstaller.__main__.run(build)
|
PyInstaller.__main__.run(build)
|
||||||
|
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -29,11 +29,9 @@ import sys
|
|||||||
|
|
||||||
from utils.common import (
|
from utils.common import (
|
||||||
ROOT_DIR, SETUP_DIR, checkAssetsExist, copyPackageFiles, copySourceCode,
|
ROOT_DIR, SETUP_DIR, checkAssetsExist, copyPackageFiles, copySourceCode,
|
||||||
extractVersion, makeCheckSum, toUpload
|
extractVersion, makeCheckSum, toUpload, writeFile
|
||||||
)
|
)
|
||||||
|
|
||||||
from tests.tools import writeFile
|
|
||||||
|
|
||||||
SIGN_KEY = "D6A9F6B8F227CF7C6F6D1EE84DBBE4B734B0BD08"
|
SIGN_KEY = "D6A9F6B8F227CF7C6F6D1EE84DBBE4B734B0BD08"
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -30,9 +30,7 @@ import zipfile
|
|||||||
|
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
|
||||||
from utils.common import ROOT_DIR, SETUP_DIR, copySourceCode, extractVersion, writeFile
|
from utils.common import ROOT_DIR, SETUP_DIR, copySourceCode, extractVersion, readFile, writeFile
|
||||||
|
|
||||||
from tests.tools import readFile
|
|
||||||
|
|
||||||
|
|
||||||
def prepareCode(outDir: Path) -> None:
|
def prepareCode(outDir: Path) -> None:
|
||||||
|
|||||||
Reference in New Issue
Block a user