mirror of
https://github.com/hicccc77/WeFlow.git
synced 2026-03-25 07:16:51 +00:00
26
.github/workflows/release.yml
vendored
26
.github/workflows/release.yml
vendored
@@ -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
|
||||
|
||||
|
||||
13
package-lock.json
generated
13
package-lock.json
generated
@@ -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",
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user