Prepare internal extension distribution
This commit is contained in:
@@ -10,6 +10,18 @@ npm test
|
||||
npm run build
|
||||
```
|
||||
|
||||
## Release Build
|
||||
|
||||
```bash
|
||||
npm run build:release
|
||||
npm run package:internal
|
||||
```
|
||||
|
||||
- `npm run build` outputs the development bundle to `dist/`
|
||||
- `npm run build:release` outputs the internal distribution bundle to `dist-release/`
|
||||
- `npm run package:internal` creates `release/star-chart-search-enhancer-internal.zip`
|
||||
- The extension ID is fixed to `pkjopdibdnomhogjheclhnknmejccffg`
|
||||
|
||||
## Load The Extension
|
||||
|
||||
1. Run `npm run build`
|
||||
@@ -37,7 +49,7 @@ Replace these before real sign-in testing:
|
||||
- `apiResource`
|
||||
- Any extra scopes beyond `openid`, `profile`, and `offline_access`
|
||||
|
||||
The popup dev panel is controlled by `enableDevAuthPanel`.
|
||||
The popup dev panel is controlled by `enableDevAuthPanel` and is disabled by default.
|
||||
|
||||
## Popup Behavior
|
||||
|
||||
@@ -66,7 +78,7 @@ The popup dev panel is controlled by `enableDevAuthPanel`.
|
||||
6. Click `提交批次`
|
||||
7. Enter a batch name in the browser prompt
|
||||
8. Confirm the toolbar shows `批次提交成功`
|
||||
9. Confirm the mock batch response accepts the payload and reports the submitted `batchId`
|
||||
9. Confirm the mock batch response accepts the payload
|
||||
|
||||
## Market Auth Gate
|
||||
|
||||
@@ -91,7 +103,6 @@ When the market page is opened without a valid auth state, the content script re
|
||||
"creatorName": "王少卿",
|
||||
"resource": "https://talent-search.intelligrow.cn",
|
||||
"batchName": "自动验证批次",
|
||||
"batchId": "p7pdhhtde8kj-<提交当时的 ISO 时间戳>",
|
||||
"createdAt": "<提交当时的 ISO 时间戳>",
|
||||
"authors": [
|
||||
{ "authorId": "7041184989643276324", "authorName": "旖旖小虎🐯" },
|
||||
@@ -116,4 +127,7 @@ When the market page is opened without a valid auth state, the content script re
|
||||
{ "authorId": "7319160797236559882", "authorName": "郑皓文" }
|
||||
]
|
||||
}
|
||||
```
|
||||
```
|
||||
|
||||
Internal distribution steps are documented in
|
||||
`docs/internal-extension-distribution.md`.
|
||||
|
||||
Reference in New Issue
Block a user