mirror of
https://github.com/LizardByte/Sunshine.git
synced 2025-01-30 12:32:43 +00:00
fix npm path (#635)
This commit is contained in:
parent
c0b042fa8a
commit
c1f0daa024
5
.github/workflows/CI.yml
vendored
5
.github/workflows/CI.yml
vendored
@ -466,9 +466,7 @@ jobs:
|
|||||||
mkdir -p build
|
mkdir -p build
|
||||||
mkdir -p artifacts
|
mkdir -p artifacts
|
||||||
|
|
||||||
pushd "./src_assets/common/assets/web"
|
|
||||||
npm install
|
npm install
|
||||||
popd
|
|
||||||
|
|
||||||
cd build
|
cd build
|
||||||
cmake -DCMAKE_BUILD_TYPE=Release \
|
cmake -DCMAKE_BUILD_TYPE=Release \
|
||||||
@ -588,9 +586,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Build MacOS
|
- name: Build MacOS
|
||||||
run: |
|
run: |
|
||||||
pushd "./src_assets/common/assets/web"
|
|
||||||
npm install
|
npm install
|
||||||
popd
|
|
||||||
|
|
||||||
mkdir build
|
mkdir build
|
||||||
cd build
|
cd build
|
||||||
@ -893,7 +889,6 @@ jobs:
|
|||||||
yasm
|
yasm
|
||||||
|
|
||||||
- name: Install npm packages
|
- name: Install npm packages
|
||||||
working-directory: src_assets/common/assets/web
|
|
||||||
run: |
|
run: |
|
||||||
npm install
|
npm install
|
||||||
|
|
||||||
|
@ -503,6 +503,9 @@ set(CPACK_PACKAGE_ICON ${PROJECT_SOURCE_DIR}/sunshine.png)
|
|||||||
set(CPACK_PACKAGE_FILE_NAME "${CMAKE_PROJECT_NAME}")
|
set(CPACK_PACKAGE_FILE_NAME "${CMAKE_PROJECT_NAME}")
|
||||||
set(CPACK_STRIP_FILES YES)
|
set(CPACK_STRIP_FILES YES)
|
||||||
|
|
||||||
|
# install npm modules
|
||||||
|
install(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/node_modules" DESTINATION "${SUNSHINE_ASSETS_DIR}/web")
|
||||||
|
|
||||||
# Platform specific options
|
# Platform specific options
|
||||||
if(WIN32) # see options at: https://cmake.org/cmake/help/latest/cpack_gen/nsis.html
|
if(WIN32) # see options at: https://cmake.org/cmake/help/latest/cpack_gen/nsis.html
|
||||||
install(TARGETS sunshine RUNTIME DESTINATION "." COMPONENT application)
|
install(TARGETS sunshine RUNTIME DESTINATION "." COMPONENT application)
|
||||||
|
@ -43,7 +43,6 @@ WORKDIR /root/sunshine-build/
|
|||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
# setup npm and dependencies
|
# setup npm and dependencies
|
||||||
WORKDIR /root/sunshine-build/src_assets/common/assets/web
|
|
||||||
RUN npm install
|
RUN npm install
|
||||||
|
|
||||||
# setup build directory
|
# setup build directory
|
||||||
|
@ -231,9 +231,7 @@ npm dependencies
|
|||||||
Install npm dependencies.
|
Install npm dependencies.
|
||||||
.. code-block:: bash
|
.. code-block:: bash
|
||||||
|
|
||||||
pushd ./src_assets/common/assets/web
|
|
||||||
npm install
|
npm install
|
||||||
popd
|
|
||||||
|
|
||||||
Build
|
Build
|
||||||
-----
|
-----
|
||||||
|
@ -29,9 +29,7 @@ npm dependencies
|
|||||||
Install npm dependencies.
|
Install npm dependencies.
|
||||||
.. code-block:: bash
|
.. code-block:: bash
|
||||||
|
|
||||||
pushd ./src_assets/common/assets/web
|
|
||||||
npm install
|
npm install
|
||||||
popd
|
|
||||||
|
|
||||||
Build
|
Build
|
||||||
-----
|
-----
|
||||||
|
@ -19,9 +19,7 @@ Install nodejs and npm. Downloads available `here <https://nodejs.org/en/downloa
|
|||||||
Install npm dependencies.
|
Install npm dependencies.
|
||||||
.. code-block:: bash
|
.. code-block:: bash
|
||||||
|
|
||||||
pushd ./src_assets/common/assets/web
|
|
||||||
npm install
|
npm install
|
||||||
popd
|
|
||||||
|
|
||||||
Build
|
Build
|
||||||
-----
|
-----
|
||||||
|
@ -25,7 +25,7 @@ prepare() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
pushd "$pkgname/src_assets/common/assets/web"
|
pushd "$pkgname"
|
||||||
npm install
|
npm install
|
||||||
popd
|
popd
|
||||||
|
|
||||||
|
@ -142,7 +142,7 @@ modules:
|
|||||||
NPM_CONFIG_LOGLEVEL: info
|
NPM_CONFIG_LOGLEVEL: info
|
||||||
build-commands:
|
build-commands:
|
||||||
# Install npm dependencies
|
# Install npm dependencies
|
||||||
- cd ${FLATPAK_BUILDER_BUILDDIR}/src_assets/common/assets/web && npm install
|
- cd ${FLATPAK_BUILDER_BUILDDIR} && npm install
|
||||||
config-opts:
|
config-opts:
|
||||||
- -DCMAKE_BUILD_TYPE=Release
|
- -DCMAKE_BUILD_TYPE=Release
|
||||||
- -DCMAKE_INSTALL_PREFIX=/app
|
- -DCMAKE_INSTALL_PREFIX=/app
|
||||||
|
@ -56,7 +56,7 @@ platform darwin {
|
|||||||
}
|
}
|
||||||
|
|
||||||
pre-build {
|
pre-build {
|
||||||
system -W ${worksrcpath}/src_assets/common/assets/web "npm install"
|
system -W ${worksrcpath} "npm install"
|
||||||
}
|
}
|
||||||
|
|
||||||
notes-append "Run @PROJECT_NAME@ by executing 'sunshine <path to user config>', e.g. 'sunshine ~/sunshine.conf' "
|
notes-append "Run @PROJECT_NAME@ by executing 'sunshine <path to user config>', e.g. 'sunshine ~/sunshine.conf' "
|
||||||
|
Loading…
x
Reference in New Issue
Block a user