From 97f0077e95df5148fa15309a3b76b70794163ab8 Mon Sep 17 00:00:00 2001 From: xuncha <1658671838@qq.com> Date: Sat, 31 Jan 2026 16:14:00 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=93=E5=8C=85=E4=BD=A0=E5=BF=AB=E4=BF=AE?= =?UTF-8?q?=E5=A5=BD=E5=95=8A=20=E6=88=91=E6=9C=8D=E4=BA=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/release.yml | 26 ++------------------------ package-lock.json | 13 +------------ package.json | 5 ++--- 3 files changed, 5 insertions(+), 39 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5eedc11..9f2fcc9 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -10,7 +10,7 @@ permissions: jobs: release: - runs-on: windows-2022 + runs-on: windows-latest steps: - name: Check out git repository @@ -21,31 +21,9 @@ jobs: - name: Install Node.js uses: actions/setup-node@v4 with: - node-version: 20.20.0 + node-version: 22.12 cache: 'npm' - - name: Configure Windows SDK WinMD - shell: powershell - run: | - $sdkRoot = Join-Path ${env:ProgramFiles(x86)} "Windows Kits\\10" - $unionRoot = Join-Path $sdkRoot "UnionMetadata" - $refsRoot = Join-Path $sdkRoot "References" - if (!(Test-Path $unionRoot)) { throw "UnionMetadata not found at $unionRoot" } - $platformWinmd = Get-ChildItem $unionRoot -Recurse -Filter platform.winmd -ErrorAction SilentlyContinue | - Sort-Object FullName -Descending | Select-Object -First 1 - if (!$platformWinmd) { throw "platform.winmd not found under $unionRoot" } - $platformDir = Split-Path $platformWinmd.FullName -Parent - $versionDir = $platformWinmd.Directory.Name - $refsDir = Join-Path $refsRoot $versionDir - if (!(Test-Path $refsDir)) { - $refsDir = Get-ChildItem $refsRoot -Directory | Sort-Object Name -Descending | Select-Object -First 1 - } - if (!$refsDir) { throw "No References version directory found" } - $libPath = "$platformDir;$($refsDir.FullName)" - Add-Content -Path $env:GITHUB_ENV -Value "LIBPATH=$libPath" -Encoding utf8 - Add-Content -Path $env:GITHUB_ENV -Value "WindowsSdkDir=$sdkRoot\\" -Encoding utf8 - Add-Content -Path $env:GITHUB_ENV -Value "WindowsSdkVersion=$versionDir\\" -Encoding utf8 - - name: Install Dependencies run: npm ci diff --git a/package-lock.json b/package-lock.json index 6a7f552..7a5223f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "weflow", - "version": "1.4.2", + "version": "1.4.3", "lockfileVersion": 3, "requires": true, "packages": { @@ -9,7 +9,6 @@ "version": "1.4.2", "hasInstallScript": true, "dependencies": { - "@nodert-win10-rs4/windows.security.credentials.ui": "^0.4.4", "better-sqlite3": "^12.5.0", "echarts": "^5.5.1", "echarts-for-react": "^3.0.2", @@ -1949,16 +1948,6 @@ "node": ">= 10.0.0" } }, - "node_modules/@nodert-win10-rs4/windows.security.credentials.ui": { - "version": "0.4.4", - "resolved": "https://registry.npmmirror.com/@nodert-win10-rs4/windows.security.credentials.ui/-/windows.security.credentials.ui-0.4.4.tgz", - "integrity": "sha512-P+EsJw5MCQXTxp7mwXfNDvIzIYsB6ple+HNg01QjPWg/PJfAodPuxL6XM7l0sPtYHsDYnfnvoefZMdZRa2Z1ig==", - "hasInstallScript": true, - "license": "Apache-2.0", - "dependencies": { - "nan": "latest" - } - }, "node_modules/@npmcli/agent": { "version": "3.0.0", "resolved": "https://registry.npmmirror.com/@npmcli/agent/-/agent-3.0.0.tgz", diff --git a/package.json b/package.json index ae8d645..6950122 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "weflow", - "version": "1.4.2", + "version": "1.4.3", "description": "WeFlow", "main": "dist-electron/main.js", "author": "cc", @@ -15,7 +15,6 @@ "electron:build": "npm run build" }, "dependencies": { - "@nodert-win10-rs4/windows.security.credentials.ui": "^0.4.4", "better-sqlite3": "^12.5.0", "echarts": "^5.5.1", "echarts-for-react": "^3.0.2", @@ -127,4 +126,4 @@ } ] } -} \ No newline at end of file +}