Skip to content

Commit 712011d

Browse files
committed
Prebuild - overwrite mix releases by default
Previously, when the Elixir/Erlang artifacts have been already built by a previous build of Sonic Pi, and we run the Sonic Pi build process again, mix asked whether we wanted to overwrite them or not. We now explicitly indicate that we want to overwrite on the command line to avoid being asked during the build process.
1 parent 7dd50ec commit 712011d

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

app/linux-prebuild.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ echo "Compiling Erlang files..."
4949
cd "${SCRIPT_DIR}/server/erlang/tau"
5050
mix local.hex --force
5151
mix deps.get
52-
mix release
52+
mix release --overwrite
5353

5454
cp src/tau.app.src ebin/tau.app
5555
cd "${SCRIPT_DIR}"

app/mac-prebuild.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ echo "Compiling Erlang/Elixir files..."
8686
cd "${SCRIPT_DIR}/server/erlang/tau"
8787
mix local.hex --force
8888
mix deps.get
89-
mix release
89+
mix release --overwrite
9090

9191
cp src/tau.app.src ebin/tau.app
9292
cd "${SCRIPT_DIR}"

app/win-prebuild.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ forfiles /p gui\qt\lang /s /m *.ts /c "cmd /c %QT_INSTALL_LOCATION%\bin\lrelease
5757
cd %~dp0\server\erlang\tau
5858
cmd /c mix local.hex --force
5959
cmd /c mix deps.get
60-
cmd /c mix release
60+
cmd /c mix release --overwrite
6161

6262
cd %~dp0\server\erlang\tau
6363
copy /Y src\tau.app.src .\ebin\tau.app

0 commit comments

Comments
 (0)