Skip to content

Files

Latest commit

 

History

History

installation-script

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Installation script

This shell script does the following:

  1. If no version was specified via the command line, scrape the HTML of the project repository's releases page to determine the latest version.
  2. Download appropriate version and architecture of the application from Arduino's download server.
  3. Extract the downloaded archive to the appropriate location.
  4. Notify the user if the installation is not in their $PATH.

Requirements

  • 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

Installation

Assets

Configuration

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").

Commit message

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.