Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

user installable version for linux distributions #12

Open
stylefish opened this issue Nov 30, 2023 · 0 comments
Open

user installable version for linux distributions #12

stylefish opened this issue Nov 30, 2023 · 0 comments

Comments

@stylefish
Copy link
Contributor

method 1:
publish on flathub etc.

method 2:
for people that dont use flathub etc:

it would be nice if we could have an installation file (bash script etc) that would install / update the latest release of clef viewer to ~/.local on linux and create a .desktop file.

in my case its copied to ~/.local/bin

this eco-clefviewer.desktop file is what i'm using:

[Desktop Entry]
Encoding=UTF-8
Version=1.0
Type=Application
NoDisplay=false
Exec=/home/larskoehne/.local/bin/Eco.Clef.Viewer.AppImage
Name=eco CLEF Viewer
Icon=eco-clef-viewer
Comment=view log files in .clef format
StartupWMClass=eco-clefviewer

this should be copied to ~/.local/share/applications

after that the images have to be created, sth like this (could be done one time in and checked into the repo):
needs image magick

#!/bin/bash

if [ -z "$1" ]; then # || [ -z "$2" ]; then
	echo "usage: create-app-icons <path to input file> <icon name>"
	exit 1
fi

imgpath="$HOME/.local/share/icons/hicolor"
for s in `ls "$imgpath"` # 16x16 32x32 ...
do
	p="$imgpath/$s/apps/$2.png"
	magick "$1" -resize "$s" "$p"
	echo " => $p"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant