mirror of
https://github.com/thegatesbrowser/thegates.git
synced 2025-09-03 05:25:48 -04:00
remove --force flag and apply it by default
This commit is contained in:
parent
3a0d1a668f
commit
2343cc5d24
1 changed files with 1 additions and 15 deletions
|
@ -60,18 +60,7 @@ def open_cursor_on_linux(folder: Path) -> None:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
def parse_args() -> argparse.Namespace:
|
|
||||||
parser = argparse.ArgumentParser(description="Export, compress, and upload builds.")
|
|
||||||
parser.add_argument(
|
|
||||||
"--force",
|
|
||||||
action="store_true",
|
|
||||||
help="Overwrite existing compressed files (Linux compressor only).",
|
|
||||||
)
|
|
||||||
return parser.parse_args()
|
|
||||||
|
|
||||||
|
|
||||||
def main() -> int:
|
def main() -> int:
|
||||||
args = parse_args()
|
|
||||||
script_dir = Path(__file__).resolve().parent
|
script_dir = Path(__file__).resolve().parent
|
||||||
repo_root = script_dir.parent
|
repo_root = script_dir.parent
|
||||||
app_dir = repo_root / "app"
|
app_dir = repo_root / "app"
|
||||||
|
@ -109,10 +98,7 @@ def main() -> int:
|
||||||
shutil.copy2(compress_src, compress_dst)
|
shutil.copy2(compress_src, compress_dst)
|
||||||
|
|
||||||
print(f"==> Compressing Linux/Windows builds with version {version}...")
|
print(f"==> Compressing Linux/Windows builds with version {version}...")
|
||||||
compress_cmd = [sys.executable, str(compress_dst), version]
|
run([sys.executable, str(compress_dst), version, "--force"], cwd=builds_dir)
|
||||||
if args.force:
|
|
||||||
compress_cmd.append("--force")
|
|
||||||
run(compress_cmd, cwd=builds_dir)
|
|
||||||
|
|
||||||
uploaded = build_expected_zip_paths(builds_dir, version, os_name)
|
uploaded = build_expected_zip_paths(builds_dir, version, os_name)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue