This repository contains the source files to build the mbed CLI Windows installer. See the releases page for downloads.
- Windows 7 and above
- Install NSIS, which can be found at nsis.sourceforge.net.
- Download this repository.
- Download prerequisites manually or run following powershell script.
$ cd prerequisites
$ powershell -ExecutionPolicy ByPass -File download-prerequisites.ps1
- Run makensis on the
source/install.nsi
with an output file.
$ makensis "/XOutFile Mbed_installer.exe" source/install.nsi
- Test the installer that was just generated
- Set sign credentials, get url ID to upload installer
$ curl -H "Content-Type: application/json" -X POST -d "{\"username\": \"arkzal01\",\"vendor-url\":\"www.mbed.com\",\"description\":\"Mbed CLI Windows Installer\",\"cross-sign\":true,\"digest-algorithm\":\"sha2\"}" http://authenticode.euhpc.arm.com:8087/signed-items
- Use url ID to upload installer exe and receive signed installer. This operation may take few minutes. Replace {url_id} in the following with the guid output by the above command.l ID to upload installer
$ curl -H "Content-Type: application/octet-stream" http://authenticode.euhpc.arm.com:8087/signed-items/{url_id}/sign --upload-file Mbed_installer_v0.0.1.exe > Mbed_installer_signed_v0.0.1.exe
- Login on
www.mbed.com
as an admin. - Navigate to django administration console:
https://www.mbed.com/admin
- Go into
django filer->Folders->mbed-cli->Windows
- Upload installer
- Get direct url to the installer
The same release should also be created on github in releases.
- Install the mbed CLI dependencies - Python, GCC, Mercurial, Git and the mbed Serial Driver - and then mbed CLI 1.4.0 from source.
- Contains two installer types:
- Default: Installs all dependencies.
- Advanced: Allows to select dependencies.
$ cd source
$ mbed_installer_{version}.exe /S
- Download the latest release of the mbed CLI Windows installer.
- Run
mbed_installer_vX.X.X.exe
- and click through the wizard. - Open windows command prompt.
- Use
mbed import mbed-os-example-blinky
to import an example program.
Manual installation: You can install mbed CLI also by hand. See the mbed CLI repository.
When needed, you can update the gcc, cmake, or other dependencies by updating the executables in /prerequisites/*
and then the equivalent lines in the Config Section
of /source/mbedInstall.nsi
.
mbed CLI Windows Installer is licensed under Apache-2.0