diff --git a/app/bot.php b/app/bot.php index bffc8fa..df2eb20 100644 --- a/app/bot.php +++ b/app/bot.php @@ -4795,14 +4795,11 @@ DNS-over-HTTPS with IP: case 'w': $link = htmlspecialchars($si, ENT_XML1, 'UTF-8'); file_put_contents('/singbox/winsw3.xml', preg_replace('#~url~#', $link, file_get_contents('/singbox/winsw3.xml'))); - $zip = new ZipArchive(); $n = "singbox_$uid.zip"; - $zip->open($n, ZipArchive::CREATE | ZipArchive::OVERWRITE); - foreach (scandir('/singbox') as $k => $v) { - if (!empty(!in_array($v, ['.', '..']))) { - $zip->addFile("/singbox/$v", $v); - } - } + copy('/singbox/singbox.zip', $n); + $zip = new ZipArchive(); + $zip->open($n, ZipArchive::CREATE); + $zip->addFile('/singbox/winsw3.xml', 'winsw3.xml'); $zip->close(); header('Content-Disposition: attachment; filename="singbox.zip"'); echo file_get_contents($n); diff --git a/singbox_windows/install.cmd b/singbox_windows/install.cmd deleted file mode 100644 index e5d9374..0000000 --- a/singbox_windows/install.cmd +++ /dev/null @@ -1,2 +0,0 @@ -winsw3.exe install -pause \ No newline at end of file diff --git a/singbox_windows/restart.cmd b/singbox_windows/restart.cmd deleted file mode 100644 index 8ed1882..0000000 --- a/singbox_windows/restart.cmd +++ /dev/null @@ -1,2 +0,0 @@ -winsw3.exe stop -winsw3.exe start \ No newline at end of file diff --git a/singbox_windows/sing-box.exe b/singbox_windows/sing-box.exe deleted file mode 100644 index 64ecc70..0000000 Binary files a/singbox_windows/sing-box.exe and /dev/null differ diff --git a/singbox_windows/winsw3.exe b/singbox_windows/singbox.zip similarity index 64% rename from singbox_windows/winsw3.exe rename to singbox_windows/singbox.zip index 6806bb4..6fe4610 100644 Binary files a/singbox_windows/winsw3.exe and b/singbox_windows/singbox.zip differ diff --git a/singbox_windows/start.cmd b/singbox_windows/start.cmd deleted file mode 100644 index ffa73a0..0000000 --- a/singbox_windows/start.cmd +++ /dev/null @@ -1 +0,0 @@ -winsw3.exe start \ No newline at end of file diff --git a/singbox_windows/status.cmd b/singbox_windows/status.cmd deleted file mode 100644 index 0359701..0000000 --- a/singbox_windows/status.cmd +++ /dev/null @@ -1,2 +0,0 @@ -winsw3.exe status -pause \ No newline at end of file diff --git a/singbox_windows/stop.cmd b/singbox_windows/stop.cmd deleted file mode 100644 index c248f3c..0000000 --- a/singbox_windows/stop.cmd +++ /dev/null @@ -1 +0,0 @@ -winsw3.exe stop \ No newline at end of file diff --git a/singbox_windows/uninstall.cmd b/singbox_windows/uninstall.cmd deleted file mode 100644 index f8025eb..0000000 --- a/singbox_windows/uninstall.cmd +++ /dev/null @@ -1,2 +0,0 @@ -winsw3.exe uninstall -pause \ No newline at end of file diff --git a/version b/version index a9d04d0..e5df585 100644 --- a/version +++ b/version @@ -1,3 +1,5 @@ +29.09.2024 v1.60 +- ускорение сборки архива sing-box windows 23.09.2024 v1.59 - docker compose v2.29.6 (при установке бота) 22.09.2024 v1.58