Skip to content

Commit

Permalink
Install needed packages during setup.
Browse files Browse the repository at this point in the history
  • Loading branch information
tmiw committed Sep 30, 2024
1 parent 61a043f commit 4f13f2c
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions cmake/BuildRADE.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,15 @@ install(
FILES ${CMAKE_SOURCE_DIR}/cmake/rade-setup.bat
DESTINATION bin)

# Ensure that rade-setup.bat is executed by the installer,
# otherwise no packages will be installed.
list(APPEND CPACK_NSIS_EXTRA_INSTALL_COMMANDS
"ExecShellWait '' '\$INSTDIR\\bin\\rade-setup.bat' ''")

# Make sure we fully clean up after Python on uninstall.
list(APPEND CPACK_NSIS_EXTRA_UNINSTALL_COMMANDS
"RMDir /r /REBOOTOK '\$INSTDIR\\bin\\Lib'"
"RMDir /r /REBOOTOK '\$INSTDIR\\bin\\scripts'"
"RMDir /r /REBOOTOK '\$INSTDIR\\bin\\share'")

endif(WIN32)

0 comments on commit 4f13f2c

Please sign in to comment.