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_libre() {
|
||||||
FIRMADOR="https://firmador.libre.cr/firmador.jar"
|
FIRMADOR="https://firmador.libre.cr/firmador.jar"
|
||||||
DIR="$HOME/.local/share/firmador"
|
DIR="$HOME/.local/share/firmador"
|
||||||
[ "$ID" = "macos" ] && DIR="$HOME/.local/share/firmador"
|
[ "$ID" = "macos" ] && DIR="$HOME/.local/share/firmador"
|
||||||
|
|
||||||
mkdir -p "$DIR"
|
mkdir -p "$DIR"
|
||||||
(cd "$DIR" && curl -O "$FIRMADOR")
|
(cd "$DIR" && curl -O "$FIRMADOR")
|
||||||
# Add DESKTOP entry
|
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() {
|
set_menu() {
|
||||||
|
@ -128,3 +137,5 @@ elif [ "$MENU" = "term" ] ; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
firmador_libre
|
||||||
|
|
|
@ -1,6 +1,3 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
SCRIPT="$(grep 'SCRIPT *=' Makefile)"
|
shellcheck -x --shell=sh --format=gcc $@
|
||||||
SCRIPT="${SCRIPT#*=}"
|
|
||||||
|
|
||||||
shellcheck -x --shell=sh --format=gcc "$SCRIPT"
|
|
||||||
|
|
Loading…
Reference in a new issue