Я не знаю, почему у меня есть эта ошибка, когда я пытаюсь сделать Dist из Fedora с RPM, и у меня есть все в RPM, которое говорит, что его нет, и ничего не работает, я оставлю пакет. "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"
}
}
< /code>
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 ' --url https://bushcoding.github.io/classify-downloads --vendor 'Bush Coding ' --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$
Подробнее здесь: https://stackoverflow.com/questions/797 ... xit-code-1
Процесс электрона не удастся: rpmbuild не удастся (выход кода 1) ⇐ Linux
-
- Похожие темы
- Ответы
- Просмотры
- Последнее сообщение