Commit 51f507f4 by tanghuan

同步解压文件

1 parent 0c242392
......@@ -13,7 +13,7 @@ class LocalServerService {
// 启动本地HTTP服务器
Future<HttpServer> startLocalServer() async {
// 测试情况下, 每次启动服务,先解压dist文件
_extractDist();
await _extractDist();
HttpServer server = await HttpServer.bind(InternetAddress.loopbackIPv4, Constant.localServerPort);
print('本地服务器启动在端口: ${server.port}');
......@@ -168,6 +168,6 @@ class LocalServerService {
// }
var zipFilePath = "assets/dist.zip";
ZipUtil.extractZipFile(zipFilePath, outputDirectory);
await ZipUtil.extractZipFile(zipFilePath, outputDirectory);
}
}
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!