File tree Expand file tree Collapse file tree 6 files changed +12
-9
lines changed Expand file tree Collapse file tree 6 files changed +12
-9
lines changed Original file line number Diff line number Diff line change @@ -47,9 +47,9 @@ PATH=`pkg-config --variable bindir Qt5`:$PATH lrelease "${SCRIPT_DIR}"/gui/qt/la
47
47
48
48
echo " Compiling Erlang files..."
49
49
cd " ${SCRIPT_DIR} /server/erlang/tau"
50
- mix local.hex --force
51
- mix deps.get
52
- mix release --overwrite
50
+ MIX_ENV= " ${MIX_ENV :- prod} " mix local.hex --force
51
+ MIX_ENV= " ${MIX_ENV :- prod} " mix deps.get
52
+ MIX_ENV= " ${MIX_ENV :- prod} " mix release --overwrite
53
53
54
54
cp src/tau.app.src ebin/tau.app
55
55
cd " ${SCRIPT_DIR} "
Original file line number Diff line number Diff line change @@ -84,9 +84,9 @@ PATH=$PATH:/usr/local/opt/qt@5/bin lrelease "${SCRIPT_DIR}"/gui/qt/lang/*.ts
84
84
85
85
echo " Compiling Erlang/Elixir files..."
86
86
cd " ${SCRIPT_DIR} /server/erlang/tau"
87
- mix local.hex --force
88
- mix deps.get
89
- mix release --overwrite
87
+ MIX_ENV= " ${MIX_ENV :- prod} " mix local.hex --force
88
+ MIX_ENV= " ${MIX_ENV :- prod} " mix deps.get
89
+ MIX_ENV= " ${MIX_ENV :- prod} " mix release --overwrite
90
90
91
91
cp src/tau.app.src ebin/tau.app
92
92
cd " ${SCRIPT_DIR} "
Original file line number Diff line number Diff line change @@ -3,4 +3,4 @@ set -e # Quit script on error
3
3
SCRIPT_DIR=" $( dirname " $0 " ) "
4
4
cd ${SCRIPT_DIR}
5
5
echo " Booting Sonic Pi on Linux..."
6
- TAU_ENABLED=$1 TAU_INTERNAL=$2 TAU_MIDI_ENABLED=$3 TAU_LINK_ENABLED=$4 TAU_IN_PORT=$5 TAU_API_PORT=$6 TAU_SPIDER_PORT=$7 TAU_DAEMON_PORT=$8 _build/" ${MIX_ENV:- dev } " /rel/tau/bin/tau start
6
+ TAU_ENABLED=$1 TAU_INTERNAL=$2 TAU_MIDI_ENABLED=$3 TAU_LINK_ENABLED=$4 TAU_IN_PORT=$5 TAU_API_PORT=$6 TAU_SPIDER_PORT=$7 TAU_DAEMON_PORT=$8 _build/" ${MIX_ENV:- prod } " /rel/tau/bin/tau start
Original file line number Diff line number Diff line change @@ -3,4 +3,4 @@ set -e # Quit script on error
3
3
SCRIPT_DIR=" $( dirname " $0 " ) "
4
4
cd ${SCRIPT_DIR}
5
5
echo " Booting Sonic Pi on macOS..."
6
- TAU_ENABLED=$1 TAU_INTERNAL=$2 TAU_MIDI_ENABLED=$3 TAU_LINK_ENABLED=$4 TAU_IN_PORT=$5 TAU_API_PORT=$6 TAU_SPIDER_PORT=$7 TAU_DAEMON_PORT=$8 _build/" ${MIX_ENV:- dev } " /rel/tau/bin/tau start
6
+ TAU_ENABLED=$1 TAU_INTERNAL=$2 TAU_MIDI_ENABLED=$3 TAU_LINK_ENABLED=$4 TAU_IN_PORT=$5 TAU_API_PORT=$6 TAU_SPIDER_PORT=$7 TAU_DAEMON_PORT=$8 _build/" ${MIX_ENV:- prod } " /rel/tau/bin/tau start
Original file line number Diff line number Diff line change @@ -14,6 +14,6 @@ set TAU_API_PORT=%6%
14
14
set TAU_SPIDER_PORT = %7 %
15
15
set TAU_DAEMON_PORT = %8 %
16
16
17
- IF NOT DEFINED MIX_ENV SET " MIX_ENV = dev "
17
+ IF NOT DEFINED MIX_ENV SET " MIX_ENV = prod "
18
18
19
19
_build\%MIX_ENV% \rel\tau\bin\tau start
Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ cd %~dp0
23
23
rmdir server\native\erlang /s /q
24
24
rmdir server\native\plugins /s /q
25
25
rmdir server\erlang\tau\priv /s /q
26
+ forfiles /p server\erlang\tau\priv /s /m *.dll /c " cmd /c del @file"
26
27
27
28
REM Build external delendencies and copy to build tree
28
29
@ echo Building external binary dependencies...
@@ -55,6 +56,8 @@ forfiles /p gui\qt\lang /s /m *.ts /c "cmd /c %QT_INSTALL_LOCATION%\bin\lrelease
55
56
56
57
@ echo Compiling Erlang/Elixir files...
57
58
cd %~dp0 \server\erlang\tau
59
+
60
+ IF NOT DEFINED MIX_ENV SET " MIX_ENV = prod"
58
61
cmd /c mix local.hex --force
59
62
cmd /c mix deps.get
60
63
cmd /c mix release --overwrite
You can’t perform that action at this time.
0 commit comments