Skip to content

Commit

Permalink
Update mbed-cli to version 1.7.5
Browse files Browse the repository at this point in the history
Update README
  • Loading branch information
arekzaluski committed Aug 1, 2018
1 parent 88ba01d commit 587fbb8
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 7 deletions.
25 changes: 25 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,31 @@ $ powershell -ExecutionPolicy ByPass -File download-prerequisites.ps1
5. Click 'File > Load Script' and select `source/install.nsi`.
6. Click 'Test installer' to build (output directory is `source`).


## Sign installer using Arm license server

1. 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
```

2. 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
```

## Release

1. Login on `www.mbed.com` as an admin.
2. Navigate to django administration console: `https://www.mbed.com/admin`
3. Go into `django filer->Folders->mbed-cli->Windows`
4. Upload installer
5. Get direct url to the installer

The same release should also be created on github in releases.

## Process

* Install the mbed CLI dependencies - Python, GCC, Mercurial, Git and the mbed Serial Driver - and then mbed CLI 1.4.0 from source.
Expand Down
2 changes: 1 addition & 1 deletion prerequisites/THIRD-PARTY.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

Python 2.7.13
Python 2.7.14
See: https://docs.python.org/2/license.html

PYTHON SOFTWARE FOUNDATION LICENSE VERSION 2
Expand Down
6 changes: 3 additions & 3 deletions prerequisites/download-prerequisites.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@ $url = "https://www.python.org/ftp/python/2.7.14/python-2.7.14.msi"
$file = "$storageDir\python-2.7.14.msi"
$webclient.DownloadFile($url,$file)
#Download Python 64bit
$url = "https://www.python.org/ftp/python/2.7.14/python-2.7.14.amd64.msi"
$url = "https://python.org/ftp/python/2.7.14/python-2.7.14.amd64.msi"
$file = "$storageDir\python-2.7.14.amd64.msi"
$webclient.DownloadFile($url,$file)
#Download mbedWinSerial
$url = "https://developer.mbed.org/media/downloads/drivers/mbedWinSerial_16466.exe"
$file = "$storageDir\mbedWinSerial_16466.exe"
$webclient.DownloadFile($url,$file)
#Download mbed-cli
$url = "https://github.com/ARMmbed/mbed-cli/archive/1.7.2.zip"
$file = "$storageDir\mbed-cli-1.7.2.zip"
$url = "https://www.github.com/ARMmbed/mbed-cli/archive/1.7.5.zip"
$file = "$storageDir\mbed-cli-1.7.5.zip"
$webclient.DownloadFile($url,$file)
6 changes: 3 additions & 3 deletions source/install.nsi
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ ${StrTrimNewLines}
;--------------------------------
;Config Section
!define PRODUCT_NAME "Mbed CLI for Windows"
!define PRODUCT_VERSION "0.4.7"
!define MBED_CLI_ZIP "mbed-cli-1.7.2.zip"
!define MBED_CLI_VERSION "mbed-cli-1.7.2"
!define PRODUCT_VERSION "0.4.8"
!define MBED_CLI_ZIP "mbed-cli-1.7.5.zip"
!define MBED_CLI_VERSION "mbed-cli-1.7.5"
!define MBED_CLI_ENV "MBED_CLI_TOOLS"
!define PRODUCT_PUBLISHER "Arm Mbed"
!define PYTHON_INSTALLER "python-2.7.14.msi"
Expand Down

0 comments on commit 587fbb8

Please sign in to comment.