I don't know why I have this error when trying to make dist from fedora with rpm and I have everything about rpm that says it is not there and nothing works, I will leave the package.json and the error, in the .deb and in windows if the dist works well, only with rpm does this problem happen, could someone help me, I have been trying for 3 days and I can't do it
"name": "classify", "version": "1.0.3", "description": "Classify", "main": "src/main/main.js", "homepage": "https://bushcoding.github.io/classify-downloads", "repository": { "type": "git", "url": "https://github.com/bushcoding/classify-downloads.git" }, "scripts": { "start": "electron .", "dist": "echo 'Error: Please use one of the platform-specific distribution commands like dist:windows, dist:linux-deb, or dist:linux-rpm' && exit 1", "dist:windows": "electron-builder -w --publish never", "dist:linux-deb": "electron-builder -l deb --publish never", "dist:linux-rpm": "electron-builder -l rpm --publish never", "test": "jest" }, "keywords": [ "file-organizer", "desktop-app", "electron" ], "author": { "name": "Bush Coding", "email": "[email protected]" }, "license": "ISC", "dependencies": { "axios": "^1.6.7", "electron-store": "^8.1.0", "jwt-decode": "^4.0.0" }, "build": { "appId": "com.bushcoding.classify", "productName": "Classify", "artifactName": "ClassifyInstaller-${version}-${os}.${ext}", "files": [ "src/**/*", "public/**/*", "package.json" ], "directories": { "output": "dist" }, "linux": { "icon": "public/assets/icons/512x512.png", "executableName": "classify", "executableArgs": [ "--no-sandbox" ], "category": "Utility", "target": [ "deb", "rpm" ] }, "win": { "icon": "public/assets/icons/512x512.png", "target": [ "nsis" ], "verifyUpdateCodeSignature": false } }, "devDependencies": { "electron": "^30.0.9", "electron-builder": "^26.0.12", "jest": "^30.0.5" }}fredericjasmin@fedora:~/Documents/GitHub/classify-client$ npm run dist:linux-rpm>[email protected] dist:linux-rpm> electron-builder -l rpm --publish never • electron-builder version=26.0.12 os=6.15.9-201.fc42.x86_64 • loaded configuration file=package.json ("build" field) • writing effective config file=dist/builder-effective-config.yaml • executing @electron/rebuild electronVersion=30.5.1 arch=x64 buildFromSource=false appDir=./ • installing native dependencies arch=x64 • completed installing native dependencies • packaging platform=linux arch=x64 electron=30.5.1 appOutDir=dist/linux-unpacked(node:45062) [DEP0190] DeprecationWarning: Passing args to a child process with shell option true can lead to security vulnerabilities, as the arguments are not escaped, only concatenated.(Use `node --trace-deprecation ...` to show where the warning was created) • building target=rpm arch=x64 file=dist/ClassifyInstaller-1.0.3-linux.rpm • adding autoupdate files for: rpm. (Beta feature) resourceDir=dist/linux-unpacked/resources ⨯ cannot execute cause=exit status 1 out={:timestamp=>"2025-08-18T21:59:50.472740-0600", :message=>"Process failed: rpmbuild failed (exit code 1). Full command was:[\"rpmbuild\", \"-bb\", \"--target\", \"x86_64-unknown-linux\", \"--define\", \"buildroot /tmp/package-rpm-build-b68f2310d3830a3c83dfc66bd4d7312cf3d4b89016459e85543dc86958ef/BUILD\", \"--define\", \"_topdir /tmp/package-rpm-build-b68f2310d3830a3c83dfc66bd4d7312cf3d4b89016459e85543dc86958ef\", \"--define\", \"_sourcedir /tmp/package-rpm-build-b68f2310d3830a3c83dfc66bd4d7312cf3d4b89016459e85543dc86958ef\", \"--define\", \"_rpmdir /tmp/package-rpm-build-b68f2310d3830a3c83dfc66bd4d7312cf3d4b89016459e85543dc86958ef/RPMS\", \"--define\", \"_tmppath /tmp\", \"/tmp/package-rpm-build-b68f2310d3830a3c83dfc66bd4d7312cf3d4b89016459e85543dc86958ef/SPECS/classify.spec\"]", :level=>:error} command=/home/fredericjasmin/.cache/electron-builder/fpm/fpm-1.9.3-2.3.1-linux-x86_64/fpm -s dir --force -t rpm -d gtk3 -d libnotify -d nss -d libXScrnSaver -d '(libXtst or libXtst6)' -d xdg-utils -d at-spi2-core -d '(libuuid or libuuid1)' --rpm-os linux --rpm-compression xzmt --architecture amd64 --after-install /tmp/t-1Z3ZBR/0-after-install --after-remove /tmp/t-1Z3ZBR/1-after-remove --description Classify --version 1.0.3 --package /home/fredericjasmin/Documents/GitHub/classify-client/dist/ClassifyInstaller-1.0.3-linux.rpm --name classify --maintainer 'Bush Coding <[email protected]>' --url https://bushcoding.github.io/classify-downloads --vendor 'Bush Coding <[email protected]>' --license ISC /home/fredericjasmin/Documents/GitHub/classify-client/dist/linux-unpacked/=/opt/Classify /home/fredericjasmin/Documents/GitHub/classify-client/public/assets/icons/512x512.png=/usr/share/icons/hicolor/512x512/apps/classify.png /tmp/t-1Z3ZBR/5-classify.desktop=/usr/share/applications/classify.desktop workingDir=fredericjasmin@fedora:~/Documents/GitHub/classify-client$- 1Could bethis electron-builder issue. It's difficult to say for sure though because the underlying error message from rpmbuild is not printed. Consider running your build command with
DEBUG=electron-builderand add the output to your question if it prints anything useful.mwopitz– mwopitz2025-08-19 06:14:50 +00:00CommentedAug 19 at 6:14 - Tested package.json in debian with a small project, rpm created without problem.ozkanpakdil– ozkanpakdil2025-08-23 10:18:29 +00:00CommentedAug 23 at 10:18
- Have you find a solution about this, I'm facing the same issue nowHoney– Honey2025-09-13 15:19:53 +00:00CommentedSep 13 at 15:19
Related questions
Related questions
