CadQuery / CadQuery/CQ-editor

Feature Request - AppImage creation

Open
#289 2 comments 6 reactions 0 assignees View on GitHub
infrastructure
Dominant language
Python
Stars
1.2k
Forks
210
PR merge metrics
No merged PRs in 30d

Description

I think it would be nice providing an AppImage for Linux. I think AppImage suits better than flatpak/snap for CQ-editor. And it is easier to create it (this is my first AppImage; I just leart how to do it today).

The process goes as follows (more or less):
1. Create the folder `CQ-editor.AppDir`
2. Unzip the content of one of the .zip files (stable or development versions) in that folder.
3. Rename the entry point file:
```sh
mv CQ-editor.sh AppRun
```
4. Modify the content of `AppRun`:
```sh
#!/bin/sh
export QT_MAC_WANTS_LAYER=1

HERE="$(dirname "$(readlink -f "${0}")")"

#chmod u+x ./CQ-editor/CQ-editor
#./CQ-editor/CQ-editor
#chmod u+x "$HERE/CQ-editor/CQ-editor"
exec "$HERE/CQ-editor/CQ-editor"
```
5. Get the logo:
```
$ wget https://raw.githubusercontent.com/CadQuery/CQ-editor/master/icons/cadquery_logo_dark.svg
$ mv cadquery_logo_dark.svg CQ-editor.svg
$ cp CQ-editor.png .DirIcon
```
6. Create the file `CQ-editor.desktop`:
```sh
[Desktop Entry]
Type=Application
Terminal=false
Icon=CQ-editor
Exec=AppRun
Name=CQ-editor
GenericName=Cadquery Editor
Categories=Graphics;
Comment=CadQuery GUI editor based on PyQT
```
7. Create the appimage file:
```sh
$ appimagetool CQ-editor.AppDir/
```
(this will create a file like: `CQ-editor-x86_64.AppImage`)

------

The benefits as a user:
- You download the file and just chmod it to make it executable. You don't need to unzip it. You don't have thousands of files in a folder structure.
- You can easily integrate it in the desktop by using things like [AppImageLauncher](https://github.com/TheAssassin/AppImageLauncher). Just doing:
```sh
ail-cli integrate CQ-editor-x86_64.AppImage
```
and you get your icon in Gnome.
- Several versions can coexist easily with proper names

In theory this can be done automatically with travis-ci. But I have never used it.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.