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

Commit d752e60a authored by Timo M.'s avatar Timo M. Committed by Weblate
Browse files

Translated using Weblate (German)

Currently translated at 33.9% (36 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 deb6a322
Loading
Loading
Loading
Loading
+17 −17
Original line number Diff line number Diff line
@@ -76,11 +76,11 @@ i.e: `./gradlew dist windows` or `./gradlew dist linux`

## How to support or add a new device ?

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

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

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

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

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

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

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

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

- `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._
- `Name` defines the codename of the device. This value is a simple String.
_example: `herolte` for S7, `hero2lte` for S7 edge, `dreamlte` for S8, ..._

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

- `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:
- `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:

	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}`_
	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}`_

- `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.
@@ -177,7 +177,7 @@ example: `output: ${MY_KEY}` corresponds to a step where the installer should re
This is the only step which is empty. There is no script "askAccount". It is used by easy-intaller to know when to show the UI which lets the user request an invitation email to create an account. Please always add this step before the last step.


#### 2. Second files: <device_code_name>_fs.yml
#### 2. Zweite Dateien: <device_code_name>_fs.yml

This second file specifies extra data (which aren't optional)