mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-27 23:37:05 -05:00
build: Create ImHex-Patterns folder path if needed
This commit is contained in:
@@ -607,6 +607,10 @@ function(downloadImHexPatternsFiles dest)
|
|||||||
message(STATUS "Downloading ImHex patterns from branch '${PATTERNS_BRANCH}'...")
|
message(STATUS "Downloading ImHex patterns from branch '${PATTERNS_BRANCH}'...")
|
||||||
if (EXISTS "${imhex_patterns_SOURCE_DIR}")
|
if (EXISTS "${imhex_patterns_SOURCE_DIR}")
|
||||||
file(REMOVE_RECURSE "${imhex_patterns_SOURCE_DIR}")
|
file(REMOVE_RECURSE "${imhex_patterns_SOURCE_DIR}")
|
||||||
|
else ()
|
||||||
|
file(MAKE_DIRECTORY "${imhex_patterns_SOURCE_DIR}")
|
||||||
|
endif()
|
||||||
|
|
||||||
execute_process(
|
execute_process(
|
||||||
COMMAND
|
COMMAND
|
||||||
git clone --recurse-submodules --branch ${PATTERNS_BRANCH} https://github.com/WerWolv/ImHex-Patterns.git "${imhex_patterns_SOURCE_DIR}"
|
git clone --recurse-submodules --branch ${PATTERNS_BRANCH} https://github.com/WerWolv/ImHex-Patterns.git "${imhex_patterns_SOURCE_DIR}"
|
||||||
|
|||||||
Reference in New Issue
Block a user