forked from elcritch/nerves_rpi4_webkiosk_playground
-
Notifications
You must be signed in to change notification settings - Fork 1
/
mix.exs
69 lines (59 loc) · 1.93 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
defmodule NervesWebKioskPlayground.MixProject do
use Mix.Project
@app :nerves_web_kiosk_playground
@version "0.1.0"
@all_targets [:rpi4_kiosk]
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()}],
preferred_cli_target: [run: :host, test: :host]
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
mod: {NervesWebKioskPlayground.Application, []},
extra_applications: [:logger, :runtime_tools]
]
end
# Run "mix help deps" to learn about dependencies.
defp deps do
[
# Dependencies for all targets
{:nerves, "~> 1.7.8", runtime: false},
{:shoehorn, "~> 0.7.0"},
{:ring_logger, "~> 0.8.1"},
{:toolshed, "~> 0.2.13"},
# Dependencies for all targets except :host
{:nerves_runtime, "~> 0.11.3", targets: @all_targets},
{:nerves_pack, "~> 0.4.0", targets: @all_targets},
# {:webengine_kiosk, "~> 0.4.0", path: "../webengine_kiosk", app: false},
{:webengine_kiosk, "~> 0.4.0", github: "elcritch/webengine_kiosk"},
# Dependencies for specific targets
# {:nerves_system_rpi4, "~> 1.13", runtime: false, targets: :rpi4},
{:nerves_system_rpi4, "~> 1.16.0-webengineV2",
github: "elcritch/nerves_system_rpi4",
tag: "v1.16.0-webengineV3",
runtime: false,
targets: [:rpi4_kiosk]},
]
end
def release do
[
overwrite: true,
# Erlang distribution is not started automatically.
# See https://hexdocs.pm/nerves_pack/readme.html#erlang-distribution
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