update credits
[librepilot.git] / make / tool_install / 7z.sh
blob65debf69b1bd636a1c48c2d6beefc723aeb4b433
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
10 no_extract=true
12 module_file=bin
14 #Override
15 function validate_target { [ "$uname" = Windows ]; }
17 # Override
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
22 then
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//\//\\}"