From 2922668e6b74659094d3e78595c6e6fe5282e555 Mon Sep 17 00:00:00 2001 From: Jeff Becker Date: Fri, 10 Jan 2020 15:24:47 -0500 Subject: [PATCH] initial lokinet-bootstrap in powershell for windows --- daemon/CMakeLists.txt | 2 +- lokinet-bootstrap.ps1 | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 lokinet-bootstrap.ps1 diff --git a/daemon/CMakeLists.txt b/daemon/CMakeLists.txt index 1770079d0..5371c75f1 100644 --- a/daemon/CMakeLists.txt +++ b/daemon/CMakeLists.txt @@ -31,7 +31,7 @@ else() install(TARGETS ${EXE} RUNTIME DESTINATION bin) install(TARGETS ${CTL} RUNTIME DESTINATION bin) if(WIN32) - # install(PROGRAMS ${CMAKE_SOURCE_DIR}/win32-setup/lokinet-bootstrap.exe DESTINATION bin) + install(PROGRAMS ${CMAKE_SOURCE_DIR}/lokinet-bootstrap.ps1 DESTINATION bin) else() install(PROGRAMS ${CMAKE_SOURCE_DIR}/lokinet-bootstrap DESTINATION bin) endif() diff --git a/lokinet-bootstrap.ps1 b/lokinet-bootstrap.ps1 new file mode 100644 index 000000000..d7fd8d3d8 --- /dev/null +++ b/lokinet-bootstrap.ps1 @@ -0,0 +1,4 @@ +[CmdletBinding()] +param () +$web = New-Object System.Net.WebClient +$web.DownloadFile('https://seed.lokinet.org/lokinet.signed', '%APPDATA%\.lokinet\bootstrap.signed')