Skip to content

Commit

Permalink
fix: crash at start app
Browse files Browse the repository at this point in the history
  • Loading branch information
letrungdo committed Jun 18, 2024
1 parent 477c755 commit d83600f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions windows/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set(PROJECT_NAME "webview_windows")
set(WIL_VERSION "1.0.220914.1")
set(WEBVIEW_VERSION "1.0.1210.39")

message(VERBOSE "CMake system version is ${CMAKE_SYSTEM_VERSION} (using SDK ${CMAKE_VS_WINDOWS_TARGET_PLATFORM_VERSION})")
message(NOTICE "CMake system version is ${CMAKE_SYSTEM_VERSION} (using SDK ${CMAKE_VS_WINDOWS_TARGET_PLATFORM_VERSION})")

project(${PROJECT_NAME} LANGUAGES CXX)

Expand All @@ -15,20 +15,20 @@ set(PLUGIN_NAME "webview_windows_plugin")
set(NUGET_URL https://dist.nuget.org/win-x86-commandline/v5.10.0/nuget.exe)
set(NUGET_SHA256 852b71cc8c8c2d40d09ea49d321ff56fd2397b9d6ea9f96e532530307bbbafd3)

find_program(NUGET nuget)
if(NOT NUGET)
# find_program(NUGET nuget)
# if(NOT NUGET)
message(NOTICE "Nuget is not installed.")
set(NUGET ${CMAKE_BINARY_DIR}/nuget.exe)
if (NOT EXISTS ${NUGET})
# if (NOT EXISTS ${NUGET})
message(NOTICE "Attempting to download nuget.")
file(DOWNLOAD ${NUGET_URL} ${NUGET})
endif()
# endif()

file(SHA256 ${NUGET} NUGET_DL_HASH)
if (NOT NUGET_DL_HASH STREQUAL NUGET_SHA256)
message(FATAL_ERROR "Integrity check for ${NUGET} failed.")
endif()
endif()
# endif()

add_custom_target(${PROJECT_NAME}_DEPENDENCIES_DOWNLOAD ALL)
add_custom_command(
Expand Down

0 comments on commit d83600f

Please sign in to comment.