diff --git a/scripts/_utils.sh b/scripts/_utils.sh index 4c87982..6deafd9 100755 --- a/scripts/_utils.sh +++ b/scripts/_utils.sh @@ -18,6 +18,7 @@ NOTION_EMBEDDED_NAME="embedded_enhancer" NOTION_REPACKAGED_REVISION="${NOTION_REPACKAGED_REVISION:-1}" NOTION_REPACKAGED_HOMEPAGE="https://github.com/jamezrin/notion-repackaged" NOTION_REPACKAGED_REPO=${NOTION_REPACKAGED_REPO:-${NOTION_REPACKAGED_HOMEPAGE}} +NOTION_REPACKAGED_AUTHOR="Notion Repackaged" function log() { caller=`basename "$0"` diff --git a/scripts/extract-src.sh b/scripts/extract-src.sh index 8614be4..9fac0ed 100755 --- a/scripts/extract-src.sh +++ b/scripts/extract-src.sh @@ -43,10 +43,12 @@ sed -i 's|process.platform === "win32"|process.platform !== "darwin"|g' main/mai PATCHED_PACKAGE_JSON=$(jq \ --arg homepage "${NOTION_REPACKAGED_HOMEPAGE}" \ --arg repo "${NOTION_REPACKAGED_REPO}" \ + --arg author "${NOTION_REPACKAGED_AUTHOR}" \ '.dependencies.cld="2.7.0" | .name="notion-app" | .homepage=$homepage | - .repository=$repo' package.json + .repository=$repo | + .author=$author' package.json ) echo "${PATCHED_PACKAGE_JSON}" > package.json