Giter Club home page Giter Club logo

Comments (5)

m-mohamedin avatar m-mohamedin commented on June 6, 2024

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.

lm-sig avatar lm-sig commented on June 6, 2024

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.

m-mohamedin avatar m-mohamedin commented on June 6, 2024

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.

lm-sig avatar lm-sig commented on June 6, 2024

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.

m-mohamedin avatar m-mohamedin commented on June 6, 2024

Thanks fpm: ["--rpm-digest=sha256"] works

from electron-builder.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.