<!--
  ~ This file is part of the arma3launcher distribution.
  ~ Copyright (c) 2020-2020 Niklas Schütrumpf (Gurkengewuerz)
  ~
  ~ This program is free software: you can redistribute it and/or modify
  ~ it under the terms of the GNU General Public License as published by
  ~ the Free Software Foundation, version 3.
  ~
  ~ This program is distributed in the hope that it will be useful, but
  ~ WITHOUT ANY WARRANTY; without even the implied warranty of
  ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  ~ General Public License for more details.
  ~
  ~ You should have received a copy of the GNU General Public License
  ~ along with this program. If not, see <http://www.gnu.org/licenses/>.
  -->

<assembly xmlns="http://maven.apache.org/ASSEMBLY/2.0.0"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/ASSEMBLY/2.0.0 http://maven.apache.org/xsd/assembly-2.0.0.xsd">
    <id>distribution</id>
    <formats>
        <format>zip</format>
    </formats>

    <includeBaseDirectory>true</includeBaseDirectory>
    <baseDirectory>./</baseDirectory>

    <files>
        <file>
            <source>../gui/target/${project.parent.artifactId}-gui-${gui.version}.jar</source>
            <destName>${project.parent.artifactId}-gui.jar</destName>
            <outputDirectory>./</outputDirectory>
        </file>
        <file>
            <source>src/main/resources/logo.ico</source>
            <destName>logo.ico</destName>
            <outputDirectory>./</outputDirectory>
        </file>
    </files>

    <fileSets>
        <fileSet>
            <directory>./</directory>
            <outputDirectory>logs</outputDirectory>
            <excludes>
                <exclude>*/**</exclude>
            </excludes>
        </fileSet>
        <fileSet>
            <directory>target/launcher/</directory>
            <outputDirectory>./</outputDirectory>
        </fileSet>
    </fileSets>

</assembly>