Skip to content

BillionMail gives you open-source MailServer, NewsLetter, Email Marketing — fully self-hosted, dev-friendly, and free from monthly fees. Join the discord: https://discord.gg/asfXzBUhZr

build: Build frontend dist

zdm67b275b79a6f
diff --git a/core/frontend/git-pull.js b/core/frontend/git-pull.js
index 3d1a5d12..95bcc5b3 100644
--- a/core/frontend/git-pull.js
+++ b/core/frontend/git-pull.js
@@ -1,16 +1,18 @@
-import { execSync } from 'child_process';
+import { execSync } from 'child_process'
+import chalk from 'chalk'
+import ora from 'ora'
async function getPull() {
- try {
- // 在当前目录执行git pull命令,并同步输出结果
- const output = execSync('git pull', { stdio: 'inherit', cwd: process.cwd() });
- console.log('git pull 执行成功');
- return true
- } catch (error) {
- console.error('git pull 执行失败:', error.message);
- process.exit(1);
- return false
- }
+ try {
+ // 在当前目录执行git pull命令,并同步输出结果
+ const spinner = ora(chalk.cyan('正在拉取git...')).start()
+ execSync('git pull', { stdio: 'inherit', cwd: process.cwd() })
+ spinner.succeed(chalk.green('git pull 执行成功'))
+ return true
+ } catch (error) {
+ console.error('git pull 执行失败:', error.message)
+ process.exit(1)
+ }
}
-getPull()
\ No newline at end of file
+getPull()