This commit is contained in:
2026-10-03 14:33:08 +04:00
parent 6a73d760c4
commit 93a9442e1c
67 changed files with 941 additions and 698 deletions
@@ -3,6 +3,7 @@
namespace App\Services;
use Illuminate\Support\Facades\Storage;
use RuntimeException;
use Throwable;
class GameClientDownloadService
@@ -18,6 +19,10 @@ class GameClientDownloadService
$objectKey = $this->objectKey();
$filename = $this->filename();
if (! $disk->exists($objectKey)) {
throw new RuntimeException('Game client archive is not available.');
}
try {
return $disk->temporaryUrl(
$objectKey,