CubeSuite / ModdersAssistant

Modder's Assistant is a program that helps modders organise their mod projects as well as automating many of the tasks involved in mod development
GNU General Public License v3.0
1 stars 0 forks source link

ZipModFiles will happily zip up older version zip files #1

Open jrinker03 opened 1 week ago

jrinker03 commented 1 week ago

ZipModFiles checks if the file it's about to generate exists and will delete it, if so. It then zips up the contents of Mod Files.

The issue is if there is a zip file from a previous version, it will not detect and delete it and it winds up in the current zip file.

string zipPath = $"{ProgramData.FilePaths.dataFolder}/{GetFileSafeName()}-{version}.zip";
if (File.Exists(zipPath)) File.Delete(zipPath);
ZipFile.CreateFromDirectory(modFilesFolder, zipPath);
jrinker03 commented 1 week ago

See suggestion for a new folder for release zips: #2