Skip to content

Commit cfafecb

Browse files
committed
Clean dist-firefox directory before copying build files
- build process should remove old dist folders └── apps └── browser ├── .gitignore ├── README.md ├── package.json ├── scripts │ ├── build.mjs │ ├── bump.cjs │ ├── create-firefox-build.ts │ └── create-zip-archives.ts ├── src │ ├── background │ │ ├── clear-chat-init-data.ts │ │ ├── config.ts │ │ ├── keep-alive.ts │ │ ├── main.ts │ │ ├── message-handler.ts │ │ └── websocket.ts │ ├── content-scripts │ │ └── send-prompt-content-script │ │ ├── chatbots │ │ │ ├── ai-studio.ts │ │ │ ├── arena.ts │ │ │ ├── chatgpt.ts │ │ │ ├── claude.ts │ │ │ ├── copilot.ts │ │ │ ├── deepseek.ts │ │ │ ├── doubao.ts │ │ │ ├── gemini.ts │ │ │ ├── github-copilot.ts │ │ │ ├── grok.ts │ │ │ ├── hugging-chat.ts │ │ │ ├── index.ts │ │ │ ├── kimi.ts │ │ │ ├── meta.ts │ │ │ ├── mistral.ts │ │ │ ├── open-webui.ts │ │ │ ├── openrouter.ts │ │ │ ├── qwen.ts │ │ │ ├── together.ts │ │ │ ├── yuanbao.ts │ │ │ └── z-ai.ts │ │ ├── constants │ │ │ ├── apply-response-icon.ts │ │ │ └── dictionary.ts │ │ ├── send-prompt-content-script.ts │ │ ├── types │ │ │ └── chatbot.ts │ │ └── utils │ │ ├── add-apply-response-button.ts │ │ ├── apply-response-styles.ts │ │ ├── report-initialization-error.ts │ │ ├── session-state.ts │ │ └── show-response-ready-notification.ts │ ├── fonts │ │ └── Bangers-Regular.ttf │ ├── icons │ │ ├── icon-128.png │ │ ├── icon-16.png │ │ ├── icon-32.png │ │ └── icon-48.png │ ├── manifest.json │ ├── types │ │ └── messages.ts │ ├── utils │ │ └── is-message.ts │ └── views │ └── popup │ ├── App.tsx │ ├── Popup.module.scss │ ├── Popup.tsx │ ├── index.css │ ├── index.html │ ├── use-browser-profile-name.ts │ └── use-firefox-containers.ts ├── tsconfig.json └── vite.config.ts
1 parent 0fb13f8 commit cfafecb

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

‎apps/browser/scripts/create-firefox-build.ts‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,8 @@ firefox_manifest.optional_permissions = ['cookies'] // Needed by Firefox Contain
3232
delete firefox_manifest.host_permissions
3333

3434
const firefox_dist_dir = path.join(__dirname, '..', 'dist-firefox')
35-
if (!fs.existsSync(firefox_dist_dir)) {
36-
fs.mkdirSync(firefox_dist_dir)
37-
}
35+
fs.rmSync(firefox_dist_dir, { recursive: true, force: true })
36+
fs.mkdirSync(firefox_dist_dir)
3837

3938
const dist_dir = path.join(__dirname, '..', 'dist')
4039
fs.cpSync(dist_dir, firefox_dist_dir, { recursive: true })

0 commit comments

Comments
 (0)