Skip to content
Snippets Groups Projects
Commit 3971be2e authored by Anduin Xue's avatar Anduin Xue
Browse files

Support linux.

parent 599d05a3
No related branches found
No related tags found
No related merge requests found
...@@ -55,7 +55,7 @@ namespace Parser ...@@ -55,7 +55,7 @@ namespace Parser
private async Task Parse(string filePath, string coder) private async Task Parse(string filePath, string coder)
{ {
var folder = Path.GetDirectoryName(filePath) ?? throw new Exception($"{filePath} is invalid!"); var folder = Path.GetDirectoryName(filePath) ?? throw new Exception($"{filePath} is invalid!");
var baseFileInfo = await _commandService.RunCommand("ffmpeg.exe", $@"-i ""{filePath}""", folder); var baseFileInfo = await _commandService.RunCommand("ffmpeg", $@"-i ""{filePath}""", folder);
var fileInfo = new FileInfo(filePath); var fileInfo = new FileInfo(filePath);
var shouldParse = var shouldParse =
fileInfo.Length > 20 * 1024 * 1024 && // 20MB fileInfo.Length > 20 * 1024 * 1024 && // 20MB
......
...@@ -3,11 +3,8 @@ ...@@ -3,11 +3,8 @@
<PropertyGroup> <PropertyGroup>
<OutputType>Exe</OutputType> <OutputType>Exe</OutputType>
<TargetFramework>net6.0</TargetFramework> <TargetFramework>net6.0</TargetFramework>
<PublishSingleFile>true</PublishSingleFile>
<SelfContained>true</SelfContained>
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
<Nullable>enable</Nullable> <Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings> <ImplicitUsings>enable</ImplicitUsings>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment