增加概念说明
This commit is contained in:
parent
7d2afb053e
commit
9c98a636f9
8
software/build.ps1
Normal file
8
software/build.ps1
Normal 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
4
software/build.sh
Executable file
@ -0,0 +1,4 @@
|
|||||||
|
rm -rf dist
|
||||||
|
tsc
|
||||||
|
electron-builder
|
||||||
|
du -h dist/OpenMCP-0.0.1-arm64.dmg
|
3020
electron/package-lock.json → software/package-lock.json
generated
3020
electron/package-lock.json → software/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -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"
|
||||||
},
|
},
|
@ -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"]
|
Loading…
x
Reference in New Issue
Block a user