From f8b499d06064ed65bfa6abf8b6c3fab661555473 Mon Sep 17 00:00:00 2001 From: Florian Esser Date: Tue, 19 Nov 2024 18:11:47 +0100 Subject: [PATCH] build installer and check if it works --- .github/workflows/build-installer.yml | 47 +++++++++++++++++++-------- 1 file changed, 34 insertions(+), 13 deletions(-) diff --git a/.github/workflows/build-installer.yml b/.github/workflows/build-installer.yml index 218f6f2a..14f2906d 100644 --- a/.github/workflows/build-installer.yml +++ b/.github/workflows/build-installer.yml @@ -13,6 +13,9 @@ jobs: - name: Checkout code uses: actions/checkout@v3 + - name: Checkout code + uses: actions/checkout@v3 + - name: setup miniforge uses: conda-incubator/setup-miniconda@v3 with: @@ -23,17 +26,35 @@ jobs: - name: Install libuv dependency run: | conda install -y libuv - conda env list - conda env list | findstr libuv - ls C:\Users\runneradmin\miniconda3\envs\cp311_libuv - echo "$(conda env list | findstr libuv)" - echo "$($(conda env list | findstr libuv) -split ' ' | Select-Object -Last 1)" - echo "LIBUV_PATH=$($(conda env list | findstr libuv) -split ' ' | Select-Object -Last 1)" - echo "LIBUV_PATH=$($(conda env list | findstr libuv) -split ' ' | Select-Object -Last 1)" >> $env:GITHUB_ENV - - - name: test + echo "LIBUV_DLLS_PATH=$($(conda env list | findstr libuv) -split ' ' | Select-Object -Last 1)\Library\bin" + echo "LIBUV_DLLS_PATH=$($(conda env list | findstr libuv) -split ' ' | Select-Object -Last 1)\Library\bin" >> $env:GITHUB_ENV + - name: Install libuv dependency + + - name: copy libuv dlls to workspace + run: | + New-Item -ItemType Directory -Path "python_package_res\conda\Library\bin" -Force + copy "${{ env.LIBUV_PATH }}"\*.dll "python_package_res\conda\Library\bin" + + - name: Install Node.js and npm + uses: actions/setup-node@v3 + with: + node-version: '20' + + - name: setup npm project + working-directory: "WebUI" + run: npm install + + - name: build installer + working-directory: "WebUI" + run: | + npm install + npm run fetch-build-resources + npm run pack-python + npm run prebuild + npm run build:arc + + - name: check release run: | - echo "${{ env.LIBUV_PATH }}" - echo "${{ env.LIBUV_PATH }}\Library" - dir "${{ env.LIBUV_PATH }}" - dir "${{ env.LIBUV_PATH }}\Library" -recurse -depth 2 + dir + cd release + dir