diff --git a/.github/workflows/multi-platform-build.yml b/.github/workflows/multi-platform-build.yml
index b12bafe..2826352 100644
--- a/.github/workflows/multi-platform-build.yml
+++ b/.github/workflows/multi-platform-build.yml
@@ -41,15 +41,6 @@ jobs:
pip install -r requirements.txt
pip install pyinstaller
- - name: 创建logo文件
- run: |
- if [ "${{ matrix.os }}" == "windows-latest" ]; then
- cp logo.png logo.ico || true
- elif [ "${{ matrix.os }}" == "macos-latest" ]; then
- cp logo.png logo.icns || true
- fi
- shell: bash
-
- name: 创建虚拟环境 (Windows)
if: matrix.os == 'windows-latest'
run: |
diff --git a/README.md b/README.md
index 1eee29d..a0144a8 100644
--- a/README.md
+++ b/README.md
@@ -1,3 +1,7 @@
+
+
+
+
# HistoryHub
个人历史记录中心。获取 B 站观看历史,通过 Chrome 扩展同步网页访问记录,在本地或自托管服务中保存、搜索和查看。
diff --git a/app.spec b/app.spec
index f3b57c0..b1f5330 100644
--- a/app.spec
+++ b/app.spec
@@ -1,5 +1,7 @@
# -*- mode: python ; coding: utf-8 -*-
+import sys
+
a = Analysis(
['app_launcher.py'],
pathex=[],
@@ -34,6 +36,7 @@ exe = EXE(
[],
exclude_binaries=True,
name='HistoryHubBackend',
+ icon='logo.ico' if sys.platform == 'win32' else None,
debug=False,
bootloader_ignore_signals=False,
strip=False,
diff --git a/build.py b/build.py
index 7c13044..9003225 100644
--- a/build.py
+++ b/build.py
@@ -119,6 +119,8 @@ def build(build_type):
'--paths', venv_site_packages,
'app_launcher.py'
]
+ if os.name == 'nt':
+ makespec_cmd.insert(-1, '--icon=logo.ico')
print(f"\n运行命令: {' '.join(makespec_cmd)}")
result = subprocess.run(makespec_cmd, capture_output=True, text=True)
diff --git a/extension/icons/128.png b/extension/icons/128.png
new file mode 100644
index 0000000..0303c2f
Binary files /dev/null and b/extension/icons/128.png differ
diff --git a/extension/icons/16.png b/extension/icons/16.png
new file mode 100644
index 0000000..e56fb13
Binary files /dev/null and b/extension/icons/16.png differ
diff --git a/extension/icons/32.png b/extension/icons/32.png
new file mode 100644
index 0000000..900bf2e
Binary files /dev/null and b/extension/icons/32.png differ
diff --git a/extension/icons/48.png b/extension/icons/48.png
new file mode 100644
index 0000000..a3bca24
Binary files /dev/null and b/extension/icons/48.png differ
diff --git a/extension/manifest.json b/extension/manifest.json
index ba7655f..9b48ec7 100644
--- a/extension/manifest.json
+++ b/extension/manifest.json
@@ -3,9 +3,23 @@
"name": "HistoryHub",
"version": "1.0.0",
"description": "将 Chrome 当前保留的浏览历史同步到自己的 HistoryHub 后端。",
+ "icons": {
+ "16": "icons/16.png",
+ "32": "icons/32.png",
+ "48": "icons/48.png",
+ "128": "icons/128.png"
+ },
"permissions": ["history", "storage", "alarms"],
"optional_host_permissions": ["http://*/*", "https://*/*"],
"background": { "service_worker": "background.js" },
"options_page": "options.html",
- "action": { "default_title": "HistoryHub 同步设置" }
+ "action": {
+ "default_title": "HistoryHub 同步设置",
+ "default_icon": {
+ "16": "icons/16.png",
+ "32": "icons/32.png",
+ "48": "icons/48.png",
+ "128": "icons/128.png"
+ }
+ }
}
diff --git a/extension/options.html b/extension/options.html
index 1e32c9a..c08ec9f 100644
--- a/extension/options.html
+++ b/extension/options.html
@@ -4,11 +4,12 @@
HistoryHub 同步设置
+
- HistoryHub
+
HistoryHub
将 Chrome 浏览历史同步到自己的后端。首次开启会导入浏览器当前仍保留的 HTTP / HTTPS 访问,之后自动同步新增访问。