Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorj.spijker@ultimaker.com <jelle spijker>2022-07-06 08:51:24 +0300
committerjspijker <j.spijker@ultimaker.com>2022-07-06 08:51:24 +0300
commitbee2b22edf2338e03eebb62a0024d0143cb8efb9 (patch)
tree7786e2b4f12886c1ad3fa620ae32cbff7a8ddc2b /packaging
parent17d2fb8b02684beef9e102f70b1ff600a243e259 (diff)
uniform name on linux
Contributes to CURA-9365
Diffstat (limited to 'packaging')
-rw-r--r--packaging/AppImage/create_appimage.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/packaging/AppImage/create_appimage.py b/packaging/AppImage/create_appimage.py
index f438d200c5..bb8396f43c 100644
--- a/packaging/AppImage/create_appimage.py
+++ b/packaging/AppImage/create_appimage.py
@@ -9,13 +9,12 @@ import shutil # Copying files.
import stat # For setting file permissions.
import subprocess # For calling system commands.
-def build_appimage(dist_path, version):
+def build_appimage(dist_path, version, appimage_filename):
"""
Creates an AppImage file from the build artefacts created so far.
"""
copy_metadata_files(dist_path, version)
- appimage_filename = f"Ultimaker-Cura_{version}.AppImage"
try:
os.remove(os.path.join(dist_path, appimage_filename)) # Ensure any old file is removed, if it exists.
except FileNotFoundError:
@@ -72,5 +71,6 @@ if __name__ == "__main__":
parser = argparse.ArgumentParser(description = "Create AppImages of Cura.")
parser.add_argument("dist_path", type=str, help="Path to where PyInstaller installed the distribution of Cura.")
parser.add_argument("version", type=str, help="Full version number of Cura (e.g. '5.1.0-beta')")
+ parser.add_argument("filename", type = str, help = "Filename of the AppImage (e.g. 'Ultimaker-Cura-5.1.0-beta-Linux-X64.AppImage')")
args = parser.parse_args()
- build_appimage(args.dist_path, args.version)
+ build_appimage(args.dist_path, args.version, args.filename)