Skip to content
This repository has been archived by the owner on Aug 16, 2023. It is now read-only.

Commit

Permalink
build: copy author name from package.json to manifest on build [no ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
wdzeng committed Jul 23, 2023
1 parent 9feb031 commit f1366c1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion build/manifest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,7 @@ else
version="\"$VERSION\""
fi

author=$(jq '.author.name' package.json)

jq ".version = $version" "$SRC_MANIFEST" > ./dist/manifest.json

jq ".version = $version | .author = $author" "$SRC_MANIFEST" > ./dist/manifest.json
2 changes: 1 addition & 1 deletion src/manifest-chrome.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"name": "__MSG_extName__",
"description": "__MSG_description__",
"version": "__VERSION__",
"author": "Hyperbola",
"author": "__AUHTOR__",
"default_locale": "en",
"permissions": [
"storage"
Expand Down
2 changes: 1 addition & 1 deletion src/manifest-firefox.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"name": "__MSG_extName__",
"description": "__MSG_description__",
"version": "__VERSION__",
"author": "Hyperbola",
"author": "__AUTHOR__",
"default_locale": "en",
"permissions": [
"storage"
Expand Down

0 comments on commit f1366c1

Please sign in to comment.