-
Notifications
You must be signed in to change notification settings - Fork 408
- 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
base: main
Are you sure you want to change the base?
Conversation
…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.
There was a problem hiding this 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", | |||
< |
There was a problem hiding this comment.
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" | ||
= |
There was a problem hiding this comment.
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", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"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
"package": "yarn build && electron-builder build", | ||
"package-mac": "yarn build && electron-builder build --mac", | ||
"package-win": "yarn build && electron-builder build --win" |
There was a problem hiding this comment.
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?
@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.