diff --git a/.gitea/workflows/gui-version-release.yml b/.gitea/workflows/gui-version-release.yml index 02fa668..5d3fa01 100644 --- a/.gitea/workflows/gui-version-release.yml +++ b/.gitea/workflows/gui-version-release.yml @@ -149,15 +149,54 @@ jobs: Write-Host "Production build completed successfully"; Write-Host ""; - # Step 4.6: Build NSIS installer + # Step 4.6: Install NSIS + - name: Install NSIS + if: success() + shell: powershell + run: | + Write-Host "=========================================="; + Write-Host "Step 4.6: Install NSIS"; + Write-Host "=========================================="; + + # Download NSIS 3.09 + $nsisUrl = "https://sourceforge.net/projects/nsis/files/NSIS%203/3.09/nsis-3.09-setup.exe/download"; + $nsisInstaller = "$env:TEMP\nsis-setup.exe"; + + Write-Host "Downloading NSIS installer..."; + try { + Invoke-WebRequest -Uri $nsisUrl -OutFile $nsisInstaller -UseBasicParsing -TimeoutSec 300; + } catch { + Write-Host "Failed to download from SourceForge, trying alternative source..."; + $nsisUrl = "https://nsis.sourceforge.io/mediawiki/images/4/4a/Nsis-3.09-setup.exe"; + Invoke-WebRequest -Uri $nsisUrl -OutFile $nsisInstaller -UseBasicParsing -TimeoutSec 300; + } + + Write-Host "Installing NSIS silently..."; + Start-Process -FilePath $nsisInstaller -ArgumentList "/S" -Wait -NoNewWindow; + + # Add NSIS to PATH + $nsisPath = "C:\Program Files (x86)\NSIS"; + $env:Path += ";$nsisPath"; + + Write-Host "Verifying NSIS installation..."; + & makensis /VERSION; + + Write-Host "NSIS installed successfully"; + Write-Host ""; + + # Step 4.7: Build NSIS installer - name: Build NSIS installer if: success() shell: powershell run: | Write-Host "=========================================="; - Write-Host "Step 4.6: Build NSIS installer"; + Write-Host "Step 4.7: Build NSIS installer"; Write-Host "=========================================="; + # Ensure NSIS is in PATH + $nsisPath = "C:\Program Files (x86)\NSIS"; + $env:Path += ";$nsisPath"; + cd installer; python build_installer.py; if ($LASTEXITCODE -ne 0) { @@ -179,13 +218,13 @@ jobs: Write-Host " Size: $installerSize MB"; Write-Host ""; - # Step 4.7: Upload installer to KS3 + # Step 4.8: Upload installer to KS3 - name: Upload installer to KS3 if: success() shell: powershell run: | Write-Host "=========================================="; - Write-Host "Step 4.7: Upload installer to KS3"; + Write-Host "Step 4.8: Upload installer to KS3"; Write-Host "=========================================="; pip install ks3 2>$null; diff --git a/config.py b/config.py index 6a17b9a..e25f837 100644 --- a/config.py +++ b/config.py @@ -42,7 +42,7 @@ VERSION = "1.0" WINDOW_TITLE = "AI回复连接入口-V1.0" # 应用版本号(用于版本检查) -APP_VERSION = "1.5.1" +APP_VERSION = "1.5.2" # 平台特定配置 PLATFORMS = { diff --git a/version_history.json b/version_history.json index 03eb70e..e2c900c 100644 --- a/version_history.json +++ b/version_history.json @@ -1,4 +1,20 @@ [ + { + "version": "1.5.2", + "update_type": "patch", + "content": "[patch] 解决乱码bug", + "author": "Gitea Actions Bot", + "commit_hash": "2d05024e82ac0c16eff30625195486f7c6862ea8", + "commit_short_hash": "2d05024e", + "branch": "develop", + "release_time": "2025-10-11 16:05:03", + "download_url": "https://ks3-cn-guangzhou.ksyuncs.com/shuidrop-chat-server/installers/ShuiDi_AI_Assistant_Setup_v1.5.2.exe", + "stats": { + "files_changed": 5, + "lines_added": 207, + "lines_deleted": 192 + } + }, { "version": "1.5.1", "update_type": "patch",