Ultimaker / Cura

3D printer / slicing GUI built on top of the Uranium framework
GNU Lesser General Public License v3.0
6.18k stars 2.08k forks source link

Deb package vs Appimage #2634

Closed ljoets closed 6 years ago

ljoets commented 7 years ago

Hello, I need to install Cura3 on every computers (in a school) using Debian. Appimage is not very simple to use : no standard shortcuts, no icon...

Is it possible and is there a documentation / howto to make a deb package of Cura3 ? Thanks.

nallath commented 7 years ago

You could try the PPA made by Thopiekar. We stopped creating *.deb packages as it caused us a load of issues.

ljoets commented 7 years ago

How can I manage the installation of icon and launcher in Debian using an Appimage ? Is there a doc to compile it under Debian Stretch ? Thanks

sbts commented 7 years ago

@nallath While I know it's not that hard to do a google search for Thipiekar's PPA, it really helps avoid confusion and lost time if you are able to provide a link in issue reports.

Cura PPA by Thopiekar

Ghostkeeper commented 7 years ago

Alternatively you can create a .desktop file pointing to the Appimage as well, such as this (not tested):

[Desktop Entry]
Type=Application
Name=Cura
Comment=Slicer software
Icon=~/Applications/Cura/cura.png
Exec=~/Applications/Cura/Cura.appimage

You can get the icon here: https://github.com/Ultimaker/Cura/blob/master/icons/cura-128.png

This would create a launcher with an icon that you can put on the side bar, etc.

maukcc commented 7 years ago

Or install the main menu app:

sudo apt install alacarte

Then open main menu app and add the appimage as new item Make sure the appimage is excecutable. In the main menu app you can also click on the image to insert a new one

probonopd commented 7 years ago

Alternatively you can create a .desktop file pointing to the Appimage

Also check out the optional appimaged daemon which does this automagically, and much more. https://github.com/AppImage/AppImageKit#appimaged-usage

peteruithoven commented 6 years ago

@probonopd I was able to install appimaged and after installation it did automatically add the .desktop file, but I still can't open a .stl directly with Cura. It's not listed in the Open with > Other Application > Select Application. Any idea what could be going wrong? Have others successfully installed the AppImage and are able to open .stl files with Cura?

(Side note, why isn't appimaged (and AppImageUpdate) mentioned on appimage.org ?)

probonopd commented 6 years ago

The desktop file in the Cura AppImage specifies MimeType=application/sla;application/vnd.ms-3mfdocument;application/prs.wavefront-obj;image/bmp;image/gif;image/jpeg;image/png;, so files of those MIME types should be associated with this AppImage.

However, the Cura AppImage lacks the necessary usr/share/mime/packages/cura.xml file that would associate the files with these MIME types, e.g., .stl files with the MIME type application/sla. It should contain

<?xml version="1.0" encoding="UTF-8"?>
<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
    <mime-type type="application/vnd.ms-3mfdocument">
        <comment>3D Manufacturing Format Document</comment>
        <icon name="unknown"/>
        <glob-deleteall/>
        <glob pattern="*.3mf"/>
    </mime-type>
    <mime-type type="application/sla">
        <comment>Computer-aided design and manufacturing format</comment>
        <icon name="unknown"/>
        <glob-deleteall/>
        <glob pattern="*.stl"/>
    </mime-type>
    <mime-type type="application/prs.wavefront-obj">
        <sub-class-of type="text/plain"/>
        <comment>Wavefront 3D Object file</comment>
        <icon name="unknown"/>
        <glob-deleteall/>
        <glob pattern="*.obj"/>
    </mime-type>
</mime-info>

Side note, why isn't appimaged (and AppImageUpdate) mentioned on appimage.org?

Because no one has sent a Pull Request yet...

peteruithoven commented 6 years ago

Apologies, I'm running Elementry OS Loki (based on Ubuntu 16.04).

I did find cura.sharedmimeinfo, which is used in the cmake file.

Side note, why isn't appimaged (and AppImageUpdate) mentioned on appimage.org?

Because no one has sent a Pull Request yet...

Whaha, fair point...

Ghostkeeper commented 6 years ago

I've added a Freedesktop-format MIME type file for Linux now to the build: https://github.com/Ultimaker/cura-build/commit/91743f17c58496bad93930265800b3ffa85c62f0