版本号
This commit is contained in:
1 parent
6a9dbf9080
commit
7897e77c52
7 files changed
+95
-4
No files matched your search
+3
-1
@@ -4,6 +4,7 @@ import 'print/backend.dart';
|
||||
import 'print/mock_backend.dart';
|
||||
import 'server/http_server.dart';
|
||||
import 'server/print_queue.dart';
|
||||
import 'build_info.g.dart';
|
||||
import 'utils/file_log.dart';
|
||||
|
||||
/// 启动参数:--mock 模拟打印;--port=NNN / --port NNN 指定监听端口(默认 38200-38202 顺延)。
|
||||
@@ -73,10 +74,11 @@ class Agent {
|
||||
backend: backend,
|
||||
mock: options.mock,
|
||||
manifestBackendName: backendName,
|
||||
appVersion: kBuildVersion,
|
||||
);
|
||||
final ports = options.port == null ? const [38200, 38201, 38202] : <int>[options.port!];
|
||||
port = await server.start(candidatePorts: ports);
|
||||
log.write('资安信插件助手已启动 http://127.0.0.1:$port'
|
||||
log.write('资安信插件助手 v$kBuildVersion 已启动 http://127.0.0.1:$port'
|
||||
'(后端=$backendName,mock=${options.mock},agent=desktop-plugin)');
|
||||
return port!;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user