mirror of
https://github.com/DIYgod/RSSHub-Radar.git
synced 2026-08-29 02:09:44 +08:00
ec2f091235
* feat: migrate extension framework to wxt - Replace Plasmo entrypoints, messaging, and storage usage with WXT-compatible implementations - Update workflows, build scripts, and locale paths for WXT outputs - Switch store submission to wxt submit with optional dry-run input * fix(ci): fallback to vars for submit credentials - Resolve missing required config in submit workflow when values are stored in GitHub Variables instead of Secrets - Keep existing secrets first and add vars fallback for Chrome, Firefox, and Edge credentials
35 lines
768 B
TypeScript
35 lines
768 B
TypeScript
import { defineConfig } from "wxt"
|
|
|
|
const iconMap = {
|
|
16: "/icon.png",
|
|
32: "/icon.png",
|
|
48: "/icon.png",
|
|
64: "/icon.png",
|
|
128: "/icon.png",
|
|
}
|
|
|
|
export default defineConfig({
|
|
srcDir: "src",
|
|
modules: ["@wxt-dev/module-react"],
|
|
manifest: ({ browser }) => ({
|
|
name: "RSSHub Radar",
|
|
description: "__MSG_extensionDescription__",
|
|
default_locale: "en",
|
|
permissions: ["tabs", "offscreen", "storage", "alarms"],
|
|
host_permissions: ["https://*/*"],
|
|
optional_permissions: ["notifications"],
|
|
icons: iconMap,
|
|
action: {
|
|
default_icon: iconMap,
|
|
},
|
|
browser_specific_settings:
|
|
browser === "firefox"
|
|
? {
|
|
gecko: {
|
|
id: "i@diygod.me",
|
|
},
|
|
}
|
|
: undefined,
|
|
}),
|
|
})
|