This commit is contained in:
tavo-wasd 2024-05-17 17:56:44 -06:00
parent 94e91e6824
commit d6cec9e88e
2 changed files with 18 additions and 10 deletions

View file

@ -73,13 +73,22 @@ set_version() {
}
firmador_libre() {
FIRMADOR="https://firmador.libre.cr/firmador.jar"
DIR="$HOME/.local/share/firmador"
[ "$ID" = "macos" ] && DIR="$HOME/.local/share/firmador"
FIRMADOR="https://firmador.libre.cr/firmador.jar"
DIR="$HOME/.local/share/firmador"
[ "$ID" = "macos" ] && DIR="$HOME/.local/share/firmador"
mkdir -p "$DIR"
(cd "$DIR" && curl -O "$FIRMADOR")
# Add DESKTOP entry
mkdir -p "$DIR"
(cd "$DIR" && curl -O "$FIRMADOR")
FIRMADOR="$DIR/firmador.jar"
printf '[Desktop Entry]
Name=Firmador
Comment=Herramienta para firmar documentos
Category=Utility
Exec=java -jar %s
Icon=%s/.local/share/firmador/firmador.png
Terminal=false
Type=Application' "$FIRMADOR" "$HOME" > ~/.local/share/applications/firmador.desktop
}
set_menu() {
@ -128,3 +137,5 @@ elif [ "$MENU" = "term" ] ; then
fi
}
firmador_libre

View file

@ -1,6 +1,3 @@
#!/bin/sh
SCRIPT="$(grep 'SCRIPT *=' Makefile)"
SCRIPT="${SCRIPT#*=}"
shellcheck -x --shell=sh --format=gcc "$SCRIPT"
shellcheck -x --shell=sh --format=gcc $@