-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathload_config_file.sh
37 lines (30 loc) · 1.21 KB
/
load_config_file.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
#!/usr/bin/env bash
loadConfigFile()
{
if [ -z $configFileLoaded ]; then
configFileLoaded=1
parseFile "${configFile}" knownOptions[@] params
fi
}
if [ -z $configFileIncluded ]; then
configFileIncluded=1
# Config file name
if [ -z ${configFile} ]; then
configFile=".config"
fi
declare -A params=()
declare -a knownOptions=("identity" "signtool_options" "notarization_profile" "use_sparkle" "changelog_script_url" "appcast_releases" "appcast_betas" "appcast_releases_fallback" "appcast_betas_fallback" "symbols_symstore_path" "symbols_windows_pdb_server_path" "symbols_macos_dsym_server_path")
# Default values
params["identity"]=""
params["notarization_profile"]=""
params["use_sparkle"]=false
params["changelog_script_url"]=""
params["appcast_releases"]="https://localhost/appcast-release.xml"
params["appcast_betas"]="https://localhost/appcast-beta.xml"
params["appcast_releases_fallback"]="https://localhost/appcast-release.xml"
params["appcast_betas_fallback"]="https://localhost/appcast-beta.xml"
params["signtool_options"]="/a /sm /q /fd sha256 /tr http://timestamp.sectigo.com /td sha256"
if [[ $(type -t extend_lcf_fnc_init) == function ]]; then
extend_lcf_fnc_init knownOptions params
fi
fi