forked from lithid/Right-Click-Android-Tools
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCompress-Sign
More file actions
executable file
·24 lines (20 loc) · 790 Bytes
/
Copy pathCompress-Sign
File metadata and controls
executable file
·24 lines (20 loc) · 790 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/bash
# Compress then sign apks/zips
function_get_nautilus_version() {
VER="0"
CHK=$(nautilus --version |awk '{print $3}')
VER=$(echo $CHK |cut -d"." -f1)
}
function_get_nautilus_version
SCRIPT_DIR="$HOME/.local/share/nautilus/scripts/jlmancuso"
DIR="${SCRIPT_DIR}/"
DATE=$(date +%Y%m%d_%H%M%S)
zip -r ${PWD##*/}-Compressed-Sign.zip *
java -classpath ${DIR}/sign.jar testsign ${PWD##*/}-Compressed-Sign.zip ${PWD##*/}-Compressed-Sign.zip-signed-${DATE}
rm ${PWD##*/}-Compressed-Sign.zip
if [ ! -f "${PWD##*/}-Compressed-Sign.zip-signed-${DATE}" ]; then
gdialog --title "Error" --msgbox "${PWD##*/}-Compressed-Sign.zip was not able to sign for some reason" 200 200
else
gdialog --title "Success" --msgbox "${PWD##*/}-Compressed-Sign.zip-signed-${DATE} created" 200 200
fi
exit 0