chore: 官网拆分 homepage + 关于页瘦身 + 端口 5175(当前可用状态基线)

This commit is contained in:
Logan.Li committed 2026-10-14 20:31:51 +08:00
1 parent 5eb11826db
commit be151cb68f
85 files changed
+4420 -1530

No files matched your search

+9 -22
View File
@@ -132,24 +132,9 @@ set "BUNDLE_ROOT=src-tauri\target\%RUST_TARGET%\release\bundle"
node scripts\verify-release.mjs windows "%BUNDLE_ROOT%"
if errorlevel 1 exit /b 1
set "OUTPUT_DIR=%CD%\release\v%VERSION%\%OUTPUT_PLATFORM%"
if exist "%OUTPUT_DIR%" rmdir /S /Q "%OUTPUT_DIR%"
mkdir "%OUTPUT_DIR%"
if errorlevel 1 (
call :fail "无法创建输出目录:%OUTPUT_DIR%"
exit /b 1
)
set /A ARTIFACT_COUNT=0
for %%F in ("%BUNDLE_ROOT%\nsis\*.exe" "%BUNDLE_ROOT%\msi\*.msi" "%BUNDLE_ROOT%\wix\*.msi") do (
if exist "%%~fF" (
copy /Y "%%~fF" "%OUTPUT_DIR%\%%~nxF" >nul
if errorlevel 1 (
call :fail "复制安装包失败:%%~fF"
exit /b 1
)
set /A ARTIFACT_COUNT+=1
)
if exist "%%~fF" set /A ARTIFACT_COUNT+=1
)
if "%ARTIFACT_COUNT%"=="0" (
@@ -158,19 +143,21 @@ if "%ARTIFACT_COUNT%"=="0" (
)
powershell -NoProfile -ExecutionPolicy Bypass -Command ^
"$files = Get-ChildItem -LiteralPath $env:OUTPUT_DIR -File ^| Where-Object { $_.Extension -in '.exe', '.msi' };" ^
"$root = $env:BUNDLE_ROOT;" ^
"$files = @(); foreach ($dir in @('nsis','msi','wix')) { $p = Join-Path $root $dir; if (Test-Path $p) { $files += Get-ChildItem -LiteralPath $p -File ^| Where-Object { $_.Extension -in '.exe', '.msi' } } };" ^
"if ($files.Count -eq 0) { throw 'no installers' };" ^
"$lines = @($files ^| ForEach-Object { (Get-FileHash -Algorithm SHA256 -LiteralPath $_.FullName).Hash.ToLowerInvariant() + ' ' + $_.Name });" ^
"[System.IO.File]::WriteAllLines((Join-Path $env:OUTPUT_DIR 'SHA256SUMS.txt'), [string[]]$lines, (New-Object System.Text.UTF8Encoding($false)))"
"[System.IO.File]::WriteAllLines((Join-Path $root 'SHA256SUMS.txt'), [string[]]$lines, (New-Object System.Text.UTF8Encoding($false)))"
if errorlevel 1 (
call :fail "生成 SHA256SUMS.txt 失败"
exit /b 1
)
call :log "构建完成:%OUTPUT_DIR%"
dir "%OUTPUT_DIR%"
call :log "构建完成(Tauri bundle):%BUNDLE_ROOT%"
dir /S /B "%BUNDLE_ROOT%\nsis\*.exe" "%BUNDLE_ROOT%\msi\*.msi" "%BUNDLE_ROOT%\wix\*.msi" 2>nul
echo.
echo [build] SHA-256
type "%OUTPUT_DIR%\SHA256SUMS.txt"
type "%BUNDLE_ROOT%\SHA256SUMS.txt"
exit /b 0
:usage_ok
@@ -199,7 +186,7 @@ echo Visual Studio 2022 Build Tools(Desktop development with C++)、
echo Windows 10/11 SDK、WebView2 Runtime。
echo.
echo 说明:
echo - 输出 NSIS/MSI 到 release\v版本\windows-x64 并生成 SHA256SUMS.txt。
echo - 安装包留在 src-tauri\target\<triple>\release\bundle\(nsis/msi),并生成 SHA256SUMS.txt。
echo - 脚本不会创建或推送 Git tag,也不会上传 Release。
echo - 正式签名需设置 REQUIRE_SIGNING=true 和 Windows 签名环境变量。
exit /b 0