🐛 Ask user for binary name as part of the setup process

This commit is contained in:
trickypr 2022-07-14 11:53:00 +10:00
parent 14912e1f4b
commit 075fa66e9a
2 changed files with 14 additions and 1 deletions

View file

@ -82,7 +82,7 @@ export async function setupProject(): Promise<void> {
const productVersion = await getLatestFF(product)
const { version, name, appId, vendor, ui } = await prompts([
const { version, name, appId, vendor, ui, binaryName } = await prompts([
{
type: 'text',
name: 'version',
@ -95,6 +95,12 @@ export async function setupProject(): Promise<void> {
message: 'Enter a product name',
initial: 'Example browser',
},
{
type: 'text',
name: 'binaryName',
message: 'Enter the name of the binary',
initial: 'example-browser',
},
{
type: 'text',
name: 'vendor',
@ -134,6 +140,7 @@ export async function setupProject(): Promise<void> {
name,
vendor,
appId,
binaryName,
version: { product, version },
buildOptions: {
generateBranding: false,