Build script updated to allow specifying directory with default plugins
Summary: This change allows passing a directory containing plugin packages to include them into Flipper distributive. This is used by release command on Sandcastle (see D28626715). Reviewed By: passy Differential Revision: D28628425 fbshipit-source-id: 9c5d7527721f99b43991bace0b5e2f3a4ede0d13
This commit is contained in:
committed by
Facebook GitHub Bot
parent
313baafded
commit
8d508c8634
@@ -88,6 +88,11 @@ const argv = yargs
|
||||
'Enables rebuilding of default plugins on Flipper build. Only make sense in conjunction with "--no-bundled-plugins". Enabled by default, but if disabled using "--no-plugin-rebuild", then plugins are just released as is without rebuilding. This can save some time if you know plugin bundles are already up-to-date.',
|
||||
type: 'boolean',
|
||||
},
|
||||
'default-plugins-dir': {
|
||||
describe:
|
||||
'Directory with prepared list of default plugins which will be included into the Flipper distribution as "defaultPlugins" dir',
|
||||
type: 'string',
|
||||
},
|
||||
})
|
||||
.help()
|
||||
.strict()
|
||||
@@ -124,6 +129,10 @@ if (argv['rebuild-plugins'] === false) {
|
||||
delete process.env.FLIPPER_NO_REBUILD_PLUGINS;
|
||||
}
|
||||
|
||||
if (argv['default-plugins-dir']) {
|
||||
process.env.FLIPPER_DEFAULT_PLUGINS_DIR = argv['default-plugins-dir'];
|
||||
}
|
||||
|
||||
async function generateManifest(versionNumber: string) {
|
||||
await fs.writeFile(
|
||||
path.join(distDir, 'manifest.json'),
|
||||
|
||||
Reference in New Issue
Block a user