Explorar el Código

更新构建时间和时区,添加CRLF转LF脚本

更新了构建时间戳和时区设置,并添加了一个用于将CRLF换行符转换为LF的脚本,以确保代码风格一致。该脚本需要在Git Bash环境下运行,并依赖于`dos2unix`工具。
SongZihuan hace 3 meses
padre
commit
f337dbdcf7
Se han modificado 3 ficheros con 11 adiciones y 1 borrados
  1. 1 0
      .gitattributes
  2. 9 0
      crlf2lf.sh
  3. 1 1
      src/utils/build_time.json

+ 1 - 0
.gitattributes

@@ -0,0 +1 @@
+* text=auto eol=lf

+ 9 - 0
crlf2lf.sh

@@ -0,0 +1,9 @@
+# 使用Git Bash运行
+# 需要先安装<chocolatey>
+# 安装命令:iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
+# 若安装过程提示无权限执行脚本,则:Set-ExecutionPolicy Bypass -Scope Process -Force
+# 并且删除<C:\ProgramData\chocolatey>目录。
+# 安装完成后使用<choco --version>查看版本,确定安装成功
+# 安装<dos2unix>:choco install dos2unix
+
+find . -type f -name '*' -print0 | xargs -0 dos2unix

+ 1 - 1
src/utils/build_time.json

@@ -1 +1 @@
-{"compile_time":1738076463116,"time_zone":"Asia/Shanghai"}
+{"compile_time":1738137791037,"time_zone":"Etc/GMT-8"}