Files
DIYgod ec2f091235 feat: migrate extension from Plasmo to WXT (#1172)
* 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
2026-02-11 15:33:09 +08:00

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,
}),
})