Commit 27c8ef6a authored by Adrien's avatar Adrien

add instructions to disable sleep mode on macos

parent 3e67a9b8
......@@ -40,14 +40,15 @@ Provide a REST endpoint used by our CI to sign MacOs and windows binaries with o
## Prerequisites
* Root access on an up to date MacOs
* Credentials of the Bonoitasoft apple developer account
* Credentials of the Bonitasoft apple developer account
* JDK 8
* XCode (used to generate certificates)
* Xcode (used to generate certificates)
* The host should be named `codesign.rd.lan-mac`
* Disable sleep mode -> Open a terminal and type the following cmd: `pmset noidle` (Leave it alive, do not exit)
## Install certificates
You can skip the Xcode part if you have already generated valid certificates. If so, just download them and import them in the keychain access (Applications -> Utilities).
You can skip the Xcode part if you have already generated valid certificates. If so, just download import them in the keychain access (Applications -> Utilities).
* Launch Xcode
* Xcode -> preference -> Manage certificates
......@@ -60,10 +61,10 @@ You can skip the Xcode part if you have already generated valid certificates. If
* Go to our [Artifactory](http://repositories.rd.lan/maven/releases/org/bonitasoft/releng/bonita-codesign-windows/) to retrieve the latest tag (zip archive)
* Extract the bonita-codesign-windows jar
* You must start the service as the root user -> `sudo su`
* You must start the service as the root user -> `sudo su` (careful now!)
* Start the service using cmd : `java -jar path/to/bonita-codesign-windows-<version>.jar`
* Make sure the service is started on 8080 port as the URL on the CI are configured on this port.
* The endpoints should available at `http://codesign-mac.rd.lan:8080/sign` and `http://codesign-mac.rd.lan:8080/buildAndSignMacInstaller`, it accepts `POST` method with a parameter `exeFile`
* The endpoints are available at `http://codesign-mac.rd.lan:8080/sign` and `http://codesign-mac.rd.lan:8080/buildAndSignMacInstaller`, both accept `POST` method with a parameter `exeFile`
* The first endpoint is used to sign the product: the .app must be sent in a zip file and will be returned in a zip file
* The second aendpoint is used to build and sign the dmg: the .app of the installer must be sent in a zip file, and the dmg will be returned in a zip file
* The second endpoint is used to build and sign the dmg: the .app of the installer must be sent in a zip file, and the dmg will be returned in a zip file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment