Actually install flip instead of just extracting

daktil_thumb_popravljen
Fred Sundvik 2017-05-28 20:36:27 +03:00
parent b8899b48b4
commit 3d3999d863
2 changed files with 19 additions and 3 deletions

View File

@ -6,7 +6,7 @@ download_dir=$util_dir/wsl_downloaded
export DFU_PROGRAMMER=$download_dir/dfu-programmer/dfu-programmer.exe
export DFU_UTIL=$download_dir/dfu-util-0.9-win64/dfu-util.exe
export TEENSY_LOADER_CLI=$download_dir/teensy_loader_cli.exe
export BATCHISP=$download_dir/Flip/bin/batchisp.exe
export BATCHISP=batchisp.exe

View File

@ -22,13 +22,12 @@ function install_utils {
echo "Installing Atmel Flip"
wget 'http://www.atmel.com/images/Flip%20Installer%20-%203.4.7.112.exe'
7z x -oFlip Flip\ Installer\ -\ 3.4.7.112.exe
mv Flip\ Installer\ \-\ 3.4.7.112.exe FlipInstaller.exe
echo "Downloading the QMK driver installer"
wget -qO- https://api.github.com/repos/qmk/qmk_driver_installer/releases | grep browser_download_url | head -n 1 | cut -d '"' -f 4 | wget -i -
rm -f *.zip
rm Flip\ Installer\ -\ 3.4.7.112.exe
popd > /dev/null
}
@ -83,6 +82,17 @@ else
done
fi
while true; do
echo
read -p "Flip need to be installed if you want to use that for programming, do you want to install it now? (Y/N) " res
case $res in
[Yy]* ) cmd.exe /c $download_dir\\FlipInstaller.exe; break;;
[Nn]* ) break;;
* ) echo "Invalid answer";;
esac
done
while true; do
echo
echo "Which USB drivers do you want to install?"
@ -106,5 +116,11 @@ echo "This is needed so that the the make system can find all utils it need."
read -p "Press any key to continue (ctrl-c to abort)"
ln -sf "$dir" ~/qmk_utils
echo
echo "******************************************************************************"
echo "Installation completed!"
echo "You need to open a new batch command prompt for all the utils to work properly"
echo "******************************************************************************"
popd > /dev/null