-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathWindows_sign_aax.sh
61 lines (52 loc) · 1.29 KB
/
Windows_sign_aax.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#!/bin/bash
# Developer: Gaël Lane Lépine, Samuel Béland
#==============================================================================
export USAGE="usage:\n\tWindows_regroup_and_sign.sh --cert <certificate-path> --pass <certificate-password>"
function print_usage_and_exit()
{
echo -e "$USAGE"
exit 1
}
export CERT_PATH=""
export PASS=""
#==============================================================================
# Parse args
POSITIONAL=()
while [[ $# -gt 0 ]]
do
key="$1"
case $key in
--cert)
CERT="$2"
shift # past argument
shift # past value
;;
--pass)
PASS="$2"
shift # past argument
shift # past value
;;
*) # unknown option
print_usage_and_exit
;;
esac
done
set -- "${POSITIONAL[@]}" # restore positional parameters
if [[ "$CERT" == "" ]];then
print_usage_and_exit
elif [[ "$PASS" == "" ]];then
print_usage_and_exit
fi
#==============================================================================
# sign the aax plugin
export PLUGIN_PATH="Builds/VisualStudio2022/x64/Release/AAX/ControlGris.aaxplugin"
wraptool sign \
--verbose \
--account grisresearch \
--keyfile "$CERT" \
--keypassword "$PASS" \
--wcguid A4B35290-7C9C-11EB-8B4D-00505692C25A \
--in "$PLUGIN_PATH" \
--out "$PLUGIN_PATH" \
|| exit 1
echo "Done"