1 # tool_url="http://www.7-zip.org/a/7z920.exe"
2 #tool_url="http://www.7-zip.org/a/7z920.msi"
3 tool_url
="http://librepilot.github.io/tools/7za.exe"
5 tool_install_name
="bin/7za.exe"
6 tool_extract_dir
="$tools_dir/bin"
8 bin_dir
=$tool_extract_dir
15 function validate_target
{ [ "$uname" = Windows
]; }
18 function dddownload_and_extract
20 local full_tool_install_name
="$tools_dir/bin/$tool_install_name"
21 if ! [ -e "$full_tool_install_name" ] ||
$force
23 download_and_verify
&& \
24 rm -rf "$full_tool_install_name" && \
25 mkdir
-p "$(dirname "$full_tool_install_name")" && \
26 mv "$downloaded_file" "$full_tool_install_name"
27 #msiexec //i "$downloaded_file" //q INSTALLDIR="$tools_dir"
28 #cmd //C "$downloaded_file" /S /D="${tools_dir//\//\\}"