-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
411 lines (411 loc) · 15.9 KB
/
Copy pathpackage.json
File metadata and controls
411 lines (411 loc) · 15.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
{
"name": "vscode-dotnet-deploy",
"displayName": "Dotnet 部署工具",
"description": "通过 SSH 将 .NET 应用程序部署到 Ubuntu/Linux 服务器",
"version": "0.1.62",
"publisher": "local",
"repository": {
"type": "git",
"url": "https://github.com/interface95/vscode-dotnet-deploy.git"
},
"engines": {
"vscode": "^1.85.0"
},
"categories": [
"Other"
],
"activationEvents": [
"onView:dotnetDeploy.sidebar"
],
"main": "./out/extension.js",
"contributes": {
"commands": [
{
"command": "dotnetDeploy.openDashboard",
"title": "Open Advanced Dashboard",
"icon": "$(settings-gear)"
},
{
"command": "dotnetDeploy.openSetupWizard",
"title": "Dotnet Deploy: 配置交叉编译环境",
"icon": "$(tools)"
},
{
"command": "dotnetDeploy.openCrossCompileDocs",
"title": "Dotnet Deploy: 交叉编译安装教程",
"icon": "$(book)"
},
{
"command": "dotnetDeploy.openMacOSPackageConfig",
"title": "Dotnet Deploy: macOS 打包配置",
"icon": "$(package)"
},
{
"command": "dotnetDeploy.configure",
"title": "Dotnet Deploy: Configure Settings",
"icon": "$(gear)"
},
{
"command": "dotnetDeploy.refresh",
"title": "Refresh Projects",
"icon": "$(refresh)"
}
],
"viewsContainers": {
"activitybar": [
{
"id": "dotnetDeploy",
"title": "Dotnet Deploy",
"icon": "resources/deploy.svg"
}
]
},
"views": {
"dotnetDeploy": [
{
"type": "webview",
"id": "dotnetDeploy.sidebar",
"name": "Deploy"
}
]
},
"menus": {
"view/title": [
{
"command": "dotnetDeploy.configure",
"when": "view == dotnetDeploy.sidebar",
"group": "navigation"
}
]
},
"configuration": {
"title": "Dotnet 部署工具",
"properties": {
"dotnetDeploy.server.host": {
"type": "string",
"default": "",
"description": "SSH 服务器主机名或 IP"
},
"dotnetDeploy.server.port": {
"type": "number",
"default": 22,
"description": "SSH 端口"
},
"dotnetDeploy.server.username": {
"type": "string",
"default": "root",
"description": "SSH 用户名"
},
"dotnetDeploy.server.privateKeyPath": {
"type": "string",
"default": "~/.ssh/id_rsa",
"description": "SSH 私钥路径"
},
"dotnetDeploy.deploy.remotePath": {
"type": "string",
"default": "/opt/apps",
"description": "远程部署目录"
},
"dotnetDeploy.deploy.afterUploadCommand": {
"type": "string",
"default": "sudo {remote_path}/{app_name} start",
"description": "文件上传后执行的远程命令 (支持变量: {app_name}, {remote_path})",
"editPresentation": "multilineText"
},
"dotnetDeploy.publish.selfContained": {
"type": "boolean",
"default": true,
"description": "独立发布 (包含运行时)"
},
"dotnetDeploy.publish.singleFile": {
"type": "boolean",
"default": false,
"description": "发布为单文件"
},
"dotnetDeploy.publish.debugSymbols": {
"type": "boolean",
"default": false,
"description": "包含调试符号 (.pdb 文件)"
},
"dotnetDeploy.publish.aot": {
"type": "boolean",
"default": false,
"description": "启用 Native AOT 编译 (-p:PublishAot=true)"
},
"dotnetDeploy.publish.stripSymbols": {
"type": "boolean",
"default": false,
"description": "剥离符号 (-p:StripSymbols=true)"
},
"dotnetDeploy.publish.trim": {
"type": "boolean",
"default": false,
"description": "裁剪未使用的代码"
},
"dotnetDeploy.publish.invariantGlobalization": {
"type": "boolean",
"default": false,
"description": "无全球化依赖 (-p:InvariantGlobalization=true)"
},
"dotnetDeploy.publish.runtime": {
"type": "string",
"default": "linux-x64",
"description": "目标运行时标识符",
"enum": [
"linux-x64",
"linux-arm64",
"win-x64",
"win-x86",
"win-arm64",
"osx-x64",
"osx-arm64"
]
},
"dotnetDeploy.upx.enabled": {
"type": "boolean",
"default": false,
"description": "启用 UPX 压缩 (支持 Linux/Windows 目标,macOS 目标不支持)"
},
"dotnetDeploy.upx.level": {
"type": "string",
"default": "--best",
"enum": [
"-1",
"-9",
"--best",
"--lzma"
],
"description": "UPX 压缩级别 (需要先安装 upx: brew install upx)"
},
"dotnetDeploy.telegram.enabled": {
"type": "boolean",
"default": false,
"description": "Enable Telegram notifications"
},
"dotnetDeploy.telegram.upload": {
"type": "boolean",
"default": false,
"description": "Upload build artifact to Telegram"
},
"dotnetDeploy.telegram.botToken": {
"type": "string",
"default": "",
"description": "Telegram Bot Token"
},
"dotnetDeploy.telegram.chatId": {
"type": "string",
"default": "",
"description": "Telegram Chat ID"
},
"dotnetDeploy.crossCompile.enabled": {
"type": "boolean",
"default": true,
"description": "启用交叉编译支持 (macOS → Linux/Windows)"
},
"dotnetDeploy.crossCompile.zigPath": {
"type": "string",
"default": "",
"description": "Zig 编译器路径 (留空则自动检测)"
},
"dotnetDeploy.crossCompile.xwinSdkPath": {
"type": "string",
"default": "~/.local/share/xwin-sdk",
"description": "Windows SDK 缓存目录 (用于 Windows 交叉编译)"
},
"dotnetDeploy.crossCompile.autoInstallTools": {
"type": "boolean",
"default": false,
"description": "自动安装缺失的交叉编译工具"
},
"dotnetDeploy.macos.enabled": {
"type": "boolean",
"default": false,
"description": "启用 macOS 打包 (生成 .app/.dmg/.pkg)"
},
"dotnetDeploy.macos.appName": {
"type": "string",
"default": "",
"description": "macOS 应用名称"
},
"dotnetDeploy.macos.bundleId": {
"type": "string",
"default": "com.example.app",
"description": "macOS Bundle Identifier"
},
"dotnetDeploy.macos.version": {
"type": "string",
"default": "1.0.0",
"description": "应用版本号"
},
"dotnetDeploy.macos.shortVersion": {
"type": "string",
"default": "",
"description": "应用短版本号"
},
"dotnetDeploy.macos.buildNumber": {
"type": "string",
"default": "1",
"description": "Build 号"
},
"dotnetDeploy.macos.format": {
"type": "string",
"default": "app",
"enum": [
"app",
"dmg",
"pkg"
],
"description": "打包格式 (.app/.dmg/.pkg)"
},
"dotnetDeploy.macos.iconPath": {
"type": "string",
"default": "",
"description": "应用图标路径 (.icns 或 .png)"
},
"dotnetDeploy.macos.minimumOSVersion": {
"type": "string",
"default": "10.15",
"description": "最低支持的 macOS 版本"
},
"dotnetDeploy.macos.codeSign.enabled": {
"type": "boolean",
"default": false,
"description": "启用代码签名"
},
"dotnetDeploy.macos.codeSign.identity": {
"type": "string",
"default": "",
"description": "开发者证书 ID"
},
"dotnetDeploy.macos.codeSign.notarize": {
"type": "boolean",
"default": false,
"description": "提交 Apple 公证"
},
"dotnetDeploy.macos.codeSign.appleId": {
"type": "string",
"default": "",
"description": "Apple ID (用于公证)"
},
"dotnetDeploy.macos.codeSign.teamId": {
"type": "string",
"default": "",
"description": "Team ID"
},
"dotnetDeploy.macos.entitlements.appSandbox": {
"type": "boolean",
"default": false,
"description": "启用 App Sandbox"
},
"dotnetDeploy.macos.entitlements.networkClient": {
"type": "boolean",
"default": false,
"description": "允许出站网络连接"
},
"dotnetDeploy.macos.entitlements.networkServer": {
"type": "boolean",
"default": false,
"description": "允许入站网络连接"
},
"dotnetDeploy.macos.entitlements.fileReadWrite": {
"type": "boolean",
"default": false,
"description": "用户选择的文件读写权限"
},
"dotnetDeploy.macos.entitlements.downloadsReadWrite": {
"type": "boolean",
"default": false,
"description": "Downloads 文件夹读写权限"
},
"dotnetDeploy.macos.entitlements.picturesReadWrite": {
"type": "boolean",
"default": false,
"description": "Pictures 文件夹读写权限"
},
"dotnetDeploy.macos.entitlements.musicReadWrite": {
"type": "boolean",
"default": false,
"description": "Music 文件夹读写权限"
},
"dotnetDeploy.macos.entitlements.moviesReadWrite": {
"type": "boolean",
"default": false,
"description": "Movies 文件夹读写权限"
},
"dotnetDeploy.macos.entitlements.hardenedRuntime": {
"type": "boolean",
"default": false,
"description": "启用 Hardened Runtime"
},
"dotnetDeploy.macos.entitlements.allowJit": {
"type": "boolean",
"default": false,
"description": "允许 JIT 编译"
},
"dotnetDeploy.macos.entitlements.allowUnsignedMemory": {
"type": "boolean",
"default": false,
"description": "允许未签名的可执行内存"
},
"dotnetDeploy.macos.entitlements.allowDyldEnv": {
"type": "boolean",
"default": false,
"description": "允许 DYLD 环境变量"
},
"dotnetDeploy.macos.entitlements.disableLibraryValidation": {
"type": "boolean",
"default": false,
"description": "禁用库验证"
},
"dotnetDeploy.macos.entitlements.camera": {
"type": "boolean",
"default": false,
"description": "摄像头访问权限"
},
"dotnetDeploy.macos.entitlements.microphone": {
"type": "boolean",
"default": false,
"description": "麦克风访问权限"
},
"dotnetDeploy.macos.entitlements.location": {
"type": "boolean",
"default": false,
"description": "位置服务权限"
},
"dotnetDeploy.macos.entitlements.calendars": {
"type": "boolean",
"default": false,
"description": "日历访问权限"
},
"dotnetDeploy.macos.entitlements.contacts": {
"type": "boolean",
"default": false,
"description": "通讯录访问权限"
},
"dotnetDeploy.macos.entitlements.photos": {
"type": "boolean",
"default": false,
"description": "照片库访问权限"
}
}
}
},
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"lint": "eslint src --ext ts"
},
"devDependencies": {
"@types/node": "^20.10.0",
"@types/ssh2": "^1.11.0",
"@types/ssh2-sftp-client": "^9.0.0",
"@types/vscode": "^1.85.0",
"typescript": "^5.3.0"
},
"dependencies": {
"@vscode/webview-ui-toolkit": "^1.4.0",
"ssh2": "^1.15.0",
"ssh2-sftp-client": "^10.0.0"
}
}