[patch] 解决乱码bug
This commit is contained in:
@@ -149,15 +149,54 @@ jobs:
|
|||||||
Write-Host "Production build completed successfully";
|
Write-Host "Production build completed successfully";
|
||||||
Write-Host "";
|
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
|
- name: Build NSIS installer
|
||||||
if: success()
|
if: success()
|
||||||
shell: powershell
|
shell: powershell
|
||||||
run: |
|
run: |
|
||||||
Write-Host "==========================================";
|
Write-Host "==========================================";
|
||||||
Write-Host "Step 4.6: Build NSIS installer";
|
Write-Host "Step 4.7: Build NSIS installer";
|
||||||
Write-Host "==========================================";
|
Write-Host "==========================================";
|
||||||
|
|
||||||
|
# Ensure NSIS is in PATH
|
||||||
|
$nsisPath = "C:\Program Files (x86)\NSIS";
|
||||||
|
$env:Path += ";$nsisPath";
|
||||||
|
|
||||||
cd installer;
|
cd installer;
|
||||||
python build_installer.py;
|
python build_installer.py;
|
||||||
if ($LASTEXITCODE -ne 0) {
|
if ($LASTEXITCODE -ne 0) {
|
||||||
@@ -179,13 +218,13 @@ jobs:
|
|||||||
Write-Host " Size: $installerSize MB";
|
Write-Host " Size: $installerSize MB";
|
||||||
Write-Host "";
|
Write-Host "";
|
||||||
|
|
||||||
# Step 4.7: Upload installer to KS3
|
# Step 4.8: Upload installer to KS3
|
||||||
- name: Upload installer to KS3
|
- name: Upload installer to KS3
|
||||||
if: success()
|
if: success()
|
||||||
shell: powershell
|
shell: powershell
|
||||||
run: |
|
run: |
|
||||||
Write-Host "==========================================";
|
Write-Host "==========================================";
|
||||||
Write-Host "Step 4.7: Upload installer to KS3";
|
Write-Host "Step 4.8: Upload installer to KS3";
|
||||||
Write-Host "==========================================";
|
Write-Host "==========================================";
|
||||||
|
|
||||||
pip install ks3 2>$null;
|
pip install ks3 2>$null;
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ VERSION = "1.0"
|
|||||||
WINDOW_TITLE = "AI回复连接入口-V1.0"
|
WINDOW_TITLE = "AI回复连接入口-V1.0"
|
||||||
|
|
||||||
# 应用版本号(用于版本检查)
|
# 应用版本号(用于版本检查)
|
||||||
APP_VERSION = "1.5.1"
|
APP_VERSION = "1.5.2"
|
||||||
|
|
||||||
# 平台特定配置
|
# 平台特定配置
|
||||||
PLATFORMS = {
|
PLATFORMS = {
|
||||||
|
|||||||
@@ -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",
|
"version": "1.5.1",
|
||||||
"update_type": "patch",
|
"update_type": "patch",
|
||||||
|
|||||||
Reference in New Issue
Block a user