-
Notifications
You must be signed in to change notification settings - Fork 5
/
mix.exs
54 lines (48 loc) · 1.27 KB
/
mix.exs
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
defmodule Poser.MixProject do
use Mix.Project
@app :poser
@version "0.1.0"
@all_targets [:rpi0, :x86_64]
def project do
[
app: @app,
version: @version,
elixir: "~> 1.9",
archives: [nerves_bootstrap: "~> 1.10"],
start_permanent: Mix.env() == :prod,
build_embedded: true,
deps: deps(),
releases: [{@app, release()}]
]
end
def application do
[
extra_applications: [:logger, :runtime_tools],
included_applications: [],
mod: {Poser.Application, []}
]
end
defp deps do
[
{:nerves, "~> 1.7.16 or ~> 1.8.0", runtime: false},
{:shoehorn, "~> 0.8"},
{:ring_logger, "~> 0.8.1"},
{:toolshed, "~> 0.2.13"},
{:nerves_hub_link, "~> 1.3.0"},
{:nerves_key, "~> 1.1", only: :dev, runtime: false},
# {:nerves_hub_link, path: "../nerves_hub_link"},
{:nerves_runtime, "~> 0.11.3", override: true},
# Dependencies for all targets except :host
{:nerves_pack, "~> 0.7.0", targets: @all_targets}
]
end
def release do
[
overwrite: true,
cookie: "#{@app}_cookie",
include_erts: &Nerves.Release.erts/0,
steps: [&Nerves.Release.init/1, :assemble],
strip_beams: Mix.env() == :prod or [keep: ["Docs"]]
]
end
end