FastDownload Synchronizer v1.0

You can use this application to synchronize all your addon resources and all maps to your FastDL directory. All files will be compressed with BZip2.

This will only work if your gmod- and webserver are on the same machine. There is no support for FTP.

Requirements

Usage
Execute the following command to run the application:


dotnet GmodResourceSync.dll <PathToGmod> <PathToFastDL> <PathTo7Zip> [<Force>]

Examples:



Windows:
dotnet GmodResourceSync.dll "C:\servers	tt-01\garrysmod" "C:\www\fastdownload" "C:\Program Files\7-Zip\7z.exe"
dotnet GmodResourceSync.dll "C:\servers	tt-01\garrysmod" "C:\www\fastdownload" "C:\Program Files\7-Zip\7z.exe" force

Linux:
dotnet GmodResourceSync.dll "/servers/ttt-01/garrysmod" "/www/fastdownload" "7z"
dotnet GmodResourceSync.dll "/servers/ttt-01/garrysmod" "/www/fastdownload" "7z" force


Adding “force” will force to sync and compress all resources again, even if they already exist in the FastDownload directory.

The application will crash if something is wrong.

Supported directories



garrysmod/addons/.../materials
garrysmod/addons/.../models
garrysmod/addons/.../resource
garrysmod/addons/.../sound
garrysmod/addons/.../particles
garrysmod/addons/.../maps
garrysmod/maps/*.bsp
garrysmod/maps/graphs/*.ain


Download
GitHub: https://github.com/ibot3/GmodResourceSync

You might want to post the source so people trust it more.

I uploaded the source code to GitHub.
The application files can be found here:
https://github.com/ibot3/GmodResourceSync/tree/master/GmodResourceSync/bin/Release/netcoreapp2.0

He meant the DLL.

You can compile the DLL with Visual Studio and the given source code.

For future reference if you find a .Net app you don’t trust use this.
https://github.com/0xd4d/dnSpy