mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-02-22 22:05:03 +08:00
Start desktop app in home directory (#1302)
This commit is contained in:
parent
2ac02d9547
commit
1b978b43f4
2 changed files with 4 additions and 0 deletions
|
@ -10,3 +10,5 @@ if not exist %cookie_path% (
|
|||
for /f "skip=1" %%X in ('wmic os get localdatetime') do if not defined TIMESTAMP set TIMESTAMP=%%X
|
||||
echo cookie-!TIMESTAMP:~0,11!-!RANDOM! > %cookie_path%
|
||||
)
|
||||
|
||||
cd !HOMEDRIVE!!HOMEPATH!
|
||||
|
|
|
@ -10,3 +10,5 @@ cookie_path="${RELEASE_ROOT}/releases/COOKIE"
|
|||
if [ ! -f $cookie_path ]; then
|
||||
cat /dev/urandom | env LC_ALL=C tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1 > $cookie_path
|
||||
fi
|
||||
|
||||
cd $HOME
|
||||
|
|
Loading…
Reference in a new issue