diff options
Diffstat (limited to 'util')
-rw-r--r-- | util/1-setup-path-win.bat | 66 | ||||
-rw-r--r-- | util/2-setup-environment-win.bat | 72 | ||||
-rw-r--r-- | util/ELEVATE_LICENSE.md | 25 | ||||
-rw-r--r-- | util/Win_Check.bat | 208 | ||||
-rwxr-xr-x | util/activate_msys2.sh | 1 | ||||
-rwxr-xr-x | util/activate_wsl.sh | 1 | ||||
-rw-r--r-- | util/add-paths.bat | 30 | ||||
-rw-r--r-- | util/elevate.exe | bin | 79360 -> 0 bytes | |||
-rwxr-xr-x | util/linux_install.sh | 11 | ||||
-rwxr-xr-x | util/msys2_install.sh | 14 | ||||
-rwxr-xr-x | util/win_shared_install.sh | 4 | ||||
-rwxr-xr-x | util/wsl_install.sh | 15 |
12 files changed, 7 insertions, 440 deletions
diff --git a/util/1-setup-path-win.bat b/util/1-setup-path-win.bat deleted file mode 100644 index 699aee2152..0000000000 --- a/util/1-setup-path-win.bat +++ /dev/null @@ -1,66 +0,0 @@ -@SETLOCAL ENABLEEXTENSIONS ENABLEDELAYEDEXPANSION -@ECHO OFF -SET CMDLINERUNSTR=%SystemRoot%\system32\cmd.exe - -DEL script1.log > NUL 2>&1 -DEL add-paths.log > NUL 2>&1 -DEL add-paths-detail.log > NUL 2>&1 -DEL UPDATE > NUL 2>&1 - -ELEVATE -wait add-paths.bat >> script1.log 2>&1 - -IF ERRORLEVEL 1 ( - ECHO You denied admin access. Rerun the script, and be sure to press the yes button this time. -) ELSE ( - TYPE add-paths.log 2> NUL -) -ECHO. - -:: Branch to UpdateEnv if we need to update -IF EXIST UPDATE ( - DEL UPDATE - GOTO UpdateEnv -) - -GOTO ExitBatch - -:: ----------------------------------------------------------------------------- - -:UpdateEnv -ECHO Making updated PATH go live . . . -REG delete HKCU\Environment /F /V TEMPVAR > NUL 2>&1 -setx TEMPVAR 1 > NUL -REG delete HKCU\Environment /F /V TEMPVAR > NUL 2>&1 -IF NOT !cmdcmdline! == !CMDLINERUNSTR! (CALL :KillExplorer) -GOTO ExitBatch - -:: ----------------------------------------------------------------------------- - -:ExitBatch -ENDLOCAL -PAUSE -EXIT /b - -:: ----------------------------------------------------------------------------- - -:KillExplorer -ECHO. -ECHO. -ECHO Your desktop will be restarted. -ECHO. -ECHO All file explorer windows except for the one you launched this script from WILL BE CLOSED. -ECHO. -ECHO Press enter when ready, or close this window if you would rather do a full restart of your computer at a later time. -ECHO. -PAUSE -ping -n 5 127.0.0.1 > NUL 2>&1 -ECHO Killing process Explorer.exe. . . -ECHO. -taskkill /f /im explorer.exe > NUL -ECHO. -ECHO Your desktop is now loading. . . -ECHO. -ping -n 5 127.0.0.1 > NUL 2>&1 -START explorer.exe -START explorer.exe %CD% -EXIT /b
\ No newline at end of file diff --git a/util/2-setup-environment-win.bat b/util/2-setup-environment-win.bat deleted file mode 100644 index 22a2e17f70..0000000000 --- a/util/2-setup-environment-win.bat +++ /dev/null @@ -1,72 +0,0 @@ -@SETLOCAL ENABLEEXTENSIONS ENABLEDELAYEDEXPANSION -@ECHO OFF - -CD %~dp0 - -SET STARTINGDIR=%CD% -echo %STARTINGDIR% - -:: Check for admin privilages -SETX /M test test > nul 2>&1 -IF NOT ["%ERRORLEVEL%"]==["0"] ( - ELEVATE -wait 2-setup-environment-win.bat & goto :EOF -) - -DEL %STARTINGDIR%\environment-setup.log - -:: Make sure path to MinGW exists - if so, CD to it -SET MINGWPATH="C:\MinGW\bin" -IF NOT EXIST !MINGWPATH! (ECHO Path not found: %MINGWPATH%. Did you install MinGW to the default location? && GOTO ExitBatch) -CD /D %MINGWPATH% - -ECHO. -ECHO ------------------------------------------ -ECHO Installing wget and unzip -ECHO ------------------------------------------ -ECHO. -mingw-get install msys-wget-bin msys-unzip-bin - -MKDIR temp -CD temp - -ECHO. -ECHO ------------------------------------------ -ECHO Installing dfu-programmer. -ECHO ------------------------------------------ -ECHO. -wget --no-check-certificate 'http://downloads.sourceforge.net/project/dfu-programmer/dfu-programmer/0.7.2/dfu-programmer-win-0.7.2.zip' >> %STARTINGDIR%\environment-setup.log -unzip -o dfu-programmer-win-0.7.2.zip >> %STARTINGDIR%\environment-setup.log -COPY dfu-programmer.exe .. >> %STARTINGDIR%\environment-setup.log - -ECHO ------------------------------------------ -ECHO Downloading driver -ECHO ------------------------------------------ -wget --no-check-certificate http://downloads.sourceforge.net/project/libusb-win32/libusb-win32-releases/1.2.6.0/libusb-win32-bin-1.2.6.0.zip >> %STARTINGDIR%\environment-setup.log -unzip -o libusb-win32-bin-1.2.6.0.zip >> %STARTINGDIR%\environment-setup.log -COPY libusb-win32-bin-1.2.6.0\bin\x86\libusb0_x86.dll ../libusb0.dll >> %STARTINGDIR%\environment-setup.log - -ECHO. -ECHO ------------------------------------------ -ECHO Installing driver. Accept prompt. -ECHO ------------------------------------------ -ECHO. -IF EXIST "%WinDir%\System32\PnPUtil.exe" (%WinDir%\System32\PnPUtil.exe -i -a dfu-prog-usb-1.2.2\atmel_usb_dfu.inf && GOTO PNPUTILFOUND) -IF EXIST "%WinDir%\Sysnative\PnPUtil.exe" (%WinDir%\Sysnative\PnPUtil.exe -i -a dfu-prog-usb-1.2.2\atmel_usb_dfu.inf && GOTO PNPUTILFOUND) - -ECHO FAILED. Could not find PnPUtil.exe in "%WinDir%\System32" or "%WinDir%\Sysnative". - -:PNPUTILFOUND - -:: Wait then delete directory -ping -n 5 127.0.0.1 > NUL 2>&1 -CD .. -RD /s /q temp - -ECHO ------------------------------------------ -ECHO Finished! - -:ExitBatch -CD /D %STARTINGDIR% -ENDLOCAL -PAUSE -EXIT /b
\ No newline at end of file diff --git a/util/ELEVATE_LICENSE.md b/util/ELEVATE_LICENSE.md deleted file mode 100644 index 1cf4fda917..0000000000 --- a/util/ELEVATE_LICENSE.md +++ /dev/null @@ -1,25 +0,0 @@ -Elevate was downloaded from [here](https://jpassing.com/2007/12/08/launch-elevated-processes-from-the-command-line/). - -### LICENSE - -The MIT License (MIT) - -Copyright (c) <year> <copyright holders> - -Permission is hereby granted, free of charge, to any person obtaining a copy - of this software and associated documentation files (the "Software"), to deal - in the Software without restriction, including without limitation the rights - to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - copies of the Software, and to permit persons to whom the Software is - furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in - all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN - THE SOFTWARE.
\ No newline at end of file diff --git a/util/Win_Check.bat b/util/Win_Check.bat deleted file mode 100644 index 3fdb656f9c..0000000000 --- a/util/Win_Check.bat +++ /dev/null @@ -1,208 +0,0 @@ -@setlocal ENABLEEXTENSIONS ENABLEDELAYEDEXPANSION -@echo OFF -set BAT_VERSION=v1.0 -set REPORT_NAME=Win_Check_Output.txt - -:: ----------------------------------------------------------------------------- - -cls - -echo QMK Windows Check Output %BAT_VERSION% -echo QMK Windows Check Output %BAT_VERSION%.>%REPORT_NAME% - -:: ----------------------------------------------------------------------------- - -set MINGW_BASE_DIR=C:\MinGW - -set KEYMAP=atomic-pvc -set KEYMAP_CLEAN=atomic-pvc-clean - -:: ----------------------------------------------------------------------------- - -if /I "%1" EQU VERBOSE (goto :Verbose_Make) else (goto :Normal_Make) - -:Normal_Make -set MAKE_CMD_LEVEL_0=make -r -f Makefile COLOR=FALSE -set MAKE_CMD_LEVEL_1=make -r -f ../Makefile COLOR=FALSE -set MAKE_CMD_LEVEL_2=make -r -f ../../Makefile COLOR=FALSE -goto :Start_Report - -:Verbose_Make -echo Verbose Mode -set MAKE_CMD_LEVEL_0=make -r -d -f Makefile COLOR=FALSE VERBOSE=TRUE -set MAKE_CMD_LEVEL_1=make -r -d -f ../Makefile COLOR=FALSE VERBOSE=TRUE -set MAKE_CMD_LEVEL_2=make -r -d -f ../../Makefile COLOR=FALSE VERBOSE=TRUE -goto :Start_Report - -:Start_Report - - -:: ----------------------------------------------------------------------------- - -set HEADER=CURRENT DIRECTORY & call :ReportHeader - -echo %CD%>>%REPORT_NAME% 2>&1 - -echo.>>%REPORT_NAME% 2>&1 - -:: ----------------------------------------------------------------------------- - -set HEADER=CURRENT PATHS & call :ReportHeader - -for %%A in ("%path:;=";"%") do (echo %%~A>>%REPORT_NAME% 2>&1) - -echo.>>%REPORT_NAME% 2>&1 - -:: ----------------------------------------------------------------------------- - -rem set HEADER=CURRENT ENVIRONMENTAL SETTINGS & call :ReportHeader - -rem set>>%REPORT_NAME% 2>&1 -rem echo.>>%REPORT_NAME% 2>&1 - -:: ----------------------------------------------------------------------------- - -set HEADER=KEY EXECUTABLE LOCATIONS - GENERAL & call :ReportHeader - -set FILENAME=make.exe & set VERSION_CMD=--version & set VERSION_FIND="GNU Make" & call :ReportVersion -set FILENAME=git.exe & set VERSION_CMD=--version & set VERSION_FIND="git" & call :ReportVersion -set FILENAME=cmp.exe & set VERSION_CMD=--version & set VERSION_FIND="cmp" & call :ReportVersion - -:: ----------------------------------------------------------------------------- - -set HEADER=EXECUTABLE LOCATIONS - AVR MCU COMPILERS & call :ReportHeader - -set FILENAME=avr-gcc.exe & set VERSION_CMD=--version & set VERSION_FIND="avr" & call :ReportVersion -set FILENAME=avr-objcopy.exe & set VERSION_CMD=--version & set VERSION_FIND="GNU objcopy" & call :ReportVersion -set FILENAME=avr-objdump.exe & set VERSION_CMD=--version & set VERSION_FIND="GNU objdump" & call :ReportVersion -set FILENAME=avr-size.exe & set VERSION_CMD=--version & set VERSION_FIND="GNU size" & call :ReportVersion -set FILENAME=avr-ar.exe & set VERSION_CMD=--version & set VERSION_FIND="GNU ar" & call :ReportVersion -set FILENAME=avr-nm.exe & set VERSION_CMD=--version & set VERSION_FIND="GNU nm" & call :ReportVersion - -:: ----------------------------------------------------------------------------- - -set HEADER=EXECUTABLE LOCATIONS - ARM MCU COMPILERS & call :ReportHeader - -set FILENAME=arm-none-eabi-gcc.exe & set VERSION_CMD=--version & set VERSION_FIND="arm-none-eabi-gcc" & call :ReportVersion -set FILENAME=arm-none-eabi-objcopy.exe & set VERSION_CMD=--version & set VERSION_FIND="GNU objcopy" & call :ReportVersion -set FILENAME=arm-none-eabi-objdump.exe & set VERSION_CMD=--version & set VERSION_FIND="GNU objdump" & call :ReportVersion -set FILENAME=arm-none-eabi-size.exe & set VERSION_CMD=--version & set VERSION_FIND="GNU size" & call :ReportVersion -set FILENAME=arm-none-eabi-ar.exe & set VERSION_CMD=--version & set VERSION_FIND="GNU ar" & call :ReportVersion -set FILENAME=arm-none-eabi-nm.exe & set VERSION_CMD=--version & set VERSION_FIND="GNU nm" & call :ReportVersion - -:: ----------------------------------------------------------------------------- - -set HEADER=EXECUTABLE LOCATIONS - NATIVE COMPILERS & call :ReportHeader - -set FILENAME=gcc.exe & set VERSION_CMD=--version & set VERSION_FIND="gcc" & call :ReportVersion -set FILENAME=objcopy.exe & set VERSION_CMD=--version & set VERSION_FIND="GNU objcopy" & call :ReportVersion -set FILENAME=objdump.exe & set VERSION_CMD=--version & set VERSION_FIND="GNU objdump" & call :ReportVersion -set FILENAME=size.exe & set VERSION_CMD=--version & set VERSION_FIND="GNU size" & call :ReportVersion -set FILENAME=ar.exe & set VERSION_CMD=--version & set VERSION_FIND="GNU ar" & call :ReportVersion -set FILENAME=nm.exe & set VERSION_CMD=--version & set VERSION_FIND="GNU nm" & call :ReportVersion - -:: ----------------------------------------------------------------------------- - -set HEADER=EXECUTABLE LOCATIONS - PROGRAMMERS & call :ReportHeader - -set FILENAME=dfu-programmer.exe & set VERSION_CMD=--version & set VERSION_FIND="dfu" & call :ReportVersion -set FILENAME=batchisp.exe & set VERSION_CMD=-version & set VERSION_FIND="batchisp" & call :ReportVersion -set FILENAME=dfu-util.exe & call :Report -set FILENAME=teensy_loader_cli.exe & call :Report -set FILENAME=hid_bootloader_cli.exe & call :Report -set FILENAME=avrdude.exe & call :Report - -:: ----------------------------------------------------------------------------- - -set HEADER=EXECUTABLE LOCATIONS - OPTIONAL & call :ReportHeader -set FILENAME=cppcheck.exe & call :Report -set FILENAME=doxygen.exe & call :Report -set FILENAME=gdb-config.exe & call :Report -set FILENAME=wget.exe & call :Report -set FILENAME=unzip.exe & call :Report - -:: ----------------------------------------------------------------------------- - -set HEADER=MINGW CHECK - OPTIONAL & call :ReportHeader -if exist %MINGW_BASE_DIR% (echo Expected MinGW Base Dir = %MINGW_BASE_DIR%>>%REPORT_NAME% 2>&1) else (echo Expected MinGW Base Dir = %MINGW_BASE_DIR% - Not Found>>%REPORT_NAME% 2>&1) -echo.>>%REPORT_NAME% 2>&1 -set FILENAME=mingw32-make.exe & set VERSION_CMD=--version & set VERSION_FIND="GNU Make" & call :ReportVersion -if exist %MINGW_BASE_DIR%\bin\make.exe (ECHO It is not recommended to have make.exe in mingw/bin.>>%REPORT_NAME% 2>&1 & echo.>>%REPORT_NAME% 2>&1) - -:: ----------------------------------------------------------------------------- - -set HEADER=MAKE CHECK & call :ReportHeader -if exist Makefile (set MAKE_CMD=%MAKE_CMD_LEVEL_0% & goto MakeFound) -if exist ..\Makefile (set MAKE_CMD=%MAKE_CMD_LEVEL_1% & goto MakeFound) -if exist ..\..\Makefile (set MAKE_CMD=%MAKE_CMD_LEVEL_2% & goto MakeFound) - -echo No Makfile Found.>>%REPORT_NAME% 2>&1 -echo.>>%REPORT_NAME% 2>&1 -echo ------------------------------------------------------------------------->>%REPORT_NAME% 2>&1 - -goto :ContinueAfterMake - -:MakeFound -call :RunMake - -:ContinueAfterMake -goto :ExitBatch - -:ExitBatch - echo Done! - echo. - rem type %REPORT_NAME% - echo. - echo See %REPORT_NAME% for the report. - endlocal -exit /b - -:: ----------------------------------------------------------------------------- - -:RunMake - - echo Makfile Found.>>%REPORT_NAME% 2>&1 - echo.>>%REPORT_NAME% 2>&1 - set HEADER=MAKE CLEAN & call :ReportHeader - echo Make Command = %MAKE_CMD% %KEYMAP_CLEAN%>>%REPORT_NAME% 2>&1 - echo.>>%REPORT_NAME% 2>&1 - %MAKE_CMD% %KEYMAP_CLEAN%>>%REPORT_NAME% 2>&1 - set HEADER=MAKE & call :ReportHeader - echo Make Command = %MAKE_CMD% %KEYMAP%>>%REPORT_NAME% 2>&1 - echo.>>%REPORT_NAME% 2>&1 - %MAKE_CMD% %KEYMAP%>>%REPORT_NAME% 2>&1 - echo ------------------------------------------------------------------------->>%REPORT_NAME% 2>&1 - echo.>>%REPORT_NAME% 2>&1 -exit /b - -:ReportHeader - echo ------------------------------------------------------------------------->>%REPORT_NAME% 2>&1 - echo.>>%REPORT_NAME% 2>&1 - echo %HEADER%>>%REPORT_NAME% 2>&1 - echo.>>%REPORT_NAME% 2>&1 -exit /b - -:Report - echo Filename = %FILENAME% >>%REPORT_NAME% 2>&1 - <nul set /p output="Location = " >>%REPORT_NAME% 2>&1 - where %FILENAME% >>%REPORT_NAME% 2> NUL - if ERRORLEVEL 1 (echo Not Found >>%REPORT_NAME% 2>&1 & goto :EndReport) - - :EndReport - echo.>>%REPORT_NAME% 2>&1 - <nul set /p output="." -exit /b - -:ReportVersion - echo Filename = %FILENAME% >>%REPORT_NAME% 2>&1 - <nul set /p output="Location = " >>%REPORT_NAME% 2>&1 - where %FILENAME% >>%REPORT_NAME% 2> NUL - if ERRORLEVEL 1 (echo Not Found >>%REPORT_NAME% 2>&1 & goto :EndReportVersion) - <nul set /p output ="Version = " >>%REPORT_NAME% 2>&1 - - (%FILENAME% %VERSION_CMD% | find %VERSION_FIND%) >>%REPORT_NAME% 2>&1 - - :EndReportVersion - echo.>>%REPORT_NAME% 2>&1 - <nul set /p output="." -exit /b
\ No newline at end of file diff --git a/util/activate_msys2.sh b/util/activate_msys2.sh index 07888ffe12..8741cc6b06 100755 --- a/util/activate_msys2.sh +++ b/util/activate_msys2.sh @@ -6,7 +6,6 @@ function export_variables { export PATH=$PATH:$util_dir/dfu-programmer export PATH=$PATH:$util_dir/dfu-util-0.9-win64 export PATH=$PATH:$util_dir/bootloadHID.2012-12-08/commandline - export PATH=$PATH:$util_dir/flip/bin export PATH=$PATH:$util_dir/avr8-gnu-toolchain/bin export PATH=$PATH:$util_dir/gcc-arm-none-eabi/bin } diff --git a/util/activate_wsl.sh b/util/activate_wsl.sh index 78bbf9ccbf..26a47187a9 100755 --- a/util/activate_wsl.sh +++ b/util/activate_wsl.sh @@ -8,7 +8,6 @@ function export_variables { export DFU_UTIL=$download_dir/dfu-util-0.9-win64/dfu-util.exe export TEENSY_LOADER_CLI=$download_dir/teensy_loader_cli.exe export BOOTLOADHID_PROGRAMMER=$download_dir/bootloadHID.2012-12-08/commandline/bootloadHID.exe - export BATCHISP=batchisp.exe } export_variables diff --git a/util/add-paths.bat b/util/add-paths.bat deleted file mode 100644 index ab3d91da17..0000000000 --- a/util/add-paths.bat +++ /dev/null @@ -1,30 +0,0 @@ -@SETLOCAL ENABLEEXTENSIONS ENABLEDELAYEDEXPANSION -@ECHO off - -SET NEWPATH1="C:\MinGW\msys\1.0\bin" -SET NEWPATH2="C:\MinGW\bin" - -CD %~dp0 - -ECHO. > add-paths.log - -CALL :AddPath %NEWPATH1% -CALL :AddPath %NEWPATH2% - -EXIT /b - -:AddPath <pathToAdd> -ECHO %PATH% | FINDSTR /C:"%~1" > nul -IF ERRORLEVEL 1 ( - REG add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment" /f /v PATH /t REG_SZ /d "%PATH%;%~1" >> add-paths-detail.log - IF ERRORLEVEL 0 ( - ECHO Adding %1 . . . Success! >> add-paths.log - SET "PATH=%PATH%;%~1" - COPY NUL UPDATE - ) ELSE ( - ECHO Adding %1 . . . FAILED. Run this script with administrator privileges. >> add-paths.log - ) -) ELSE ( - ECHO Skipping %1 - Already in PATH >> add-paths.log - ) -EXIT /b
\ No newline at end of file diff --git a/util/elevate.exe b/util/elevate.exe Binary files differdeleted file mode 100644 index fc6180ec92..0000000000 --- a/util/elevate.exe +++ /dev/null diff --git a/util/linux_install.sh b/util/linux_install.sh index 048b2f3189..9ef0641576 100755 --- a/util/linux_install.sh +++ b/util/linux_install.sh @@ -105,17 +105,17 @@ elif grep ID /etc/os-release | grep -q gentoo; then sudo touch /etc/portage/package.use/qmkfirmware # tee is used here since sudo doesn't apply to >> echo "sys-devel/gcc multilib" | sudo tee --append /etc/portage/package.use/qmkfirmware >/dev/null - sudo emerge -auN \ + sudo emerge -auN sys-devel/gcc + sudo emerge -au --noreplace \ app-arch/unzip \ app-arch/zip \ app-mobilephone/dfu-util \ dev-embedded/avrdude \ - dev-lang/python:3.5 \ net-misc/wget \ sys-devel/clang \ - sys-devel/gcc \ sys-devel/crossdev - sudo crossdev -s4 --stable --g =4.9.4 --portage --verbose --target avr + sudo crossdev -s4 --stable --g \<9 --portage --verbose --target avr + sudo crossdev -s4 --stable --g \<9 --portage --verbose --target arm-none-eabi echo "Done!" else echo "Quitting..." @@ -132,7 +132,8 @@ elif grep ID /etc/os-release | grep -q sabayon; then sys-devel/clang \ sys-devel/gcc \ sys-devel/crossdev - sudo crossdev -s4 --stable --g =4.9.4 --portage --verbose --target avr + sudo crossdev -s4 --stable --g \<9 --portage --verbose --target avr + sudo crossdev -s4 --stable --g \<9 --portage --verbose --target arm-none-eabi echo "Done!" elif grep ID /etc/os-release | grep -qE "opensuse|tumbleweed"; then diff --git a/util/msys2_install.sh b/util/msys2_install.sh index 001f55dc48..55df9c007b 100755 --- a/util/msys2_install.sh +++ b/util/msys2_install.sh @@ -4,11 +4,10 @@ dir=$(cd -P -- "$(dirname -- "$0")" && pwd -P) download_dir=~/qmk_utils avrtools=avr8-gnu-toolchain armtools=gcc-arm-none-eabi -installflip=false util_dir=$(dirname "$0") echo "Installing dependencies needed for the installation (quazip)" -pacman --needed --noconfirm --disable-download-timeout -Sy base-devel mingw-w64-x86_64-toolchain mingw-w64-x86_64-clang msys/git msys/p7zip mingw-w64-x86_64-python3-pip msys/unzip +pacman --needed --noconfirm --disable-download-timeout -Sy base-devel mingw-w64-x86_64-toolchain mingw-w64-x86_64-clang git mingw-w64-x86_64-python3-pip unzip source "$dir/win_shared_install.sh" @@ -31,19 +30,8 @@ function install_arm { rm gcc-arm-none-eabi-8-2019-q3-update-win32.zip } -function extract_flip { - rm -f -r flip - 7z -oflip x FlipInstaller.exe -} - pushd "$download_dir" -if [ -f "FlipInstaller.exe" ]; then - echo - echo "Extracting flip" - extract_flip -fi - if [ ! -d "$avrtools" ]; then echo echo "The AVR toolchain is not installed." diff --git a/util/win_shared_install.sh b/util/win_shared_install.sh index 1265cb027f..072ca47c81 100755 --- a/util/win_shared_install.sh +++ b/util/win_shared_install.sh @@ -22,10 +22,6 @@ function install_utils { wget 'https://www.obdev.at/downloads/vusb/bootloadHID.2012-12-08.zip' unzip bootloadHID.2012-12-08.zip - echo "Installing Atmel Flip" - wget 'http://ww1.microchip.com/downloads/en/DeviceDoc/Flip%20Installer%20-%203.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 - diff --git a/util/wsl_install.sh b/util/wsl_install.sh index 197d9f089e..8ed177ca3e 100755 --- a/util/wsl_install.sh +++ b/util/wsl_install.sh @@ -31,21 +31,6 @@ source "$dir/win_shared_install.sh" pip3 install -r ${util_dir}/../requirements.txt -pushd "$download_dir" -while true; do - echo - echo "Flip need to be installed if you want to use that for programming." - echo "Please install it to the default location!" - read -p "Do you want to install it now? (Y/N) " res - case $res in - [Yy]* ) cmd.exe /c FlipInstaller.exe; break;; - [Nn]* ) break;; - * ) echo "Invalid answer";; - esac -done -popd - - echo echo "Creating a softlink to the utils directory as ~/qmk_utils." echo "This is needed so that the the make system can find all utils it need." |