maxInstances: true
fragments:
  - "main"
{% if os.platform == 'windows' %}
  - "windows"
{% elif os.platform == 'darwin' %}
  - "darwin"
{% elif os.platform == 'linux' %}
  - "linux"
{% endif %}
  - "{{ game.settings.pack }}"

settings:
  - name: "pack"
    default: "remastered"
    label:
      en: "Version"
      fr: "Version"
      de: "Version"
      es: "Version"
      it: "Version"
      pt: "Version"
    type: select
    options:
      - label: "Classic"
        value: "classic"
      - label: "Remastered"
        value: "remastered"

{% if os.platform == 'windows' %}
executable: "Dofus Retro.exe"
{% endif %}

{% if os.platform == 'darwin' %}
executable: "Dofus Retro.app/Contents/MacOS/Dofus Retro"
{% endif %}

{% if os.platform == 'linux' %}
executable: "./dofus1electron"
{% endif %}

arguments:
  - "--port={{ env.ZAAP_PORT }}"
  - "--gameName={{ env.ZAAP_GAME }}"
  - "--gameRelease={{ env.ZAAP_RELEASE }}"
  - "--instanceId={{ env.ZAAP_INSTANCE_ID }}"
  - "--gameInstanceKey={{ env.ZAAP_HASH }}"