wpilibsuite / WPILibInstaller-Avalonia

Other
8 stars 22 forks source link

Add option for running by CLI args #11

Open Starlight220 opened 4 years ago

Starlight220 commented 4 years ago

This would be very helpful for install automation. I can try to help implement this, but I am not very sure in my ability to help significantly.

RyanHir commented 3 years ago

While not ideal, It is still possible to automate (at least for Linux, I have not tested other Operating Systems). In every OS release (for 2021) there is a companion archive with the files that will go into the ~/wpilib/YEAR/

Install instructions for Linux for the 2021 release (mostly) in CLI. A install would look similar to...

  1. Download archive from https://github.com/wpilibsuite/allwpilib/releases (2021>=)
  2. tar xf WPILib_Linux-2021.1.1-beta-4.tar.gz
  3. mkdir 2021
  4. cd 2021
  5. mv ../WPILib_Linux-2021.1.1-beta-4/WPILib_Linux-2021.1.1-beta-4-artifacts.tar.gz .
  6. tar xf WPILib_Linux-2021.1.1-beta-4-artifacts.tar.gz
  7. rm WPILib_Linux-2021.1.1-beta-4-artifacts.tar.gz
  8. cd ..
  9. mkdir -p ~/wpilib
  10. mv 2021 ~/wpilib

    Note, everything later is optional

  11. rm -rf WPILib_Linux-*
  12. cd ~/wpilib/2021/tools/ && python3 ToolsUpdater.py
  13. cd ~/wpilib/2021/vsCodeExtensions && find . -name "*.vsix" | xargs -I {} code --install-extension {}
  14. open vscode and set java home per 2020 instructions

I chose to exclude extra instructions such as VSCode installation