mirror of
https://github.com/netinvent/npbackup.git
synced 2024-11-10 09:03:02 +08:00
Add legacy check for compile output
This commit is contained in:
parent
916c215c1f
commit
5de7ffb91f
1 changed files with 3 additions and 0 deletions
|
@ -33,6 +33,7 @@ from command_runner import command_runner
|
||||||
from ofunctions.platform import python_arch, get_os
|
from ofunctions.platform import python_arch, get_os
|
||||||
if os.name == "nt":
|
if os.name == "nt":
|
||||||
from npbackup.windows.sign_windows import sign
|
from npbackup.windows.sign_windows import sign
|
||||||
|
from npbackup.path_helper import IS_LEGACY
|
||||||
|
|
||||||
AUDIENCES = ["public", "private"]
|
AUDIENCES = ["public", "private"]
|
||||||
BUILD_TYPES = ["cli", "gui", "viewer"]
|
BUILD_TYPES = ["cli", "gui", "viewer"]
|
||||||
|
@ -365,6 +366,8 @@ def create_archive(
|
||||||
archive_extension = "zip"
|
archive_extension = "zip"
|
||||||
else:
|
else:
|
||||||
archive_extension = "tar.gz"
|
archive_extension = "tar.gz"
|
||||||
|
if IS_LEGACY:
|
||||||
|
arch = f"{arch}-legacy"
|
||||||
target_archive = f"{output_dir}/npbackup-{platform}-{arch}-{build_type}-{audience}.{archive_extension}"
|
target_archive = f"{output_dir}/npbackup-{platform}-{arch}-{build_type}-{audience}.{archive_extension}"
|
||||||
if os.path.isfile(target_archive):
|
if os.path.isfile(target_archive):
|
||||||
os.remove(target_archive)
|
os.remove(target_archive)
|
||||||
|
|
Loading…
Reference in a new issue