aboutsummaryrefslogtreecommitdiff
path: root/mix.exs
blob: d769ba046fcd34773d768db3d2491a009f82fde3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
defmodule Thulani.MixProject do
  use Mix.Project

  def project do
    [
      apps_path: "apps",
      version: "0.1.0",
      start_permanent: Mix.env() == :prod,
      deps: deps(),
      releases: releases(),
      default_release: :thulani_flex
    ]
  end

  defp deps do
    []
  end

  defp releases do
    applications = [thulani_bot: :permanent]

    [
      thulani_flex: [
        include_executables_for: [:unix, :windows],
        strip_beams: false,
        applications: applications
      ],
      thulani_prod: [
        include_executables_for: [:unix],
        strip_beams: true,
        applications: applications
      ]
    ]
  end
end