- Flutter
- Build Scripts
- Build
- Testing Chrome Extension
- Testing Firefox Extension
- Zip Files for Submission
Pin2Me is developed in Dart/Flutter.
Install Flutter: https://docs.flutter.dev/get-started/install
Build scripts are written in bash and only work in Linux/MaxOS.
Why?
- Due to difference between web, Chrome extension and Firefox extension.
- Switch
pubspec.yaml
,index.html
,manifest.json
andapi.dart
according to target. - Put compiled target into separate directories
Compiled extension are html/javascript only, no web assembly(removed by build script).
Go into source root(pin2me
):
cd pin2me
To compile Chrome extension:
bash scripts/buildExtChrome.sh
bash scripts/buildExtChromeTest.sh
buildExtChrome.sh
also creates zip file for submission from release target.
To compile Firefox extension:
bash scripts/buildExtMoz.sh
bash scripts/buildExtMozTest.sh
buildExtMoz.sh
also creates zip file for submission from release target.
Target location:
Platform | Mode | Path | Javascript Minified |
---|---|---|---|
Chrome | Release | ~/Downloads/pin2me/ext.chrome |
yes |
Chrome | Profile/Test | ~/Downloads/pin2me/ext.chrome.test |
no |
Firefox | Release | ~/Downloads/pin2me/ext.moz |
yes |
Firefox | Profile/Test | ~/Downloads/pin2me/ext.moz.test |
no |
In Chrome, enable develope mode in Extensions
window, then use Load unpacked
.
PS: First tab will be empty or Firefox default page. Open 2nd tab to activate addon. It is known issue on Firefox for this addon.
Testing release version:
cd ~/Downloads/pin2me/ext.moz
web-ext run
Testing profile/test version:
cd ~/Downloads/pin2me/ext.moz.test
web-ext run
Zip File Source | Zip File Path |
---|---|
~/Downloads/pin2me/ext.chrome |
~/Downloads/pin2me/ext.chrome.zip |
~/Downloads/pin2me/ext.moz |
~/Downloads/pin2me/ext.moz.zip |
Create Chrome extension zip manually:
cd ~/Downloads/pin2me/ext.chrome
zip -r ../ext.chrome.zip *
cd ..
Create Firefox extension zip manually:
cd ~/Downloads/pin2me/ext.moz
zip -r ../ext.moz.zip *
cd ..