Skip to content

- Added npm and yarn package commands to create distributables (#22) #85

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Vijay-2005
Copy link

@hemaljoshi's PR adds packaging commands for creating distributable versions of the application and improves documentation:

->Added Package Build Commands
->Added package-mac command to build macOS DMG files ->Added package-win command to build Windows installers ->Added package command for current platform
->Documentation Updates
->Added a dedicated "Building Distributable Packages" section in README

->Testing Performed
Verified package commands work correctly on macOS
Verified package commands work correctly on Windows Confirmed documentation accurately reflects the build process

These changes make it easier for users to create distributable versions of the application without having to manually run electron-builder commands.

hemaljoshi and others added 2 commits March 29, 2025 12:58
…hopter-pilot#22)

 @hemaljoshi's PR adds packaging commands for creating distributable versions of the application and improves documentation:

->Added Package Build Commands
->Added package-mac command to build macOS DMG files
->Added package-win command to build Windows installers
->Added package command for current platform
->Documentation Updates
->Added a dedicated "Building Distributable Packages" section in README

->Testing Performed
Verified package commands work correctly on macOS
Verified package commands work correctly on Windows
Confirmed documentation accurately reflects the build process

These changes make it easier for users to create distributable versions of the application without having to manually run electron-builder commands.
Copy link
Collaborator

@bhaumikmaan bhaumikmaan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left a review because the PR was ready.
I don't see a point in most changes which makes me think it is a draft PR. Please toggle if so

@@ -8,11 +8,14 @@
"test": "echo \"No tests defined. Please contribute if you like\" && exit 0",
"lint": "npx eslint .",
"start": "cross-env NODE_ENV=development concurrently \"tsc -p tsconfig.electron.json\" \"vite\" \"wait-on -t 30000 http://localhost:54321 && electron ./dist-electron/main.js\"",
"build": "cross-env NODE_ENV=production npm run clean && vite build && tsc -p tsconfig.electron.json",
<
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo? Not need

"package": "yarn build && electron-builder build",
"package-mac": "yarn build && electron-builder build --mac",
"package-win": "yarn build && electron-builder build --win"
=
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

??

@@ -8,11 +8,14 @@
"test": "echo \"No tests defined. Please contribute if you like\" && exit 0",
"lint": "npx eslint .",
"start": "cross-env NODE_ENV=development concurrently \"tsc -p tsconfig.electron.json\" \"vite\" \"wait-on -t 30000 http://localhost:54321 && electron ./dist-electron/main.js\"",
"build": "cross-env NODE_ENV=production npm run clean && vite build && tsc -p tsconfig.electron.json",
<
"build": "cross-env NODE_ENV=production rimraf dist dist-electron && vite build && tsc -p tsconfig.electron.json",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"build": "cross-env NODE_ENV=production rimraf dist dist-electron && vite build && tsc -p tsconfig.electron.json",
"build": "cross-env NODE_ENV=production npm run clean && vite build && tsc -p tsconfig.electron.json",

npm run clean already does what you defined again. Hence change not needed

Comment on lines +14 to +16
"package": "yarn build && electron-builder build",
"package-mac": "yarn build && electron-builder build --mac",
"package-win": "yarn build && electron-builder build --win"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Essentially changed npm with yarn. What's the thought here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants