Skip to content

Commit a568903

Browse files
author
黄佰荣
committed
window环境的构建脚本
1 parent af06663 commit a568903

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

qpython-docs/build-window.bat

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,14 @@ cd build/html
66

77
REM 使用 Python 执行 add-analytics.py 脚本
88
@REM for /r %%f in (*.html) do (
9-
python ..\..\add-analytics-window.py "%%f"
9+
python ..\..\add-analytics.py "%%f"
1010
@REM )
1111

1212
REM 替换 _static 为 static,_images 为 images
1313
for /r %%f in (*.html) do (
14-
powershell -Command "(Get-Content '%%f') -replace '_static', 'static' | Set-Content '%%f'"
15-
powershell -Command "(Get-Content '%%f') -replace '_images', 'images' | Set-Content '%%f'"
14+
echo Processing: %%f
15+
powershell -Command "(Get-Content '%%f' -Encoding UTF8) -replace '_static', 'static' | Set-Content '%%f' -Encoding UTF8"
16+
powershell -Command "(Get-Content '%%f' -Encoding UTF8) -replace '_images', 'images' | Set-Content '%%f' -Encoding UTF8"
1617
)
1718

1819
REM 删除临时文件

0 commit comments

Comments
 (0)