mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Fix windows and mac building from without an existing onedir
This commit is contained in:
parent
e2a624f984
commit
ae9f9d379b
2 changed files with 3 additions and 3 deletions
|
@ -167,7 +167,7 @@ if ( ! $SkipInstall ) {
|
|||
Architecture = $Architecture
|
||||
}
|
||||
if ( $Build ) {
|
||||
$KeywordArguments["Build"] = $true
|
||||
$KeywordArguments["Build"] = $false
|
||||
}
|
||||
if ( $CICD ) {
|
||||
$KeywordArguments["CICD"] = $true
|
||||
|
|
|
@ -183,8 +183,8 @@ def macos(
|
|||
assert onedir is not None
|
||||
assert salt_version is not None
|
||||
|
||||
checkout = pathlib.Path.cwd()
|
||||
if onedir:
|
||||
checkout = pathlib.Path.cwd()
|
||||
onedir_artifact = checkout / "artifacts" / onedir
|
||||
ctx.info(f"Building package from existing onedir: {str(onedir_artifact)}")
|
||||
_check_pkg_build_files_exist(ctx, onedir_artifact=onedir_artifact)
|
||||
|
@ -279,9 +279,9 @@ def windows(
|
|||
"-CICD",
|
||||
]
|
||||
|
||||
checkout = pathlib.Path.cwd()
|
||||
if onedir:
|
||||
build_cmd.append("-SkipInstall")
|
||||
checkout = pathlib.Path.cwd()
|
||||
onedir_artifact = checkout / "artifacts" / onedir
|
||||
ctx.info(f"Building package from existing onedir: {str(onedir_artifact)}")
|
||||
_check_pkg_build_files_exist(ctx, onedir_artifact=onedir_artifact)
|
||||
|
|
Loading…
Add table
Reference in a new issue