Skip to content

Commit

Permalink
save
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangyiming748 committed Feb 10, 2024
1 parent 18b92ef commit 53f5769
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
12 changes: 6 additions & 6 deletions conf.ini
Original file line number Diff line number Diff line change
Expand Up @@ -19,21 +19,21 @@ mission = video
# mission = louder
# mission = ytdlp
[log]
level = Debug
# level = Info
# level = Debug
level = Info
# level = Warn
# level = Error
[pattern]
image = jpeg;jpg;png;webp;tif
audio = mp3;m4a;flac;wma;wav;m4a;aac
video = webm;mkv;m4v;mp4;mov;avi;wmv;ts;rmvb;wma;avi;flv;rmvb;mpg;f4v
video = webm;mkv;m4v;mp4;mov;avi;wmv;ts;rmvb;wma;avi;flv;rmvb;mpg;f4v;vob
gif = gif;webm
txt = txt
[root]
folder = /Users/zen/git
image = /Volumes/noname
audio = /mnt/c/Users/zen/Videos/bili
video = /mnt/f/large/AV/other
image = /mnt/c/Users/zen/Pictures/Saved Pictures
audio = /mnt/f/德云社/audio
video = /mnt/f/large
gif = /Users/zen/Downloads/Fugtrup collection/archive/webp
txt = /Users/zen/Downloads/tele
bilibili = /mnt/d/git/processAll/merge/downloads
Expand Down
8 changes: 6 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -340,8 +340,8 @@ func final() {
}
if runtime.GOOS == "linux" {
slog.Info("linux64重新生成预编译文件")
if out, err := exec.Command("bash", "-c", "build.sh").CombinedOutput(); err != nil {
slog.Warn("程序结束后重新编译失败")
if out, err := exec.Command("go", "build", "main.go").CombinedOutput(); err != nil {
slog.Warn("程序结束后重新编译失败", slog.String("错误原文", err.Error()))
} else {
slog.Debug("编译新版本二进制文件", slog.String("输出", string(out)))
}
Expand All @@ -368,3 +368,7 @@ func runNumGoroutineMonitor() {
}
}
}
func getRoot() string {
_, filename, _, _ := runtime.Caller(0)
return path.Dir(filename)
}

0 comments on commit 53f5769

Please sign in to comment.