Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 55e6a392 authored by Pixelcode's avatar Pixelcode Committed by Weblate
Browse files

Translated using Weblate (German)

Currently translated at 33.0% (35 of 106 strings)

Translation: /e/ support center/Pages/Easy-Installer-Contribute
Translate-URL: https://i18n.e.foundation/projects/e-support-center/pageseasy-installer-contribute/de/
parent d2d593b2
Loading
Loading
Loading
Loading
+17 −17
Original line number Diff line number Diff line
@@ -74,13 +74,13 @@ i.e: `./gradlew dist windows` or `./gradlew dist linux`
    - First step is to create configuration files for the Easy Installer
    - If necessary, create the missing scripts to be able to achieve the installation

## Wie unterstützt man neues Gerät oder fügt es hinzu?
## How to support or add a new device ?

The easy-installer uses two configuration files for each device.
Der Easy-Installer nutzt zwei Konfigurationsdateien für jedes Gerät.

_note: We are using herolte (Samsung galaxy S7) as an example here_
_Hinweis: Wir nutzen hier herolte (Samsung galaxy S7) als Beispiel._

The config files are located in "src/main/resources/yaml/" folder.
Die Konfigurationsdateien befinden sich im Ordner „src/main/resources/yaml/.

```
src
@@ -98,12 +98,12 @@ src
--------**herolte_fs.yml**
```

#### 1. First file: <device_code_name>.yml
#### 1. Erste Datei: <device_code_name>.yml

The first file "herolte.yml" defines the flashing process.
The file is a [YAML](https://yaml.org/) resource.
Die erste Datei „herolte.yml definiert den Flashing-Prozess.
Die Datei ist eine [YAML](https://yaml.org/)-Ressource.

#### Structures and nodes of the file
#### Strukturen und Knoten der Datei

``` yaml
name: herolte
@@ -135,18 +135,18 @@ flash:
...
```

- `Name` defines the codename of the device. This value is a simple String.
_example: `herolte` for S7, `hero2lte` for S7 edge, `dreamlte` for S8, ..._
- `Name` definiert den Codenamen des Geräts. Dieser Wert ist eine einfache Zeichenkette.
_Beispiel: `herolte` für das S7, `hero2lte` für das S7 edge, `dreamlte` für das S8 usw._

- `f1` is the step key (it identifies the step). The value is the step defined by following elements:
- `f1` ist der Step-Schlüssel (er identifiziert den Step). Der Wert ist der Step, der durch die folgenden Elemente definiert wird:

- `script` contains the name of the flash-script to call. There is no extension because it is defined at runtime (this allows to use either ".sh" for linux and mac or ".bat" for windows)
- `parameters` contains a map of parameters to use when the script is called. The order should be the one expected by the script. There are two types of values for a parameter:
- `script` beinhaltet den Namen des aufzurufenden Flash-Skripts. Es ist keine Erweiterung angegeben, weil sie erst bei der Laufzeit definiert wird (das erlaubt es uns, entweder .sh für Linux und Mac oder .bat für Windows zu nutzen).
- `parameters` beinhaltet eine Karte von Parametern, die zu nutzen sind, wenn das Skript aufgerufen wird. Die Reihenfolge sollte der vom Skript erwarteten entsprechen. Es gibt zwei Werttypen für einen Parameter:

	1. a fixed parameter which is a raw string.
	_example: `my_key: foobar`_
	2. a changing parameter which is defined at runtime. Then its value must be the key - in uppercase - wrapped in '{' and starts with '$'.
	_example: `my_key: ${MY_KEY}`_
	1. Ein fester Parameter (rohe Zeichenkette).
	_Beispiel: `my_key: foobar`_
	2. Ein sich ändernder Parameter, der bei Laufzeit definiert wird. Dann muss sein Wert der Schlüssel – in Großbuchstaben und in '{' eingeschlossen – sein und mit '$' beginnen.
	_Beispiel: `my_key: ${MY_KEY}`_

- `codes` contains two sub lists: `ok` corresponds to script's exit when the step succeeds, and `ko` corresponds to script's exit when there is an error.
The codes returned by the script are always numeric value.