b5d08ed77e
链接清单与桌面版资料页同源(2026-10-23 实测可达),4 个资料文件随 public/materials/ 部署(目录名避开 .gitignore 的 downloads/ 规则)。
38 lines
973 B
Batchfile
38 lines
973 B
Batchfile
@echo off
|
|
chcp 65001 >nul
|
|
setlocal enabledelayedexpansion
|
|
|
|
echo 正在执行 PowerShell 命令解除文件锁定...
|
|
powershell -Command "Get-ChildItem -Path \"%cd%\" -Recurse | Unblock-File"
|
|
if %errorlevel% equ 0 (
|
|
echo 文件解锁完成
|
|
) else (
|
|
echo 文件解锁失败,请检查 PowerShell 权限
|
|
)
|
|
|
|
echo.
|
|
echo 检查 ShuFuAi.exe.config 文件...
|
|
|
|
if exist "ShuFuAi.exe.config" (
|
|
echo ShuFuAi.exe.config 已存在,跳过创建
|
|
) else (
|
|
echo 正在创建 ShuFuAi.exe.config...
|
|
(
|
|
echo ^<?xml version="1.0" encoding="utf-8" ?^>
|
|
echo ^<configuration^>
|
|
echo ^<runtime^>
|
|
echo ^<loadFromRemoteSources enabled="true"/^>
|
|
echo ^</runtime^>
|
|
echo ^</configuration^>
|
|
) > "ShuFuAi.exe.config"
|
|
|
|
if exist "ShuFuAi.exe.config" (
|
|
echo ShuFuAi.exe.config 创建成功
|
|
) else (
|
|
echo ShuFuAi.exe.config 创建失败,请检查权限
|
|
)
|
|
)
|
|
|
|
echo.
|
|
echo 操作完成!
|
|
pause |