Explorar el Código

ft: 优化win cmd下可以显示中文

master
SisMaker hace 4 días
padre
commit
19d3fe0f1a
Se han modificado 3 ficheros con 2 adiciones y 0 borrados
  1. +1
    -0
      bootstrap
  2. BIN
      eNpc
  3. +1
    -0
      eNpc.cmd

+ 1
- 0
bootstrap Ver fichero

@ -156,6 +156,7 @@ writeWindowsScripts() ->
"@echo off\r\n"
"setlocal\r\n"
"set rebarscript=%~f0\r\n"
"chcp 65001 > nul\r\n"
"escript.exe \"%rebarscript:.cmd=%\" %*\r\n",
ok = file:write_file("eNpc.cmd", CmdScript).

BIN
eNpc Ver fichero


+ 1
- 0
eNpc.cmd Ver fichero

@ -1,4 +1,5 @@
@echo off
setlocal
set rebarscript=%~f0
chcp 65001 > nul
escript.exe "%rebarscript:.cmd=%" %*

Cargando…
Cancelar
Guardar