firmador
This commit is contained in:
parent
94e91e6824
commit
d6cec9e88e
2 changed files with 18 additions and 10 deletions
23
01-utils.sh
23
01-utils.sh
|
@ -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
|
||||
|
|
|
@ -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 $@
|
||||
|
|
Loading…
Reference in a new issue