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
Go into source root(pin2me
):
cd pin2me
Then:
bash scripts/switchWeb.sh
flutter clean
flutter build web
Target location:
<source root>/build/web
PS: Do not use buildWebDemo.sh
and buildWebProd.sh
as they are specific for author's environment/sites only.
Web page testing can be done in VSCode or flutter directly.
flutter run