build(web-ui): fix rollup failing (#4687)
This commit is contained in:
parent
5bd3a2b225
commit
8aed1a82c8
4 changed files with 38 additions and 9 deletions
33
.github/workflows/ci-windows.yml
vendored
33
.github/workflows/ci-windows.yml
vendored
|
|
@ -71,7 +71,6 @@ jobs:
|
|||
"mingw-w64-${TOOLCHAIN}-graphviz"
|
||||
"mingw-w64-${TOOLCHAIN}-miniupnpc"
|
||||
"mingw-w64-${TOOLCHAIN}-nlohmann-json"
|
||||
"mingw-w64-${TOOLCHAIN}-nodejs"
|
||||
"mingw-w64-${TOOLCHAIN}-onevpl"
|
||||
"mingw-w64-${TOOLCHAIN}-openssl"
|
||||
"mingw-w64-${TOOLCHAIN}-opus"
|
||||
|
|
@ -82,6 +81,7 @@ jobs:
|
|||
dependencies+=(
|
||||
"mingw-w64-${TOOLCHAIN}-MinHook"
|
||||
"mingw-w64-${TOOLCHAIN}-nsis"
|
||||
"mingw-w64-${TOOLCHAIN}-nodejs"
|
||||
)
|
||||
fi
|
||||
|
||||
|
|
@ -146,6 +146,28 @@ jobs:
|
|||
with:
|
||||
dotnet-version: '10.x'
|
||||
|
||||
- name: Setup NodeJS
|
||||
# Clang compiled NodeJS has issues when running rollup webpack
|
||||
if: matrix.msystem != 'ucrt64'
|
||||
uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
|
||||
with:
|
||||
node-version: 'lts/*'
|
||||
|
||||
- name: NodeJS Path
|
||||
if: matrix.msystem != 'ucrt64'
|
||||
shell: pwsh
|
||||
run: |
|
||||
# get NodeJS PATH
|
||||
$NODEJS_BINARY_PATH = (Get-Command node).Source
|
||||
$NODEJS_PATH = Split-Path -Path "$NODEJS_BINARY_PATH" -Parent
|
||||
|
||||
# setup environment variables
|
||||
echo "NODEJS_PATH=$NODEJS_PATH" >> $env:GITHUB_ENV
|
||||
|
||||
# step output
|
||||
echo "nodejs-path=$NODEJS_PATH"
|
||||
echo "nodejs-path=$NODEJS_PATH" >> $env:GITHUB_OUTPUT
|
||||
|
||||
- name: Setup python
|
||||
id: setup-python
|
||||
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
|
||||
|
|
@ -166,10 +188,19 @@ jobs:
|
|||
- name: Build Windows
|
||||
shell: msys2 {0}
|
||||
env:
|
||||
# MSYSTEM is a built-in environment variable of MSYS2.
|
||||
# Do not use this environment variable name.
|
||||
MATRIX_MSYSTEM: ${{ matrix.msystem }}
|
||||
BRANCH: ${{ github.head_ref || github.ref_name }}
|
||||
BUILD_VERSION: ${{ inputs.release_version }}
|
||||
COMMIT: ${{ inputs.release_commit }}
|
||||
run: |
|
||||
# setup NodeJS PATH
|
||||
if [[ "${MATRIX_MSYSTEM}" != "ucrt64" ]]; then
|
||||
NODEJS_PATH=$(cygpath "$NODEJS_PATH")
|
||||
export PATH="$PATH:$NODEJS_PATH"
|
||||
fi
|
||||
|
||||
mkdir -p build
|
||||
cmake \
|
||||
-B build \
|
||||
|
|
|
|||
|
|
@ -161,7 +161,6 @@ dependencies=(
|
|||
"mingw-w64-${TOOLCHAIN}-doxygen" # Optional, for docs... better to install official Doxygen
|
||||
"mingw-w64-${TOOLCHAIN}-graphviz" # Optional, for docs
|
||||
"mingw-w64-${TOOLCHAIN}-miniupnpc"
|
||||
"mingw-w64-${TOOLCHAIN}-nodejs"
|
||||
"mingw-w64-${TOOLCHAIN}-onevpl"
|
||||
"mingw-w64-${TOOLCHAIN}-openssl"
|
||||
"mingw-w64-${TOOLCHAIN}-opus"
|
||||
|
|
@ -170,6 +169,7 @@ dependencies=(
|
|||
if [[ "${MSYSTEM}" == "UCRT64" ]]; then
|
||||
dependencies+=(
|
||||
"mingw-w64-${TOOLCHAIN}-MinHook"
|
||||
"mingw-w64-${TOOLCHAIN}-nodejs"
|
||||
"mingw-w64-${TOOLCHAIN}-nsis"
|
||||
)
|
||||
fi
|
||||
|
|
@ -178,6 +178,8 @@ pacman -S "${dependencies[@]}"
|
|||
|
||||
To create a WiX installer, you also need to install [.NET](https://dotnet.microsoft.com/download).
|
||||
|
||||
For ARM64: To build frontend, you also need to install [Node.JS](https://nodejs.org/en/download)
|
||||
|
||||
### Clone
|
||||
Ensure [git](https://git-scm.com) is installed on your system, then clone the repository using the following command:
|
||||
|
||||
|
|
|
|||
|
|
@ -22,10 +22,6 @@
|
|||
"@vitejs/plugin-vue": "6.0.1",
|
||||
"serve": "14.2.5",
|
||||
"vite": "6.3.6",
|
||||
"vite-plugin-ejs": "1.7.0",
|
||||
"@rollup/wasm-node": "4.57.1"
|
||||
},
|
||||
"overrides": {
|
||||
"rollup": "npm:@rollup/wasm-node@4.57.1"
|
||||
"vite-plugin-ejs": "1.7.0"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -695,7 +695,7 @@ elif grep -q "Debian GNU/Linux 12 (bookworm)" /etc/os-release; then
|
|||
cuda_version="12.9.1"
|
||||
cuda_build="575.57.08"
|
||||
gcc_version="13"
|
||||
nvm_node=1
|
||||
nvm_node=0
|
||||
elif grep -q "Debian GNU/Linux 13 (trixie)" /etc/os-release; then
|
||||
distro="debian"
|
||||
version="13"
|
||||
|
|
@ -704,7 +704,7 @@ elif grep -q "Debian GNU/Linux 13 (trixie)" /etc/os-release; then
|
|||
cuda_version="12.9.1"
|
||||
cuda_build="575.57.08"
|
||||
gcc_version="14"
|
||||
nvm_node=1
|
||||
nvm_node=0
|
||||
elif grep -q "PLATFORM_ID=\"platform:f41\"" /etc/os-release; then
|
||||
distro="fedora"
|
||||
version="41"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue