Skip to content

Commit

Permalink
extension: update dev versions in package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
karlicoss committed May 20, 2024
1 parent fe1ae96 commit 4e67d71
Show file tree
Hide file tree
Showing 4 changed files with 5,537 additions and 14,764 deletions.
5 changes: 5 additions & 0 deletions extension/build
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ def main() -> None:
p.add_argument('--watch' , action='store_true')
p.add_argument('--lint' , action='store_true')
p.add_argument('--publish', choices=['listed', 'unlisted'], help="Publish on chrome web store/addons.mozilla.org")
p.add_argument('--v3', action='store_const', const='3', dest='manifest')
p.add_argument('--v2', action='store_const', const='2', dest='manifest')

tg = p.add_mutually_exclusive_group(required=True)
tg.add_argument('--target', type=str, choices=TARGETS)
Expand All @@ -36,6 +38,8 @@ def main() -> None:

assert target is not None

manifest = args.manifest or '2' # FIXME change default to 3 later

base_ext_dir = Path(__file__).absolute().parent / 'dist'
ext_dir = (base_ext_dir / target).resolve() # webext can't into symlinks
# sadly no way to specify zip name in the regex..
Expand All @@ -53,6 +57,7 @@ def main() -> None:
'TARGET' : target,
'RELEASE': 'YES' if args.release else 'NO',
'PUBLISH': 'YES' if args.publish is not None else 'NO',
'MANIFEST': manifest,
'EXT_ID' : IDS[target],
**os.environ,
}
Expand Down
Loading

0 comments on commit 4e67d71

Please sign in to comment.