mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-10-06 03:34:57 +08:00
Write to registry to more easily test livebook desktop windows locally
This commit is contained in:
parent
465d711395
commit
2ff2e3a891
1 changed files with 14 additions and 14 deletions
|
@ -3,23 +3,23 @@ set -euo pipefail
|
||||||
|
|
||||||
. `dirname $0`/build.sh
|
. `dirname $0`/build.sh
|
||||||
|
|
||||||
# The installer (Installer.nsi) writes HKCR entries. Here we create HKCU entries which don't
|
|
||||||
# require admin priveleges.
|
|
||||||
|
|
||||||
root="HKEY_CURRENT_USER\\Software\\Classes"
|
root="HKEY_CURRENT_USER\\Software\\Classes"
|
||||||
|
|
||||||
if ! reg query $root\\livebook > /dev/null 2>&1; then
|
exe="`cmd //c cd`\\bin\\Livebook-$configuration\\Livebook.exe"
|
||||||
echo Setting registry
|
|
||||||
exe="`cmd //c cd`\\bin\\Livebook-$configuration\\Livebook.exe"
|
|
||||||
|
|
||||||
reg add "$root\\.livemd" //d "Livebook.LiveMarkdown" //f
|
echo
|
||||||
reg add "$root\\Livebook.LiveMarkdown\\DefaultIcon" //d "$exe,1" //f
|
echo "!!!!!!"
|
||||||
reg add "$root\\Livebook.LiveMarkdown\\shell\\open\\command" //d "$exe open:%1" //f
|
echo "Setting registry to use $exe"
|
||||||
|
echo "!!!!!!"
|
||||||
|
echo
|
||||||
|
|
||||||
reg add "$root\\livebook" //d "URL:Livebook Protocol" //f
|
reg add "$root\\.livemd" //d "Livebook.LiveMarkdown" //f
|
||||||
reg add "$root\\livebook" //v "URL Protocol" //f
|
reg add "$root\\Livebook.LiveMarkdown\\DefaultIcon" //d "$exe,1" //f
|
||||||
reg add "$root\\Livebook\\DefaultIcon" //d "$exe,1" //f
|
reg add "$root\\Livebook.LiveMarkdown\\shell\\open\\command" //d "$exe open:%1" //f
|
||||||
reg add "$root\\livebook\\shell\\open\\command" //d "$exe open:%1" //f
|
|
||||||
fi
|
reg add "$root\\livebook" //d "URL:Livebook Protocol" //f
|
||||||
|
reg add "$root\\livebook" //v "URL Protocol" //f
|
||||||
|
reg add "$root\\Livebook\\DefaultIcon" //d "$exe,1" //f
|
||||||
|
reg add "$root\\livebook\\shell\\open\\command" //d "$exe open:%1" //f
|
||||||
|
|
||||||
dotnet run --no-build
|
dotnet run --no-build
|
||||||
|
|
Loading…
Add table
Reference in a new issue