Comments (5)
I believe the right question is how to sign RPM packages for Linux. I see code signing documentation is only for macOS and Windows.
Thanks
from electron-builder.
The electron-builder docs have a Linux section unless I am looking at the wrong page.
https://www.electron.build/configuration/linux.html
The docs show a "fpm" parameter for RPM files. The docs link to the "FPM" documentation page and it shows a "--rpm-digest" argument that could be passed with a "sha256" option.
Can you try building draw.io with fpm ["--rpm-digest sha256"]
?
from electron-builder.
The electron-builder docs have a Linux section unless I am looking at the wrong page.
https://www.electron.build/configuration/linux.html
The docs show a "fpm" parameter for RPM files. The docs link to the "FPM" documentation page and it shows a "--rpm-digest" argument that could be passed with a "sha256" option.
Can you try building draw.io with
fpm ["--rpm-digest sha256"]
?
Thanks for the reply, I've got this error:
• adding autoupdate files for: rpm. (Beta feature) resourceDir=/home/runner/work/drawio-desktop/drawio-desktop/dist/linux-unpacked/resources
⨯ cannot execute cause=exit status 1
errorOut=ERROR: Unrecognised option '--rpm-digest sha256'
See: 'fpm --help'
command=/home/runner/.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 -d xdg-utils -d at-spi2-core -d libuuid --rpm-os linux --rpm-compression xzmt --architecture aarch64 --after-install /tmp/t-c0ifAe/2-after-install --after-remove /tmp/t-c0ifAe/3-after-remove --description 'draw.io desktop' --version 24.3.1 --package /home/runner/work/drawio-desktop/drawio-desktop/dist/drawio-aarch64-24.3.1.rpm --name draw.io --maintainer 'JGraph <[email protected]>' --url https://github.com/jgraph/drawio --vendor 'JGraph <[email protected]>' --license Apache-2.0 '--rpm-rpmbuild-define=_build_id_links none' '--rpm-digest sha256' /home/runner/work/drawio-desktop/drawio-desktop/dist/linux-arm64-unpacked/=/opt/drawio /home/runner/work/drawio-desktop/drawio-desktop/build/16x16.png=/usr/share/icons/hicolor/16x16/apps/drawio.png /home/runner/work/drawio-desktop/drawio-desktop/build/32x32.png=/usr/share/icons/hicolor/32x32/apps/drawio.png /home/runner/work/drawio-desktop/drawio-desktop/build/48x48.png=/usr/share/icons/hicolor/48x48/apps/drawio.png /home/runner/work/drawio-desktop/drawio-desktop/build/64x64.png=/usr/share/icons/hicolor/64x64/apps/drawio.png /home/runner/work/drawio-desktop/drawio-desktop/build/96x96.png=/usr/share/icons/hicolor/96x96/apps/drawio.png /home/runner/work/drawio-desktop/drawio-desktop/build/128x128.png=/usr/share/icons/hicolor/128x128/apps/drawio.png /home/runner/work/drawio-desktop/drawio-desktop/build/192x192.png=/usr/share/icons/hicolor/192x192/apps/drawio.png /home/runner/work/drawio-desktop/drawio-desktop/build/256x256.png=/usr/share/icons/hicolor/256x256/apps/drawio.png /home/runner/work/drawio-desktop/drawio-desktop/build/512x512.png=/usr/share/icons/hicolor/512x512/apps/drawio.png /home/runner/work/drawio-desktop/drawio-desktop/build/720x720.png=/usr/share/icons/hicolor/720x720/apps/drawio.png /home/runner/work/drawio-desktop/drawio-desktop/build/1024x1024.png=/usr/share/icons/hicolor/1024x1024/apps/drawio.png /tmp/t-c0ifAe/4.xml=/usr/share/mime/packages/drawio.xml /tmp/t-c0ifAe/7-drawio.desktop=/usr/share/applications/drawio.desktop
workingDir=
⨯ cannot execute cause=exit status 1
errorOut=ERROR: Unrecognised option '--rpm-digest sha256'
See: 'fpm --help'
from electron-builder.
Sorry, this is the first time I've looked at electron-builder or fpm.
Based on your output it looks like it put the parameter within quotes so fpm thought you were trying to pass the entire argument as a parameter. Can you try one of these options and see if they help?
fpm: ["--rpm-digest", "sha256"]
or
fpm: ["--rpm-digest=sha256"]
from electron-builder.
Thanks fpm: ["--rpm-digest=sha256"] works
from electron-builder.
Related Issues (20)
- No space left on device (sparse files)
- Problems caused by excessively large extraResources resources
- Nested executables are expected to have provisioning profiles
- Unable to reach i18n json files through installed version HOT 1
- how to create an updater process
- Docs for `NotarizeNotaryOptions` stop mid-sentence
- Keygen provider not working with target 'nsis-web' HOT 2
- Cannot produce a working windows binary from template project with no changes HOT 2
- d
- Snap protocol handler not working due to LIBDBUS_PRIVATE_1.12.20 not found (required by dbus-send)
- Can't use custom version of Electron HOT 1
- electron-vite compileToBytecode HOT 1
- The issue lies in the organization and clarity of the electron-builder documentation, as well as the lack of an explanation for the MetadataDirectories type and the purpose of directories.
- hdiutil 'ERR_ELECTRON_BUILDER_CANNOT_EXECUTE' when building dmg.
- mac dmg build failed to upload to notarization server: code -1011 app-specific-password
- "one-click installer executes uninstall section in the silent mode" causes all MessageBox with /SD flag to go silent even if user didn't run uninstaller with /S flag?
- Build an Electron App (generate build & setup)
- Portable exe crashes if video tag present in HTML
- 25.0.0-alpha.9 was released to npm as "latest" HOT 2
- electron-updater ERR_UPDATER_INVALID_SIGNATURE HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from electron-builder.