增加概念说明

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

View File

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