1

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$
askedAug 19 at 4:06
Frederic Jasmin's user avatar
3
  • 1
    Could 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 withDEBUG=electron-builder and add the output to your question if it prints anything useful.CommentedAug 19 at 6:14
  • Tested package.json in debian with a small project, rpm created without problem.CommentedAug 23 at 10:18
  • Have you find a solution about this, I'm facing the same issue nowCommentedSep 13 at 15:19

0

Know someone who can answer? Share a link to thisquestion viaemail,Twitter, orFacebook.

Your Answer

Sign up orlog in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

By clicking “Post Your Answer”, you agree to ourterms of service and acknowledge you have read ourprivacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.