phuhl / linux_notification_center

A notification daemon/center for linux
BSD 3-Clause "New" or "Revised" License
995 stars 39 forks source link

[Request] Appimage as packaging format #217

Open regern80 opened 1 year ago

regern80 commented 1 year ago

I'm on linux mint and use a custom appimage bundled using arch2appimage. It works okay and reads config from $HOME/.config/deadd just like one built from source. The binary provided as official release doesn't seem to respect user configs but appimage will

phuhl commented 1 year ago

Hi, thank you for the suggestion.

I have no idea how to do this. Would that be a config file that needs to be written? If so, could you create a PR?

regern80 commented 1 year ago

An appimage is almost equivalent of .exe but on linux. One makes the appimage executable and it then it just runs when executed. Here is my custom appimage for dead, you can extract, make it executable and try it out

phuhl commented 1 year ago

I see, could you write the cli command you used to create it? Maybe we can add it as a CI run

regern80 commented 1 year ago

step1: Download appimagetool and make it executable.

Link to official Appimagetool

step2: Create a ".AppDir" folder

eg. deadd-notification-center.AppDir
This directory needs; AppRun (which is scipt or symlink pointing to the executable binary, the script is better though) .desktop file and an icon with name that matches the one in .desktop file
*Directories and files of the application like usr, bin and etc. Core dependencies directories and files can also be added to increase compatibility.

step3: Create the appimage

Run in a terminal:
[path-to-appimagepool] [path-to-.AppDir-directory]
this will output the appimage in the home directory. If there are any errors, suggestions will be presented in the terminal.

step4: Integrating Appimage with system

Make the appimage executable
The appimage (path-to-appimage) can be added to the autostart, to launch deadd with desktop.

Documentation

Example of AppDir

phuhl commented 1 year ago

Ok, just to clarify, what exactly you intend with this issue:

Cheers

regern80 commented 1 year ago

Main aim was proposing appimage as one of official release formats for non arch users

regern80 commented 1 year ago

The official releases binary still use deadd.conf but I had updated my configs to deadd.yml, that is why I thought it didn't respect user configs.