2023-02-02 17:52:16 +08:00
|
|
|
if exist "!USERPROFILE!\.livebookdesktop.bat" (
|
|
|
|
call "!USERPROFILE!\.livebookdesktop.bat"
|
|
|
|
)
|
|
|
|
|
2024-06-21 19:25:23 +08:00
|
|
|
set RELEASE_MODE=interactive
|
|
|
|
set RELEASE_DISTRIBUTION=none
|
2024-04-15 22:35:22 +08:00
|
|
|
|
2022-07-18 17:51:17 +08:00
|
|
|
set MIX_ARCHIVES=!RELEASE_ROOT!\vendor\archives
|
|
|
|
set MIX_REBAR3=!RELEASE_ROOT!\vendor\rebar3
|
2024-01-31 16:47:02 +08:00
|
|
|
if not defined LIVEBOOK_SHUTDOWN_ENABLED set LIVEBOOK_SHUTDOWN_ENABLED=true
|
2023-09-28 17:12:07 +08:00
|
|
|
set LIVEBOOK_DESKTOP=true
|
2023-05-23 22:22:17 +08:00
|
|
|
if not defined LIVEBOOK_PORT (set LIVEBOOK_PORT=0)
|
2023-01-17 04:09:47 +08:00
|
|
|
set PATH=!RELEASE_ROOT!\vendor\otp\erts-<%= @release.erts_version%>\bin;!RELEASE_ROOT!\vendor\otp\bin;!RELEASE_ROOT!\vendor\elixir\bin;!PATH!
|
2022-02-15 19:44:59 +08:00
|
|
|
|
2024-06-14 00:03:28 +08:00
|
|
|
if defined LIVEBOOK_NODE set RELEASE_NODE=!LIVEBOOK_NODE!
|
|
|
|
if defined LIVEBOOK_COOKIE set RELEASE_COOKIE=!LIVEBOOK_COOKIE!
|
|
|
|
|
|
|
|
if not defined RELEASE_COOKIE (
|
|
|
|
for /f "skip=1" %%X in ('wmic os get localdatetime') do if not defined TIMESTAMP set TIMESTAMP=%%X
|
|
|
|
set RELEASE_COOKIE=cookie-!TIMESTAMP:~0,11!-!RANDOM!
|
2022-02-15 19:44:59 +08:00
|
|
|
)
|
2022-07-28 21:40:55 +08:00
|
|
|
|
|
|
|
cd !HOMEDRIVE!!HOMEPATH!
|