Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,9 @@ out
.nuxt
dist

# Packaged extension builds (published via GitHub Releases)
opendia-extension/releases/

# Gatsby files
.cache/
# Comment in the public line in if your project uses Gatsby and not Next.js
Expand Down
14 changes: 11 additions & 3 deletions build-dxt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,17 @@ cd dist/opendia-dxt
npm install --production --silent
cd ../..

# Copy browser extension
# Build and copy browser extension. The install instructions below point at
# extension/dist/{chrome,firefox}, so those have to exist in the bundle.
echo "🌐 Building browser extension..."
cd opendia-extension
npm install --silent
npm run build --silent
cd ..

echo "🌐 Copying browser extension..."
cp -r opendia-extension dist/opendia-dxt/extension
rm -rf dist/opendia-dxt/extension/node_modules

# Copy logo/icon files for DXT - try multiple sources
echo "🎨 Copying logo files..."
Expand Down Expand Up @@ -290,15 +298,15 @@ Download the latest extension from: https://github.com/aeonfun/opendia/releases

2. **Install Extension**
- Click "Load unpacked"
- Select the `extension/` folder from this DXT package
- Select the `extension/dist/chrome/` folder from this DXT package
- Extension should appear in your extensions list with OpenDia icon

#### For Firefox

1. **Load Temporary Add-on**
- Go to `about:debugging#/runtime/this-firefox`
- Click "Load Temporary Add-on..."
- Select the `manifest-firefox.json` file from the `extension/` folder
- Select the `manifest.json` file from the `extension/dist/firefox/` folder

> **Firefox Note**: Extensions are loaded as temporary add-ons and will be removed when Firefox restarts. For permanent installation, use the signed extension from GitHub releases.

Expand Down
9 changes: 0 additions & 9 deletions opendia-extension/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,6 @@ async function buildForBrowser(browser) {
path.join(buildDir, 'src/polyfill/browser-polyfill.min.js')
);

// Browser-specific post-processing
if (browser === 'chrome') {
console.log('📦 Chrome MV3: Service worker mode enabled');
// No additional processing needed for Chrome
} else if (browser === 'firefox') {
console.log('🦊 Firefox MV2: Background page mode enabled');
// No additional processing needed for Firefox
}

console.log(`✅ ${browser} extension built successfully in ${buildDir}`);
}

Expand Down
2 changes: 0 additions & 2 deletions opendia-extension/manifest-chrome.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@
"activeTab",
"storage",
"scripting",
"webNavigation",
"notifications",
"bookmarks",
"history"
],
Expand Down
4 changes: 0 additions & 4 deletions opendia-extension/manifest-firefox.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,8 @@
"tabs",
"activeTab",
"storage",
"webNavigation",
"notifications",
"bookmarks",
"history",
"webRequest",
"webRequestBlocking",
"<all_urls>"
],
"background": {
Expand Down
43 changes: 0 additions & 43 deletions opendia-extension/manifest.json

This file was deleted.

Binary file removed opendia-extension/releases/opendia-chrome-1.0.6.zip
Binary file not shown.
Binary file removed opendia-extension/releases/opendia-firefox-1.0.6.zip
Binary file not shown.
Loading