From 530e59e3e119b22f77e6330d08f4a26437884697 Mon Sep 17 00:00:00 2001 From: elpatron Date: Tue, 28 Jan 2025 10:20:04 +0100 Subject: [PATCH] Remove clones repository, add some instructions --- .gitignore | 1 + build_agent.cmd | 11 ++++++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 02024c6..3b0be54 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ /*.pdf /*.zip +*.exe \ No newline at end of file diff --git a/build_agent.cmd b/build_agent.cmd index 353b9ee..83ee4df 100644 --- a/build_agent.cmd +++ b/build_agent.cmd @@ -49,10 +49,19 @@ go build -ldflags "-w -s" . >nul 2>&1 if %errorlevel% NEQ 0 ( echo Something went wrong ) else ( - echo Build successful + echo Build was successful cd /D "%~dp0" copy /y .\beszel\beszel\cmd\agent\agent.exe . >nul 2>&1 echo Beszel agent.exe was built and copied, you can proceed with 'install-beszel-service.cmd'. + rd /s/q .\beszel >nul 2>&1 + echo Cloned Beszel repository was deleted as we don´t need it anymore. + echo. + echo You can go ahead with .\install-beszel-service.cmd to install the service. + echo . + echo If Git ond/or Go was installed from this script and you don´t want to keep them, use + echo winget uninstall GoLang.Go + echo winget uninstall Git.Git + echo to remove the corresponding packages. ) :end