增加概念说明

This commit is contained in:
锦恢 2025-04-28 21:08:39 +08:00
parent 7d2afb053e
commit 9c98a636f9
8 changed files with 141 additions and 2907 deletions

8
software/build.ps1 Normal file
View File

@ -0,0 +1,8 @@
Remove-Item -Recurse -Force dist
tsc
electron-builder
$dmgFile = Get-ChildItem -Path dist -Filter "OpenMCP-0.0.1.exe"
$dmgFile | ForEach-Object { Write-Host "$($_.FullName) size: $([math]::Round($_.Length / 1MB, 2)) MB" }

4
software/build.sh Executable file
View File

@ -0,0 +1,4 @@
rm -rf dist
tsc
electron-builder
du -h dist/OpenMCP-0.0.1-arm64.dmg

File diff suppressed because it is too large Load Diff

View File

@ -4,10 +4,10 @@
"description": "",
"main": "dist/main.js",
"scripts": {
"start": "electron .",
"start": "tsc; electron .",
"build": "webpack --config webpack.config.js",
"watch": "webpack --watch --config webpack.config.js",
"dist": "electron-builder"
"dist": "tsc; electron-builder"
},
"author": {
"name": "LSTM-Kirigaya",
@ -27,16 +27,14 @@
},
"devDependencies": {
"@types/ws": "^8.18.1",
"electron": "^28.1.0",
"electron-builder": "^26.0.12",
"ts-loader": "^9.5.1",
"typescript": "^5.6.3",
"webpack": "^5.99.5",
"webpack-cli": "^5.1.4"
"electron": "^35.2.1",
"typescript": "^5.6.3"
},
"build": {
"appId": "com.example.openmcp",
"appId": "com.electron.openmcp",
"productName": "OpenMCP",
"asar": true,
"asarUnpack": "*.node",
"directories": {
"output": "dist"
},

View File

@ -6,9 +6,7 @@
"esModuleInterop": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true,
"outDir": "./dist",
"declaration": true,
"declarationMap": true
"outDir": "./dist"
},
"include": ["src/**/*.ts"], // .ts
"exclude": ["node_modules"]