diff --git a/script/build.ts b/script/build.ts index d1afe24..327f7b9 100644 --- a/script/build.ts +++ b/script/build.ts @@ -153,6 +153,14 @@ const compress = type === 'dist'; console.log(e); } + // 9. 启动服务 + try { + await fs.copy('./script/template/启动服务.exe', './dist/启动服务.exe'); + } catch (e) { + console.log('移动启动服务失败'); + console.log(e); + } + // 9. 压缩 if (compress) { try { diff --git a/script/template/启动服务.exe b/script/template/启动服务.exe new file mode 100644 index 0000000..349d1de Binary files /dev/null and b/script/template/启动服务.exe differ