Commit a90512e4 authored by Mathias Chouet's avatar Mathias Chouet :spaghetti:
Browse files

Update README for releases, add android build to CI

Showing with 54 additions and 17 deletions
+54 -17
...@@ -6,7 +6,7 @@ stages: ...@@ -6,7 +6,7 @@ stages:
- release-linux - release-linux
- release-windows - release-windows
- release-mac - release-mac
#- release-android - release-android
variables: variables:
LC_ALL: C.UTF-8 LC_ALL: C.UTF-8
...@@ -87,11 +87,11 @@ release-mac: ...@@ -87,11 +87,11 @@ release-mac:
script: script:
- npm run release-mac - npm run release-mac
# release-android: release-android:
# stage: release-android stage: release-android
# only: only:
# - tags - tags
# - schedules - schedules
# - web - web
# script: script:
# - npm run release-android - npm run release-android
...@@ -47,7 +47,7 @@ Then, back to the ngHyd project folder, run : ...@@ -47,7 +47,7 @@ Then, back to the ngHyd project folder, run :
`npm run electron` `npm run electron`
### To build a complete release for Linux (has to be run on Linux platform) ### To build a complete release for Linux (from Linux platform)
`npm run release-linux` `npm run release-linux`
...@@ -55,7 +55,22 @@ Find the .deb package in `/release`. ...@@ -55,7 +55,22 @@ Find the .deb package in `/release`.
Running `dpkg -i cassiopee_*.deb` will install Cassiopée in `/opt/Cassiopee` Running `dpkg -i cassiopee_*.deb` will install Cassiopée in `/opt/Cassiopee`
### To build a complete release for Windows (has to be run on Windows platform)
### To build a complete release for Windows (from Linux platform)
#### install dependencies
* wine >= 2.0 - see https://wiki.winehq.org/Download#binary
#### build .exe installer
`npm run release-windows`
Find the generated installer in `/release`.
Running the generated installer will install Cassiopée in `C:\Users\YourUser\AppData\local\Programs\cassiopee`
### To build a complete release for Windows (from Windows platform)
#### install dependencies #### install dependencies
* python for windows https://www.python.org/downloads/windows/ * python for windows https://www.python.org/downloads/windows/
...@@ -74,19 +89,39 @@ Find the generated installer in `/release`. ...@@ -74,19 +89,39 @@ Find the generated installer in `/release`.
Running the generated installer will install Cassiopée in `C:\Users\YourUser\AppData\local\Programs\cassiopee` Running the generated installer will install Cassiopée in `C:\Users\YourUser\AppData\local\Programs\cassiopee`
### To build a complete release for Android
### To build a complete release for MacOS (from Linux platform)
#### build package
`npm run release-mac`
Find the generated package in `/release`.
Note: the generated package will not be signed.
### To build a complete release for Android (from Linux platform)
#### install dependencies #### install dependencies
* java (system wide) : for ex. `apt install oracle-java8-jdk` * java (system wide) : for ex. `apt install openjdk-8-jdk` or `apt install oracle-java8-jdk`
* gradle (system wide) : `apt install gradle` * gradle (system wide) : `apt install gradle`
#### install Android Studio and SDKs #### install Android Studio and SDKs
Download
Android Studio here and install it : https://developer.android.com/studio
Run Android Studio, click "configure > SDK manager". Install at least one SDK, for ex. 7.0 Nougat. #### using GUI
Download
Android Studio here and install it : https://developer.android.com/studio
Run Android Studio, click "configure > SDK manager". Install at least one SDK, for ex. 7.0 Nougat.
#### using CLI
Download Android SDK Tools from https://developer.android.com/studio : click "DOWNLOAD OPTIONS" then scroll down to "Command line tools only" and choose `sdk-tools-linux-*.zip`. Download and unzip to, for example, `/opt/android/`. Add `/opt/android/tools/bin` to your PATH.
Install an SDK, for example android 28 (Android 9 "Pie") :
* `sdkmanager "platform-tools" "platforms;android-28" "build-tools;28.0.3"`
#### build .apk package #### build .apk package
...@@ -94,6 +129,8 @@ Running the generated installer will install Cassiopée in `C:\Users\YourUser\Ap ...@@ -94,6 +129,8 @@ Running the generated installer will install Cassiopée in `C:\Users\YourUser\Ap
Find the generated package in `/release`. Find the generated package in `/release`.
Note: the generated package will not be signed.
### To generate compodoc ### To generate compodoc
......
Supports Markdown
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