mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-04-23 06:09:38 +08:00

CURA-5343 We have the custom save file dialog on OS X now so there is no need to use .gz to bypass the extension problem on the native dialog.
26 lines
707 B
Python
26 lines
707 B
Python
# Copyright (c) 2018 Ultimaker B.V.
|
|
# Cura is released under the terms of the LGPLv3 or higher.
|
|
|
|
from UM.i18n import i18nCatalog
|
|
from UM.Platform import Platform
|
|
|
|
from . import GCodeGzWriter
|
|
|
|
catalog = i18nCatalog("cura")
|
|
|
|
def getMetaData():
|
|
file_extension = "gcode.gz"
|
|
return {
|
|
"mesh_writer": {
|
|
"output": [{
|
|
"extension": file_extension,
|
|
"description": catalog.i18nc("@item:inlistbox", "Compressed G-code File"),
|
|
"mime_type": "application/gzip",
|
|
"mode": GCodeGzWriter.GCodeGzWriter.OutputMode.BinaryMode
|
|
}]
|
|
}
|
|
}
|
|
|
|
def register(app):
|
|
return { "mesh_writer": GCodeGzWriter.GCodeGzWriter() }
|