Aurora-Modders / AuroraLoader

A tool for discovering and safely managing Aurora mods
MIT License
10 stars 5 forks source link

Publish improvements #41

Closed thashepherd closed 4 years ago

thashepherd commented 4 years ago

Single-file publishing now supports DB mods and update_loader.dat. This fixes the crash when attempting to use DB mods and the failure to re-launch after updating AuroraLoader that would occur when using a single-file release of 0.22.3ish.

For convenience, the following files are now copied to the output directory when using single file publish:

The above involved changing several references from AppDomain.CurrentDomain.BaseDirectory (which refers to a temp directory when running a .NET Core 3 single-file .exe) to AuroraLoaderExecutableDirectory (which always refers to the directory the actual .exe is in).

Finally, I ran Visual Studio's built in 'clean up imports' tool, and apparently the packages we publish are MUCH smaller now - 1.2mb compared to over 32mb!

Note that I'm publishing with the following options: image

That results in the following zip: AuroraLoader.0.22.4.zip