This shell script does the following:
- If no version was specified via the command line, scrape the HTML of the project repository's releases page to determine the latest version.
- Download appropriate version and architecture of the application from Arduino's download server.
- Extract the downloaded archive to the appropriate location.
- Notify the user if the installation is not in their
$PATH
.
- Executable has a
--version
flag. - Release archives follow the standard file name format, as provided by the release and (nightly)[../../workflow-templates/publish-go-nightly-task.md) template workflows.
- Release archives are downloadable from
downloads.arduino.cc
install.sh
- installation script- Install to:
etc/
- Install to:
installation.md
- installation instructions- Install to:
docs/
- Install to:
Set the PROJECT_NAME
variable in install.sh
to the project's repository name (e.g., "arduino-cli").
Replace all occurrences of TODO_PRODUCT_NAME
in installation.md
with the project's product name (e.g., "Arduino CLI").
Replace all occurrences of TODO_REPO_NAME
in installation.md
with the project's repository name (e.g., "arduino-cli").
Add installation script
This shell script provides the option to install the application with a single command.
It defaults to installing the latest release to `./bin/`, but the user also has the option of specifying a version and installation path.