mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 04:59:00 +08:00
Fix calling subprocesses
We shouldn't unpack the list. The first argument is allowed to be a list. If we unpack it, it'll override other arguments to the call function that would be the wrong type then (buffer size). Contributes to issue CURA-9409.
This commit is contained in:
parent
254edfd3ec
commit
f3fd2d6f80
@ -47,13 +47,13 @@ def copy_metadata_files():
|
||||
def generate_appimage():
|
||||
appimage_path = os.path.join(dist_path, appimage_filename)
|
||||
command = ["appimagetool", "--appimage-extract-and-run", f"{dist_path}/", appimage_path]
|
||||
result = subprocess.call(*command)
|
||||
result = subprocess.call(command)
|
||||
if result != 0:
|
||||
raise RuntimeError(f"The AppImageTool command returned non-zero: {result}")
|
||||
|
||||
def sign_appimage():
|
||||
appimage_path = os.path.join(dist_path, appimage_filename)
|
||||
command = ["gpg", "--yes", "--armor", "--detach-sig", {appimage_path}]
|
||||
result = subprocess.call(*command)
|
||||
command = ["gpg", "--yes", "--armor", "--detach-sig", appimage_path]
|
||||
result = subprocess.call(command)
|
||||
if result != 0:
|
||||
raise RuntimeError(f"The GPG command returned non-zero: {result}")
|
||||
|
Loading…
x
Reference in New Issue
Block a user