diff --git a/.gitignore b/.gitignore index ec15c75..187eeb9 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,3 @@ bin/* -AVE-PHP.7z +AVE-PHP_v*.7z AVE.ave-guard diff --git a/_get_package.cmd b/_get_package.cmd index 4a10ea0..1da9350 100644 --- a/_get_package.cmd +++ b/_get_package.cmd @@ -4,6 +4,6 @@ SET PATH=%PATH%;%CD%\bin\main;%CD%\bin\php;%CD%\bin\imagick "%CD%\bin\php\php.exe" "%CD%\includes\main.php" --sort-settings "%CD%\bin\php\php.exe" "%CD%\includes\main.php" --put-version "%CD%\bin\php\php.exe" "%CD%\includes\main.php" --guard-generate -IF EXIST "%CD%\AVE-PHP.7z" DEL /Q /A "%CD%\AVE-PHP.7z" -"%CD%\bin\main\7z.exe" a -mx9 -t7z "%CD%\AVE-PHP.7z" "bin" "includes" "commands" "AVE-PHP.cmd" "AVE.ave-guard" "README.md" "LICENSE" +FOR /F "tokens=*" %%s IN ('TYPE "%CD%\version"') DO SET _VERSION=%%s +"%CD%\bin\main\7z.exe" a -mx9 -t7z "%CD%\AVE-PHP_v%_VERSION%.7z" "bin" "includes" "commands" "AVE-PHP.cmd" "AVE.ave-guard" "README.md" "LICENSE" PAUSE diff --git a/includes/AVE.php b/includes/AVE.php index 0a3f3d4..d454124 100644 --- a/includes/AVE.php +++ b/includes/AVE.php @@ -30,7 +30,7 @@ class AVE extends CommandLine { public bool $open_log = false; public string $app_name = "AVE"; - public string $version = "1.5.0"; + public string $version = "1.5.1"; private ?string $command; private array $arguments; @@ -186,7 +186,7 @@ public function download_update(string $version) : void { $file = $this->get_file_path("$this->path/AVE-PHP.7z"); if(file_exists($file)) unlink($file); $fh = fopen($file, "wb"); - $ch = curl_init("https://github.com/AbyssMorgan/AVE-PHP/releases/download/v$version/AVE-PHP.7z"); + $ch = curl_init("https://adm.ct8.pl/ave-php/AVE-PHP_v$version.7z"); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_FILE, $fh); diff --git a/version b/version index 3e1ad72..8e03717 100644 --- a/version +++ b/version @@ -1 +1 @@ -1.5.0 \ No newline at end of file +1.5.1 \ No newline at end of file