@@ -8,6 +8,11 @@ const os = require('os');
8
8
*/
9
9
const ROOT = path . join ( __dirname , '..' ) ;
10
10
11
+ /**
12
+ * The tmp folder location.
13
+ */
14
+ const TMP_DIR = path . join ( ROOT , 'tmp' ) ;
15
+
11
16
/**
12
17
* The mongosh package.
13
18
*/
@@ -44,7 +49,7 @@ const EXECUTABLE_PATH = path.join(OUTPUT_DIR, process.platform === 'win32' ? 'mo
44
49
* We use the name mongocryptd-mongosh to avoid conflicts with users
45
50
* potentially installing the 'proper' mongocryptd package.
46
51
*/
47
- const MONGOCRYPTD_PATH = path . resolve ( __dirname , '..' , 'tmp' , 'mongocryptd-mongosh' + ( process . platform === 'win32' ? '.exe' : '' ) ) ;
52
+ const MONGOCRYPTD_PATH = path . resolve ( TMP_DIR , 'mongocryptd-mongosh' + ( process . platform === 'win32' ? '.exe' : '' ) ) ;
48
53
49
54
/**
50
55
* Build info JSON data file.
@@ -66,6 +71,11 @@ const REVISION = process.env.GITHUB_COMMIT ?? process.env.REVISION;
66
71
*/
67
72
const COPYRIGHT = `${ new Date ( ) . getYear ( ) + 1900 } MongoDB, Inc.` ;
68
73
74
+ /**
75
+ * The manual page file name
76
+ */
77
+ const MANPAGE_NAME = 'mongosh.1.gz'
78
+
69
79
/**
70
80
* Export the configuration for the build.
71
81
*/
@@ -141,6 +151,10 @@ module.exports = {
141
151
packagedFilePath : 'THIRD_PARTY_NOTICES'
142
152
}
143
153
] ,
154
+ manpage : {
155
+ sourceFilePath : path . resolve ( TMP_DIR , 'manpage' , MANPAGE_NAME ) ,
156
+ packagedFilePath : MANPAGE_NAME ,
157
+ } ,
144
158
metadata : {
145
159
name : 'mongosh' ,
146
160
rpmName : 'mongodb-mongosh' ,
@@ -159,5 +173,10 @@ module.exports = {
159
173
debTemplateDir : path . resolve ( __dirname , '..' , 'packaging' , 'deb-template' ) ,
160
174
rpmTemplateDir : path . resolve ( __dirname , '..' , 'packaging' , 'rpm-template' ) ,
161
175
msiTemplateDir : path . resolve ( __dirname , '..' , 'packaging' , 'msi-template' )
162
- }
176
+ } ,
177
+ manpage : {
178
+ sourceUrl : 'https://docs.mongodb.com/mongodb-shell/manpages.tar.gz' ,
179
+ downloadPath : path . resolve ( TMP_DIR , 'manpage' ) ,
180
+ fileName : MANPAGE_NAME ,
181
+ } ,
163
182
} ;
0 commit comments