diff --git a/docs/content/getting-started/overview.md b/docs/content/getting-started/overview.md index 9a76b6b..ffac529 100644 --- a/docs/content/getting-started/overview.md +++ b/docs/content/getting-started/overview.md @@ -62,6 +62,12 @@ Next it will ask for the name of your browser. Avoid references to Firefox or ot ? Enter a product name › Gluon Example Browser ``` +The binary name is the name that your program will be run from. We recommend that you add `-browser` to the end to [avoid conflicts with common utilities](https://github.com/dothq/browser/issues/604). + +``` +? Enter the name of the binary › gluon-example-browser +``` + Vendor is the company (or solo developer) who is creating the browser. ``` diff --git a/src/commands/setupProject.ts b/src/commands/setupProject.ts index e4921d9..3620054 100644 --- a/src/commands/setupProject.ts +++ b/src/commands/setupProject.ts @@ -82,7 +82,7 @@ export async function setupProject(): Promise { 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 { 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 { name, vendor, appId, + binaryName, version: { product, version }, buildOptions: { generateBranding: false,