-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.sh
More file actions
31 lines (27 loc) · 738 Bytes
/
package.sh
File metadata and controls
31 lines (27 loc) · 738 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/bash --verbose
# This will copy all of the files on the development computer
# to a tmp directory. Chrome will not install files that
# start with an underscore "_". Only the files needed are
# copied to the destination directory for chrome to import.
DEST=tmp
# make verbose
set -x
echo "*** Copying only files needed for chrome extension to $DEST"
rm -fr $DEST
mkdir $DEST
mkdir $DEST/css
mkdir $DEST/images
mkdir $DEST/js
mkdir $DEST/html
cp LICENSE $DEST
cp README.md $DEST
cp manifest.json $DEST
cp css/main.css $DEST/css
cp images/* $DEST/images
cp js/* $DEST/js
cp html/* $DEST/html
ls -lF $DEST
set +x
date
echo "you can now (in developer mode) add the manifest.json to install as"
echo "an extension in chrome."