Skip to content

Commit

Permalink
aa
Browse files Browse the repository at this point in the history
  • Loading branch information
TheElixZammuto committed Oct 2, 2023
1 parent fbf3f9c commit e9c4739
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmake/targets/common.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ endforeach()
target_compile_options(sunshine PRIVATE $<$<COMPILE_LANGUAGE:CXX>:${SUNSHINE_COMPILE_OPTIONS}>;$<$<COMPILE_LANGUAGE:CUDA>:${SUNSHINE_COMPILE_OPTIONS_CUDA};-std=c++17>) # cmake-lint: disable=C0301

#WebUI build
add_custom_target (web-ui ALL WORKING_DIRECTORY COMMAND bash -c 'npm install && SUNSHINE_SOURCE_ASSETS_DIR=${SUNSHINE_SOURCE_ASSETS_DIR} SUNSHINE_ASSETS_DIR=${CMAKE_BINARY_DIR}/${SUNSHINE_ASSETS_DIR} npm run build')
add_custom_target (web-ui ALL WORKING_DIRECTORY COMMAND bash -c 'npm install && SUNSHINE_SOURCE_ASSETS_DIR=${SUNSHINE_SOURCE_ASSETS_DIR} SUNSHINE_ASSETS_DIR=${CMAKE_BINARY_DIR} npm run build')
2 changes: 1 addition & 1 deletion vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ if (process.env.SUNSHINE_SOURCE_ASSETS_DIR) {
}
if (process.env.SUNSHINE_ASSETS_DIR) {
console.log("Using destdir from Cmake: " + resolve(process.env.SUNSHINE_ASSETS_DIR,"assets/web"));
assetsDstPath = process.env.SUNSHINE_ASSETS_DIR
assetsDstPath = resolve(process.env.SUNSHINE_ASSETS_DIR,process.env.SUNSHINE_ASSETS_DIR)
}

let header = fs.readFileSync(resolve(assetsSrcPath, "template_header.html"))
Expand Down

0 comments on commit e9c4739

Please sign in to comment.