Skip to content

Commit c056d15

Browse files
committed
update docs
1 parent f02010f commit c056d15

File tree

5 files changed

+10
-5
lines changed

5 files changed

+10
-5
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ dist
105105

106106
# locak env ignore
107107
config/.*.env.js
108+
distribution-src-zip.js
108109

109110
# project ignore
110111
yarn.lock

ci/paths.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ const targetPath = providerEnv.EXT_TARGET || 'chrome';
88
module.exports = {
99
context: path.resolve(__dirname, '../'),
1010
dist: path.resolve(__dirname, '../dist', targetPath),
11+
distzip: path.resolve(__dirname, '../dist-zip'),
1112
src: path.resolve(__dirname, '../src'),
1213
manifest: path.resolve(__dirname, '../src/manifest.json'),
1314
R,

ci/webext-distribution.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,12 @@ if (!signParams.JWT_ID || !signParams.JWT_SECRET) {
2020
);
2121
process.env.$WEB_EXT_API_KEY = signParams.JWT_ID;
2222
process.env.$WEB_EXT_API_SECRET = signParams.JWT_SECRET;
23-
if (!process.env.$WEB_EXT_CHANNEL) {
24-
process.env.$WEB_EXT_CHANNEL = 'unlisted';
2523

26-
console.log(chalk.red(process.env.$WEB_EXT_CHANNEL));
27-
}
24+
process.env.$WEB_EXT_CHANNEL = process.env.DISTRIBUTION_CHANNEL || 'unlisted';
25+
console.log(chalk.red(process.env.$WEB_EXT_CHANNEL));
26+
27+
// process.exit(1)
28+
2829
process.env.$WEB_EXT_TIMEOUT = 20 * 60 * 1000;
2930
//$WEB_EXT_ID
3031
}

ci/zip-src-fox.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#!/usr/bin/env node
22

33
const fs = require('fs');
4+
const fse = require('fs-extra');
45
const path = require('path');
56
const archiver = require('archiver');
67

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"zip-fox": "cross-env node ci/zip-fox.js",
2828
"ext:build": "cross-env TASK_COMMAND=build node ci/webext-distribution.js",
2929
"ext:sign-pre": "cross-env TASK_COMMAND=sign node ci/webext-distribution.js",
30-
"ext:sign-rel": "cross-env TASK_COMMAND=sign $WEB_EXT_CHANNEL=listed node ci/webext-distribution.js",
30+
"ext:sign-rel": "cross-env TASK_COMMAND=sign DISTRIBUTION_CHANNEL=listed node ci/webext-distribution.js",
3131
"analyz": "webpack-bundle-analyzer dist/stats.json --port 8899",
3232
"docs": "docsify serve docs"
3333
},
@@ -117,6 +117,7 @@
117117
"sass": "^1.27.0",
118118
"sass-loader": "9.0.3",
119119
"semver-parser": "^3.1.0",
120+
"shelljs": "^0.8.4",
120121
"svg-sprite-loader": "^5.1.1",
121122
"url-loader": "^4.1.1",
122123
"vue-loader": "^15.9.3",

0 commit comments

Comments
 (0)