feat: Update database setup and download handling

- Set a fixed database password and ensure old data is overwritten during setup.
- Enhance the download functionality with improved error handling for missing files, providing user-friendly HTML responses.
- Add instructions for placing client builds in the downloads directory in the admin panel.
This commit is contained in:
2026-02-26 21:05:41 +08:00
parent a376a9e0f3
commit 89948f76b7
3 changed files with 39 additions and 11 deletions

View File

@@ -152,6 +152,9 @@ export default function Downloads() {
{building ? '构建中...' : '构建选中平台'}
</button>
</div>
<p className="text-sm text-gray-500 mb-4">
CI FunMC--windows-x64.exe <code className="bg-gray-100 px-1 rounded">downloads</code> DOWNLOADS_DIR /opt/funmc/downloads
</p>
<div className="grid grid-cols-2 md:grid-cols-4 gap-4">
{Object.entries(platformInfo).map(([key, info]) => (