Skip to content

Commit

Permalink
Temporarily disable nuget package building on Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
jan-bures committed Oct 24, 2023
1 parent 3833b83 commit 7dcf12b
Showing 1 changed file with 20 additions and 19 deletions.
39 changes: 20 additions & 19 deletions builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,28 +202,29 @@ def get_console_encoding():


def nuget_pack():
nuget_args = [
"nuget",
"pack",
os.path.abspath("SpaceWarp.nuspec"),
"-OutputDirectory",
BUILD_DIR
]
command_str = subprocess.list2cmdline(nuget_args)
print(f"=> Executing: {command_str}")

encoding = get_console_encoding() if platform.system() == 'Windows' else 'utf-8'

output = subprocess.run(args=command_str, capture_output=True)
print(" |=>| STDOUT")
if platform.system() == "Windows":
nuget_args = [
"nuget",
"pack",
os.path.abspath("SpaceWarp.nuspec"),
"-OutputDirectory",
BUILD_DIR
]
command_str = subprocess.list2cmdline(nuget_args)
print(f"=> Executing: {command_str}")

encoding = get_console_encoding()

output = subprocess.run(args=command_str, capture_output=True)
print(" |=>| STDOUT")

for line in str(output.stdout, encoding).splitlines():
print(f" {line}")
for line in str(output.stdout, encoding).splitlines():
print(f" {line}")

print(" |=>| STDERR")
print(" |=>| STDERR")

for line in str(output.stderr, encoding).splitlines():
print(f" {line}")
for line in str(output.stderr, encoding).splitlines():
print(f" {line}")

shutil.rmtree(os.path.join(BUILD_DIR, "nuget_temp"))

Expand Down

0 comments on commit 7dcf12b

Please sign in to comment.