Skip to content

Commit c45ba73

Browse files
committed
Add a run-chromium script.
Builds and runs the extension in a fresh Chromium profile.
1 parent a930329 commit c45ba73

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

run-chromium.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/bin/bash -ex
2+
#
3+
# Build the extension and run a chromium extension with it installed.
4+
#
5+
cd $(dirname $0)
6+
source makecrx.sh
7+
PROFILE_DIRECTORY="$(mktemp -d)"
8+
trap 'rm -r "$PROFILE_DIRECTORY"' EXIT
9+
chromium-browser \
10+
--user-data-dir="$PROFILE_DIRECTORY" \
11+
--load-extension=pkg/crx/ "$@"

0 commit comments

Comments
 (0)