This commit is contained in:
Your Name
2025-04-21 16:33:46 +12:00
parent 5861c9c776
commit b49bc0c5de
7 changed files with 73 additions and 3 deletions

View File

@ -35,7 +35,13 @@ install(FILES src/dropshell-completion.bash
RENAME dropshell
)
# Install templates
# Create pre-install script to clean old templates
install(CODE "
message(STATUS \"Removing old template files...\")
execute_process(COMMAND rm -rf /opt/dropshell/templates)
")
# Install templates with pre-install script
install(DIRECTORY templates/
DESTINATION /opt/dropshell/templates
)