Skip to content

This is a simple python file server and dotnet client to check md5 against server files and download if different

License

Notifications You must be signed in to change notification settings

Senzaiken/SimpleFileUpdater

 
 

Repository files navigation

SimpleFileUpdater

This is a simple python file server and dotnet client to check md5 against server files and download if different.

  • This is intended for servers to provide an easy way for players to stay up to date with their files, only downloading files the player needs, instead of all of them in a zip.
  • This is customizable to your needs; you can change art, text, etc.

image
image

Building and Customizing the client

  1. Clone the repo
  2. Change resources/background.png to your own background. 800x450 in size.
  3. Change resources/icon.co to your own icon. Size isn't too important.
  4. Open Settings.cs and update with your info.
  5. Run in terminal/command prompt/powershell etc: dotnet build -c Release

Build information

  • This is cross platform, to build on other platforms use:
  • Linux: dotnet publish -c Release -r linux-x64
  • MacOS: dotnet publish -c Release -r osx-x64 May need to be ran on a Mac
  • Windows: dotnet publish -c Release -r win-x64
  • Each platform needs it's own release.
  • The final output will be in bin/Release/net9.0/win-x64/publish/ (These are the only files you need to distribute to players)

Server

  1. On your server make sure you have python 3.11+ installed
  2. Run python3 serv.py
  3. This will create a files/ folder where you will place all files you want the client to be able to check/download.
  4. After placing your files in there, restart the server.
  5. When you update files, either restart the server or wait one hour. File cache is regenerated every hour.

Client Info

  • After building the project, place the output files in the same directory you'd like the server files to be downloaded to.
    • For example:
/FileUpdaterClient.exe
/map0.mul
/map1.mul
  • Run FileUpdaterClient.exe
  • This will check your files md5 vs the server's md5 and download any differing or non-existent files.

About

This is a simple python file server and dotnet client to check md5 against server files and download if different

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 80.5%
  • Python 17.4%
  • Shell 2.1%