Skip to content

Commit

Permalink
Update and rename include-updater/obfus_h_update.cmd to obfh-update.cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
DosX-dev authored May 16, 2024
1 parent 8b9676c commit 6636202
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 5 deletions.
5 changes: 0 additions & 5 deletions include-updater/obfus_h_update.cmd

This file was deleted.

30 changes: 30 additions & 0 deletions obfh-update.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
@echo off
echo.
set "protocol=https"
set "host=github.com:443"
set "obfus_h_path=DosX-dev/raw/main/include/obfus.h"

:: Current directory
set "output_dir=./"

set "special=--ssl-no-revoke -s"

:: If error:
:: 0 - pause
:: 1 - continue (not recommended)
set "onerror="

call:log "Getting the latest version of obfus.h protection from %host%..."
curl -L %special% "%protocol%://%host%/%obfus_h_path%" -o "%output_dir%\obfus.h"
if "%errorlevel%" == "0" (
call:log "Latest version of protection has been installed."
) else (
call:log "An error occurred while downloading the component package."
if "%onerror%" == "0" pause>nul
)

exit /b 0

:log
echo [%time%][pkg:obfus.h] %~1
goto :eof

0 comments on commit 6636202

Please sign in to comment.