Update Debian build

This commit is contained in:
Veronica Berglyd Olsen
2025-10-19 00:19:47 +02:00
parent e21d944461
commit 41c58a52e3
5 changed files with 21 additions and 20 deletions
+8 -3
View File
@@ -92,14 +92,19 @@ def copySourceCode(dst: Path) -> None:
def copyPackageFiles(dst: Path, oldLicense: bool = False) -> None:
"""Copy files needed for packaging."""
copyFiles = ["LICENSE.md", "setup/LICENSE-Apache-2.0.txt", "CREDITS.md", "pyproject.toml"]
copyFiles = [
ROOT_DIR / "LICENSE.md",
SETUP_DIR / "LICENSE-Apache-2.0.txt",
ROOT_DIR / "CREDITS.md",
ROOT_DIR / "pyproject.toml",
]
for copyFile in copyFiles:
shutil.copyfile(copyFile, dst / copyFile)
shutil.copyfile(copyFile, dst / copyFile.name)
print("Copied:", copyFile, flush=True)
writeFile(dst / "MANIFEST.in", (
"include LICENSE.md\n"
"include setup/LICENSE-Apache-2.0.txt\n"
"include LICENSE-Apache-2.0.txt\n"
"include CREDITS.md\n"
"recursive-include novelwriter/assets *\n"
))