Skip to content
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

"npm run dist" issue #8

Open
archneon opened this issue Mar 5, 2025 · 1 comment
Open

"npm run dist" issue #8

archneon opened this issue Mar 5, 2025 · 1 comment

Comments

@archneon
Copy link

archneon commented Mar 5, 2025

Hi there,

i have installed pastemax on my ubuntu 22.04, but there is a problem starting it. Any clues?

1.
npm run build-electron

[email protected] build-electron
node build.js

📦 Building React app with Vite...

[email protected] build
vite build

The CJS build of Vite's Node API is deprecated. See https://vite.dev/guide/troubleshooting.html#vite-cjs-node-api-deprecated for more details.
vite v5.4.14 building for production...
✓ 1603 modules transformed.
dist/index.html 0.60 kB │ gzip: 0.38 kB
dist/assets/index-CTDW0e2B.css 13.34 kB │ gzip: 2.82 kB
dist/assets/index-BTBs91FB.js 165.73 kB │ gzip: 52.87 kB │ map: 435.98 kB
✓ built in 1.30s
✅ React build completed successfully!
🔄 Updated asset paths in index.html for Electron compatibility
🚀 Build process completed! The app is ready to run with Electron.
📦 Packaging application...

[email protected] package
vite build && electron-builder --publish=never

The CJS build of Vite's Node API is deprecated. See https://vite.dev/guide/troubleshooting.html#vite-cjs-node-api-deprecated for more details.
vite v5.4.14 building for production...
✓ 1603 modules transformed.
dist/index.html 0.60 kB │ gzip: 0.38 kB
dist/assets/index-CTDW0e2B.css 13.34 kB │ gzip: 2.82 kB
dist/assets/index-BTBs91FB.js 165.73 kB │ gzip: 52.87 kB │ map: 435.98 kB
✓ built in 1.29s
• electron-builder version=24.13.3 os=5.15.0-127-generic
• loaded configuration file=package.json ("build" field)
• writing effective config file=release-builds/builder-effective-config.yaml
• packaging platform=linux arch=x64 electron=34.3.0 appOutDir=release-builds/linux-unpacked
• skipping "afterSign" hook as no signing occurred, perhaps you intended "afterPack"?
• building target=AppImage arch=x64 file=release-builds/PasteMax-1.0.0.AppImage
• building target=deb arch=x64 file=release-builds/pastemax_1.0.0_amd64.deb
• adding autoupdate files for: deb. (Beta feature) resourceDir=/home/dino/nodeApps/pastemax/release-builds/linux-unpacked/resources
• building target=rpm arch=x64 file=release-builds/pastemax-1.0.0.x86_64.rpm
• adding autoupdate files for: rpm. (Beta feature) resourceDir=/home/dino/nodeApps/pastemax/release-builds/linux-unpacked/resources
✅ Packaging completed!

2.
npm run dist/index.html
npm error Missing script: "dist/index.html"
npm error
npm error To see a list of scripts, run:
npm error npm run

best regards,
Arch

@1meza
Copy link
Contributor

1meza commented Mar 5, 2025

Hey Arch,

I was able to run it early on linux. I had to follow follow the running in development mode instructions in the readme here.

If you want to create a build for production maybe try
npm run package:linux

I ran npm run package:win on my windows 11 pc and it successfully created a portable exe and an installer for windows, so the linux command might work for you.

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

No branches or pull requests

2 participants