diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 540e980e..a141f7d5 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -466,9 +466,7 @@ jobs: mkdir -p build mkdir -p artifacts - pushd "./src_assets/common/assets/web" npm install - popd cd build cmake -DCMAKE_BUILD_TYPE=Release \ @@ -588,9 +586,7 @@ jobs: - name: Build MacOS run: | - pushd "./src_assets/common/assets/web" npm install - popd mkdir build cd build @@ -893,7 +889,6 @@ jobs: yasm - name: Install npm packages - working-directory: src_assets/common/assets/web run: | npm install diff --git a/CMakeLists.txt b/CMakeLists.txt index 27c25d64..299d2374 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -503,6 +503,9 @@ set(CPACK_PACKAGE_ICON ${PROJECT_SOURCE_DIR}/sunshine.png) set(CPACK_PACKAGE_FILE_NAME "${CMAKE_PROJECT_NAME}") set(CPACK_STRIP_FILES YES) +# install npm modules +install(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/node_modules" DESTINATION "${SUNSHINE_ASSETS_DIR}/web") + # Platform specific options if(WIN32) # see options at: https://cmake.org/cmake/help/latest/cpack_gen/nsis.html install(TARGETS sunshine RUNTIME DESTINATION "." COMPONENT application) diff --git a/Dockerfile b/Dockerfile index 99c8795f..94d24ba1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -43,7 +43,6 @@ WORKDIR /root/sunshine-build/ COPY . . # setup npm and dependencies -WORKDIR /root/sunshine-build/src_assets/common/assets/web RUN npm install # setup build directory diff --git a/docs/source/building/linux.rst b/docs/source/building/linux.rst index 177c6ead..943f1027 100644 --- a/docs/source/building/linux.rst +++ b/docs/source/building/linux.rst @@ -231,9 +231,7 @@ npm dependencies Install npm dependencies. .. code-block:: bash - pushd ./src_assets/common/assets/web npm install - popd Build ----- diff --git a/docs/source/building/macos.rst b/docs/source/building/macos.rst index 5a6fb5c6..58344241 100644 --- a/docs/source/building/macos.rst +++ b/docs/source/building/macos.rst @@ -29,9 +29,7 @@ npm dependencies Install npm dependencies. .. code-block:: bash - pushd ./src_assets/common/assets/web npm install - popd Build ----- diff --git a/docs/source/building/windows.rst b/docs/source/building/windows.rst index c42ebc52..70ca0c2e 100644 --- a/docs/source/building/windows.rst +++ b/docs/source/building/windows.rst @@ -19,9 +19,7 @@ Install nodejs and npm. Downloads available `here ', e.g. 'sunshine ~/sunshine.conf' "