aboutsummaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorRémy Raes <contact@remyraes.com>2023-11-03 16:32:41 +0100
committerGitHub <noreply@github.com>2023-11-03 16:32:41 +0100
commit13f2facdb6b5a556f01e0d04aaa6bda5d2b29417 (patch)
treeb7375762976373291845c96ba539ece236b17033 /cmake
parent6e32a584804158daec2f57cfe3fa058f1ce3d0a7 (diff)
downloadNorthstarLauncher-13f2facdb6b5a556f01e0d04aaa6bda5d2b29417.tar.gz
NorthstarLauncher-13f2facdb6b5a556f01e0d04aaa6bda5d2b29417.zip
Inital native code for verified mod auto-downloading (#545)
Allows client to download a mod archive from the Thunderstore API, and extract included mods in the remote mods folder of the current game profile. Not all mods can be automatically downloaded, as it would cause some security issues, and Thunderstore mod name cannot be deduced from actual mod name: to be eligible to auto-downloading, a mod must appear in the list of verified mods. Said list and complete mod verification procedure are described here: https://github.com/R2Northstar/VerifiedMods Exposes two commands to test the feature: - `fetch_verified_mods` retrieves verified mods list from the GitHub organization, and stores it locally; - `download_mod` does the actual mod downloading/extraction job.
Diffstat (limited to 'cmake')
-rw-r--r--cmake/Findminizip.cmake10
1 files changed, 10 insertions, 0 deletions
diff --git a/cmake/Findminizip.cmake b/cmake/Findminizip.cmake
new file mode 100644
index 00000000..17489061
--- /dev/null
+++ b/cmake/Findminizip.cmake
@@ -0,0 +1,10 @@
+
+if(NOT minizip_FOUND)
+ check_init_submodule(${PROJECT_SOURCE_DIR}/thirdparty/minizip)
+
+ set(MZ_LZMA OFF CACHE BOOL "Disable LZMA & XZ compression")
+
+ add_subdirectory(${PROJECT_SOURCE_DIR}/thirdparty/minizip minizip)
+ set(minizip_FOUND 1 PARENT_SCOPE)
+endif()
+