Lodestone-Team / lodestone_core

The backend for Lodestone, A free, open source server hosting tool for Minecraft and other multiplayers
https://www.lodestone.cc/
GNU Affero General Public License v3.0
60 stars 6 forks source link

Find a way to handle both .tar.gz file and .zip file #18

Closed CheatCod closed 2 years ago

CheatCod commented 2 years ago

Since Lodestone will support multiple platforms, we need a way to compress/decompress .tar.gz file commonly used on *NIX and .zip file commonly used on Windows.

CheatCod commented 2 years ago

Option 1 (not considered): zipping libraries in rust Advantage: No external dependencies Disadvantages: One zipping library is designed to handle only a single compression format, so we would need at least 2 libraries one handling gzip (.tar.gz) and one handling .zip. Additionally, some libraries depend on dynamically linked libraries.

Option 2: the installer will download the platform specific 7zip executable when setting up, and place it into the runtime dependency folder.