Skip to content

Commit cffa250

Browse files
committed
improve the stores-build script
1 parent 3e84ba3 commit cffa250

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

script/stores_build.sh

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,18 @@ stores_build() {
88
export INLINE_RUNTIME_CHUNK=false
99
export GENERATE_SOURCEMAP=false
1010

11+
rm -f source_code.zip
12+
rm -f extension.zip
13+
1114
react-scripts build
1215

1316
mkdir -p dist
1417
cp -r build/* dist
15-
cd dist
1618
echo 'zipping the dist'
17-
zip -r extension.zip * -x "*.DS_Store"
18-
cd ..
19-
rm source_code.zip
19+
zip -r extension.zip dist/* -x "*.DS_Store"
20+
2021
echo 'zipping the source code for Firefox'
21-
zip -r source_code.zip 'public/' 'src' 'LICENCE' 'package.json' 'yarn.lock' 'README.md'
22+
zip -r source_code.zip 'public/' 'script/' 'src' 'LICENCE' 'package.json' 'yarn.lock' 'README.md' -x "*.DS_Store"
2223
}
2324

2425
stores_build

0 commit comments

Comments
 (0)