-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Manifest V3 + multiple feature requests #46
Closed
Closed
Changes from 12 commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
83b0493
Split builds for firefox and chrome
4f58c91
Fix manifest for both browsers + remove commands
ba0c522
Custom artifact folder for output
0c85cdb
Update readme for changes + readd action
1968e2d
Add support for dark mode (#41)
abe1a83
Add entry to context menu (#35)
ad5cd6e
Add post-save state to insta-update bookmark
0f3a22a
Add star to bage when page bookmarked (#30)
712b62e
Add link to main site (#29)
874b74a
Add option to delete bookmark
ac789e5
Highlighted text saved to notes on creation (#20)
8436a55
Bump package version
03fd599
Changes + comments from self-review
4686d0c
Fix starring behaviour on tab state changes
dcd276a
Uncomment npm isntallm in build
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,36 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Update dependencies | ||
npm install | ||
# npm install | ||
|
||
# Run rollup build | ||
npm run build | ||
|
||
# Lint extension, while excluding dev files | ||
npx web-ext lint --ignore-files .idea dist docs src web-ext-artifacts .gitignore *.sh *.iml *.js *.lock | ||
# Build extension, while excluding dev files | ||
npx web-ext build --overwrite-dest --ignore-files .idea dist docs src web-ext-artifacts .gitignore *.sh *.iml *.js *.lock | ||
## FIREFOX | ||
|
||
# Copy files to artifacts folder | ||
mkdir -p artifacts/firefox | ||
cp -r build icons options popup styles artifacts/firefox | ||
|
||
# Build manifest file for Firefox | ||
jq -s '.[0] * .[1]' manifests/manifest.COMMON.json manifests/manifest.FIREFOX.json > artifacts/firefox/manifest.json | ||
|
||
# Lint extension | ||
npx web-ext lint --source-dir artifacts/firefox | ||
|
||
# Build extension | ||
npx web-ext build --overwrite-dest --source-dir artifacts/firefox --artifacts-dir artifacts/firefox | ||
|
||
## CHROME | ||
|
||
# Copy files to artifacts folder | ||
mkdir -p artifacts/chrome | ||
cp -r build icons options popup styles artifacts/chrome | ||
|
||
# Build manifest file | ||
jq -s '.[0] * .[1]' manifests/manifest.COMMON.json manifests/manifest.CHROME.json > artifacts/chrome/manifest.json | ||
|
||
# Build extension | ||
npx web-ext build --overwrite-dest --source-dir artifacts/chrome --artifacts-dir artifacts/chrome | ||
|
||
echo "✅ Done" |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"background": { | ||
"service_worker": "build/background.js", | ||
"type": "module" | ||
}, | ||
"optional_host_permissions": [ | ||
"http://*/*", | ||
"https://*/*" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,50 +1,44 @@ | ||
{ | ||
"manifest_version": 2, | ||
"name": "linkding extension", | ||
"version": "1.7", | ||
"manifest_version": 3, | ||
"name": "Linkding", | ||
"version": "2.0.0", | ||
"description": "Companion extension for the linkding bookmark service", | ||
"homepage_url": "https://github.com/sissbruecker/linkding-extension/", | ||
|
||
"icons": { | ||
"48": "icons/logo_48x48.png", | ||
"96": "icons/logo_96x96.png", | ||
"128": "icons/logo_128x128.png" | ||
}, | ||
|
||
"background": { | ||
"scripts": ["build/background.js"] | ||
}, | ||
|
||
"omnibox": { | ||
"keyword": "ld" | ||
}, | ||
|
||
"browser_action": { | ||
"action": { | ||
"default_icon": { | ||
"19": "icons/button_19x19.png", | ||
"32": "icons/button_32x32.png", | ||
"38": "icons/button_38x38.png" | ||
}, | ||
"default_title": "Add bookmark (Alt+Shift+L)", | ||
"default_title": "Add bookmark", | ||
"default_popup": "popup/index.html" | ||
}, | ||
|
||
"commands": { | ||
"_execute_browser_action": { | ||
"_execute_action": { | ||
"suggested_key": { | ||
"default": "Alt+Shift+L" | ||
}, | ||
"description": "Open a popup to bookmark current page." | ||
} | ||
}, | ||
|
||
"options_ui": { | ||
"page": "options/index.html" | ||
"page": "options/index.html", | ||
"browser_style": false | ||
}, | ||
|
||
"permissions": [ | ||
"tabs", | ||
"http://*/*", | ||
"https://*/*" | ||
"storage", | ||
"contextMenus", | ||
"notifications", | ||
"scripting", | ||
"activeTab" | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"background": { | ||
"scripts": ["build/background.js"] | ||
}, | ||
"browser_specific_settings": { | ||
"gecko": { | ||
"id": "{6bc19aa2-7d91-4791-b5d4-8d84b5f3cdad}", | ||
"strict_min_version": "109.0" | ||
} | ||
}, | ||
"optional_permissions": [ | ||
"http://*/*", | ||
"https://*/*" | ||
] | ||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not exactly sure what this UUID actually means, but setting a unique one like this does allow the build to pass 🤔