Răsfoiți Sursa

更新部署脚本,采用覆盖式部署;更新官网增加og:信息

zxlie 4 luni în urmă
părinte
comite
f19d3a7c71
2 a modificat fișierele cu 17 adăugiri și 10 ștergeri
  1. 5 7
      release.sh
  2. 12 3
      website/index.html

+ 5 - 7
release.sh

@@ -30,22 +30,19 @@ if [ -d "$TARGET_DIR" ]; then
     
     echo "✅ 备份已创建: $BACKUP_PATH"
     
-    # 删除现有目录
-    echo "🗑️  删除现有目录..."
-    rm -rf "$TARGET_DIR"
 else
     echo "ℹ️  目标目录不存在,跳过备份步骤"
+    # 2. 创建目标目录
+    echo "📁 创建目标目录..."
+    mkdir -p "$TARGET_DIR"
 fi
 
-# 2. 检查 website 目录是否存在
+# 3. 检查 website 目录是否存在
 if [ ! -d "$SOURCE_DIR" ]; then
     echo "❌ 错误: website 目录不存在!"
     exit 1
 fi
 
-# 3. 创建目标目录
-echo "📁 创建目标目录..."
-mkdir -p "$TARGET_DIR"
 
 # 4. 拷贝 website 下所有内容到目标目录
 echo "📤 拷贝 website 下所有内容到目标目录..."
@@ -58,3 +55,4 @@ echo "📍 部署位置: $TARGET_DIR"
 echo ""
 echo "📋 部署文件列表:"
 ls -la "$TARGET_DIR" 
+

+ 12 - 3
website/index.html

@@ -4,7 +4,14 @@
     <meta charset="UTF-8">
     <meta name="viewport" content="width=device-width, initial-scale=1.0">
     <title>FeHelper - 职场人的超级助手</title>
-    <meta name="description" content="FeHelper是一个功能强大的浏览器扩展,集成了丰富的实用工具,适合所有职场人使用,支持Chrome和Edge浏览器。">
+    <meta name="description" content="FeHelper是一个功能强大的浏览器扩展,现已全新升级!集成30+实用工具,支持Chrome/Edge/Firefox,开源免费,前端/数据/办公必备!">
+    <meta property="og:title" content="FeHelper - 职场人的超级助手" />
+    <meta property="og:description" content="全新升级!30+实用工具,支持Chrome/Edge/Firefox,开源免费,前端/数据/办公必备!" />
+    <meta property="og:image" content="https://fehelper.com/static/img/fe-128.png" />
+    <meta property="og:url" content="https://fehelper.com/" />
+    <meta itemprop="name" content="FeHelper - 职场人的超级助手">
+    <meta itemprop="description" content="全新升级!30+实用工具,支持Chrome/Edge/Firefox,开源免费,前端/数据/办公必备!">
+    <meta itemprop="image" content="https://fehelper.com/static/img/fe-128.png">
     
     <!-- Favicon -->
     <link rel="icon" type="image/x-icon" href="static/img/favicon.ico">
@@ -25,6 +32,7 @@
           s.parentNode.insertBefore(hm, s);
         })();
     </script>
+
 </head>
 <body>
     <!-- Navigation -->
@@ -657,13 +665,13 @@
               title: 'FeHelper - 职场人的超级助手',
               desc: '全新升级!30+实用工具,支持Chrome/Edge/Firefox,开源免费,前端/数据/办公必备!',
               link: url,
-              imgUrl: 'https://fehelper.baidufe.com/static/img/fe-128.png'
+              imgUrl: 'https://fehelper.com/static/img/fe-128.png'
             });
             // 分享到朋友圈
             wx.updateTimelineShareData({
               title: 'FeHelper - 职场人的超级助手:全新升级!30+实用工具,开源免费,前端/数据/办公必备!',
               link: url,
-              imgUrl: 'https://fehelper.baidufe.com/static/img/fe-128.png'
+              imgUrl: 'https://fehelper.com/static/img/fe-128.png'
             });
           });
         });
@@ -676,3 +684,4 @@
 
 
 
+