Skip to content

Commit

Permalink
build: add step for cleaning old build files
Browse files Browse the repository at this point in the history
  • Loading branch information
dynobo committed Nov 30, 2023
1 parent 1c43fc3 commit f350a64
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions bundle/platforms/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,15 @@ def compile_locales(self) -> None:
cwd=self.PROJECT_PATH,
)

def clean(self) -> None:
build_dir = self.PROJECT_PATH / "build"
if build_dir.exists():
print(f"Removing old build directory {build_dir.resolve()}") # noqa: T201
shutil.rmtree(build_dir, ignore_errors=True)

def create(self) -> None:
"""Run all steps to build prebuilt packages."""
self.clean()
self.download_tessdata()
self.install_system_deps()
self.compile_locales()
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ requires = ["std-nslog==1.0.0"]
[tool.briefcase.app.normcap.linux.appimage]
template = "https://github.com/beeware/briefcase-linux-appimage-template"
template_branch = "v0.3.16"
manylinux = "manylinux2014_x86_64"
manylinux = "manylinux_2_28"
system_requires = [
"wget",
"tesseract",
Expand Down

0 comments on commit f350a64

Please sign in to comment.