Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
AbyssMorgan committed May 1, 2023
1 parent 5a14088 commit 281eee2
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
bin/*
AVE-PHP.7z
AVE-PHP_v*.7z
AVE.ave-guard
4 changes: 2 additions & 2 deletions _get_package.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 2 additions & 2 deletions includes/AVE.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.5.0
1.5.1

0 comments on commit 281eee2

Please sign in to comment.