|
|
@@ -33,8 +33,10 @@ pnpm add -g miniprogram-ci
|
|
|
|
|
|
使用小程序管理员身份访问"微信公众平台 > 开发 > 开发设置",下载代码上传密钥。
|
|
|
|
|
|
-**企业小程序密钥文件**: `keys/private.wx1e791ed2e0229eb8.key`
|
|
|
-**人才小程序密钥文件**: `keys/private.wx3c47dbce1ea7d43c.key`
|
|
|
+**企业小程序密钥文件**: `mini/certs/private.upload.key`
|
|
|
+**人才小程序密钥文件**: `mini-talent/certs/private.upload.key`
|
|
|
+
|
|
|
+> 密钥文件已存在于各自小程序目录的 `certs/` 目录下。
|
|
|
|
|
|
### 3. 配置 IP 白名单
|
|
|
|
|
|
@@ -85,7 +87,7 @@ const MINI_CONFIGS = {
|
|
|
name: '企业小程序',
|
|
|
appid: 'wx1e791ed2e0229eb8',
|
|
|
projectPath: path.resolve(__dirname, '../mini'),
|
|
|
- privateKeyPath: path.resolve(__dirname, '../keys/private.wx1e791ed2e0229eb8.key'),
|
|
|
+ privateKeyPath: path.resolve(__dirname, '../mini/certs/private.upload.key'),
|
|
|
buildCmd: 'cd mini && pnpm build:weapp',
|
|
|
distPath: 'dist/weapp',
|
|
|
},
|
|
|
@@ -93,7 +95,7 @@ const MINI_CONFIGS = {
|
|
|
name: '人才小程序',
|
|
|
appid: 'wx3c47dbce1ea7d43c',
|
|
|
projectPath: path.resolve(__dirname, '../mini-talent'),
|
|
|
- privateKeyPath: path.resolve(__dirname, '../keys/private.wx3c47dbce1ea7d43c.key'),
|
|
|
+ privateKeyPath: path.resolve(__dirname, '../mini-talent/certs/private.upload.key'),
|
|
|
buildCmd: 'cd mini-talent && pnpm build:weapp',
|
|
|
distPath: 'dist/weapp',
|
|
|
},
|