Skip to content

Commit 5ef1c0b

Browse files
committed
bug 紧急修复
1 parent cbd5fb5 commit 5ef1c0b

File tree

1 file changed

+4
-12
lines changed

1 file changed

+4
-12
lines changed

FFmpegUpdater/Program.cs

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
// 下面开始添加Path
2727
string appDirectory = AppDomain.CurrentDomain.BaseDirectory;
28-
string ffmpegBinPath = Path.Combine(appDirectory, "ffmpeg", "bin");
28+
string ffmpegBinPath = Path.Combine(appDirectory, "ffmpeg-master-latest-win64-gpl-shared", "bin");
2929

3030
Console.WriteLine("请选择要添加路径的类型:");
3131
Console.WriteLine("1. 用户路径");
@@ -117,6 +117,7 @@ static string GetTargetString(EnvironmentVariableTarget target)
117117
return target == EnvironmentVariableTarget.Machine ? "M" : "U";
118118
}
119119

120+
// 以管理员重启
120121
static void RestartAsAdministrator()
121122
{
122123
string fileName = "FFmpegUpdater.exe";
@@ -133,17 +134,7 @@ static void RestartAsAdministrator()
133134
Environment.Exit(0);// 关闭
134135
}
135136

136-
137-
138-
139-
140-
141-
142-
143-
144-
145-
146-
137+
// 下载逻辑
147138
void Download(string url, string folderPath, string fileName)
148139
{
149140
string filePath = Path.Combine(folderPath, fileName);
@@ -161,6 +152,7 @@ void Download(string url, string folderPath, string fileName)
161152
}
162153
}
163154

155+
// 删除逻辑
164156
void Delete(string name)
165157
{
166158
if (Directory.Exists(name))

0 commit comments

Comments
 (0)