From 1f736a71bed7af4c90f5916136ba503105de49a5 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Fri, 9 Aug 2019 22:39:36 -0600 Subject: [PATCH] add draft install.cmd --- usr/share/install.cmd | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 usr/share/install.cmd diff --git a/usr/share/install.cmd b/usr/share/install.cmd new file mode 100644 index 0000000..311e958 --- /dev/null +++ b/usr/share/install.cmd @@ -0,0 +1,14 @@ +powershell.exe $ProgressPreference = 'SilentlyContinue'; Invoke-WebRequest https://rootprojects.org/telebit/dist/stable/telebit-stable-windows-amd64.zip -OutFile telebit.zip +mkdir %SYSTEMPROFILE%\.local\opt\ + +del /F /Q /S %SYSTEMPROFILE%\.local\opt\telebit-stable-windows-amd64 > NUL +rmdir /Q /S %SYSTEMPROFILE%\.local\opt\telebit-stable-windows-amd64 +powershell.exe Expand-Archive -Force .\telebit.zip %SYSTEMPROFILE%\.local\opt\ + +%SYSTEMPROFILE%\.local\opt\telebit-stable-windows-amd64\bin\serviceman.exe stop telebit + +del /F /Q /S %SYSTEMPROFILE%\.local\opt\telebit\* > NUL +rmdir /Q /S %SYSTEMPROFILE%\.local\opt\telebit +move %SYSTEMPROFILE%\.local\opt\telebit-stable-windows-amd64 %SYSTEMPROFILE%\.local\opt\telebit +%SYSTEMPROFILE%\.local\opt\telebit\bin\serviceman.exe add --name telebit %SYSTEMPROFILE%\.local\opt\telebit\bin\node %SYSTEMPROFILE%\.local\opt\telebit\bin\telebitd.js +%SYSTEMPROFILE%\.local\opt\telebit\bin\pathman.exe add %SYSTEMPROFILE%\.local\opt\telebit\bin