adding build script and change package name back to ghost-wallet
Signed-off-by: Uncle Fatso <uncle.fatso@ghostchain.io>
This commit is contained in:
parent
078837fc64
commit
838f01baa5
4
.gitignore
vendored
4
.gitignore
vendored
@ -12,6 +12,7 @@
|
|||||||
# production
|
# production
|
||||||
/build
|
/build
|
||||||
/dist
|
/dist
|
||||||
|
/releases
|
||||||
|
|
||||||
# misc
|
# misc
|
||||||
.DS_Store
|
.DS_Store
|
||||||
@ -26,6 +27,3 @@ yarn-error.log*
|
|||||||
/public/manifest.json
|
/public/manifest.json
|
||||||
test-results
|
test-results
|
||||||
playwright-report
|
playwright-report
|
||||||
|
|
||||||
# NOTE: removed temporarily
|
|
||||||
/tests
|
|
||||||
|
File diff suppressed because one or more lines are too long
10
builder.sh
Normal file
10
builder.sh
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
#!/usr/bin/sh
|
||||||
|
|
||||||
|
NAME=$(grep "name" package.json | grep -oP '(?<=: ")[^"]+')
|
||||||
|
VERSION=$(grep "version" package.json | grep -oP '(?<=: ")[^"]+')
|
||||||
|
BROWSERS=("chrome" "firefox")
|
||||||
|
|
||||||
|
for BROWSER in "${BROWSERS[@]}"; do
|
||||||
|
pnpm build:$BROWSER
|
||||||
|
python -m zipfile -c releases/$NAME-$BROWSER@v$VERSION /dist
|
||||||
|
done
|
@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"name": "ghost-extension-wallet",
|
"name": "ghost-wallet",
|
||||||
"version": "0.0.27",
|
"version": "0.0.27",
|
||||||
"description": "Browser extension to manage ghost blockchain light clients.",
|
"description": "Browser extension to manage ghost blockchain light clients.",
|
||||||
"main": "dist/src/index.js",
|
"main": "dist/src/index.js",
|
||||||
|
Loading…
Reference in New Issue
Block a user