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:
Uncle Fatso 2025-07-22 15:02:37 +03:00
parent 078837fc64
commit 838f01baa5
Signed by: f4ts0
GPG Key ID: 565F4F2860226EBB
4 changed files with 12 additions and 54 deletions

4
.gitignore vendored
View File

@ -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
View 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

View File

@ -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",