You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
630 B
Plaintext

This file contains invisible Unicode characters!

This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

项目说明:
报到门项目图标替换前提是已经安装MinGW环境
1.创建文本文件app.rc 内容是要替换的图标名称1 ICON "icon.ico"
2.执行编译命令在根目录中cmd执行windres -i app.rc -O coff -o app.syso会生成app.syso
3.重新打包生成的exe就是那个图标
无纸化照片同步上位机的图片路径是public/upload,同步到报到门程序的public/upload下
var cmd *exec.Cmd
if runtime.GOOS == "windows" {
cmd = exec.Command("shutdown", "/s", "/t", "0")
} else {
cmd = exec.Command("shutdown", "-h", "now")
}
return cmd.Run()