Skip to content

Commit

Permalink
Maintenance for nugets (#26)
Browse files Browse the repository at this point in the history
* .net framework 4.6.2 (supported) till end of windows 10
* dependabot newtonsoft
  • Loading branch information
cliveontoast authored Sep 24, 2022
1 parent c3ef5e9 commit 4d890f4
Show file tree
Hide file tree
Showing 13 changed files with 2,686 additions and 18 deletions.
15 changes: 10 additions & 5 deletions Build-Test-Zip.bat
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,16 @@ del /Q /S /F .\test-image\*.mp4
del /Q /S /F .\test-image\*.gif
del /Q /S /F .\split
dotnet build src\GoMoPhoFrameworkConsole\GoMoPhoFrameworkConsole.csproj
dotnet publish src\GoMoPhoConsole\GoMoPhoCoreConsole.csproj -o .\bin\CrossPlatform
dotnet publish src\GoMoPhoConsole\GoMoPhoCoreConsole.csproj -r win-x64 -o .\bin\WindowsCore
dotnet publish src\GoMoPhoConsole\GoMoPhoCoreConsole.csproj -r linux-x64 -o .\bin\GNULinux
dotnet publish src\GoMoPhoConsole\GoMoPhoCoreConsole.csproj -r ubuntu-x64 -o .\bin\Ubuntu
dotnet publish src\GoMoPhoConsole\GoMoPhoCoreConsole.csproj -r osx-x64 -o .\bin\macOS
del /S packages.lock.json
dotnet publish src\GoMoPhoConsole\GoMoPhoCoreConsole.csproj --output .\bin\CrossPlatform
del /S packages.lock.json
dotnet publish src\GoMoPhoConsole\GoMoPhoCoreConsole.csproj --runtime win-x64 --output .\bin\WindowsCore
del /S packages.lock.json
dotnet publish src\GoMoPhoConsole\GoMoPhoCoreConsole.csproj --runtime linux-x64 --output .\bin\GNULinux
del /S packages.lock.json
dotnet publish src\GoMoPhoConsole\GoMoPhoCoreConsole.csproj --runtime ubuntu-x64 --output .\bin\Ubuntu
del /S packages.lock.json
dotnet publish src\GoMoPhoConsole\GoMoPhoCoreConsole.csproj --runtime osx-x64 --output .\bin\macOS

dotnet bin\CrossPlatform\GoMoPhoCoreConsole.dll d test-image\ g h pattern "MVIMG_20180910_12441*.jpg"
rem windows only
Expand Down
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,17 @@ dotnet build src\GoogleMotionImage.sln
```
Windows: Run Build-Test-Zip.bat file to compile and test the program.

## Nuget rebuild lock files
http://blog.ctaggart.com/2019/03/using-nuget-lock-file-for-reproducible.html
```
dotnet nuget locals all --clear
git clean -xfd
git rm **/packages.lock.json -f
dotnet restore GoogleMotionImage.sln
or
dotnet restore GoogleMotionImage.sln --force-evaluate
```

#### Testing in windows
```
Build-Test-Zip.bat
Expand Down
8 changes: 8 additions & 0 deletions src/Directory.Build.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<Project>
<PropertyGroup>
<RestorePackagesWithLockFile>true</RestorePackagesWithLockFile>
<RestoreLockedMode>true</RestoreLockedMode>
<NoWarn>NU1603</NoWarn>
<DisableImplicitNuGetFallbackFolder>true</DisableImplicitNuGetFallbackFolder>
</PropertyGroup>
</Project>
1 change: 1 addition & 0 deletions src/GoMoPho/FFmpegGif.cs
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ private static async Task<bool> GetFFmpeg()
//Get latest version of FFmpeg. It's great idea if you don't know if you had installed FFmpeg.
await Console.Out.WriteLineAsync($"Getting FFMpeg, saving to {TempLocation}");
await FFmpegDownloader.GetLatestVersion(FFmpegVersion.Official, TempLocation);
FFmpeg.SetExecutablesPath(TempLocation);
}
catch (Exception e)
{
Expand Down
4 changes: 2 additions & 2 deletions src/GoMoPho/GoMoPho.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Xabe.FFmpeg" Version="5.0.2" />
<PackageReference Include="Xabe.FFmpeg.Downloader" Version="5.0.2" />
<PackageReference Include="Xabe.FFmpeg" Version="5.2.0" />
<PackageReference Include="Xabe.FFmpeg.Downloader" Version="5.2.0" />
</ItemGroup>

</Project>
Loading

0 comments on commit 4d890f4

Please sign in to comment.