Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

electron-builder fails to create .deb package #35

Closed
StahlFerro opened this issue Jul 2, 2021 · 1 comment
Closed

electron-builder fails to create .deb package #35

StahlFerro opened this issue Jul 2, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@StahlFerro
Copy link
Owner

Building a .deb package on Ubuntu 18.04 LTS brings out this error:

  • electron-builder  version=22.10.5 os=5.4.0-77-generic
  • loaded configuration  file=package.json ("build" field)
  • writing effective config  file=release/tridentframe/builder-effective-config.yaml
  • packaging       platform=linux arch=x64 electron=11.2.3 appOutDir=release/tridentframe/linux-unpacked
  • Unpacking electron zip  zipPath=undefined
  • asar usage is disabled — this is strongly not recommended  solution=enable asar and use asarUnpack to unpack files that must be externally available
  • asar usage is disabled — this is strongly not recommended  solution=enable asar and use asarUnpack to unpack files that must be externally available
  • building        target=7z arch=x64 file=release/tridentframe/tridentframe-0.1.0-beta.7.7z
  • building        target=zip arch=x64 file=release/tridentframe/tridentframe-0.1.0-beta.7.zip
  • building        target=deb arch=x64 file=release/tridentframe/tridentframe_0.1.0-beta.7_amd64.deb
  ⨯ cannot execute  cause=exit status 1
                    out={:timestamp=>"2021-07-02T09:13:20.017670+0700", :message=>"Debian packaging tools generally labels all files in /etc as config files, as mandated by policy, so fpm defaults to this behavior for deb packages. You can disable this default behavior with --deb-no-default-config-files flag", :level=>:warn}
    {:timestamp=>"2021-07-02T09:13:20.655713+0700", :message=>"Process failed: tar failed (exit code 2). Full command was:[\"tar\", \"-C\", \"/tmp/package-dir-staging-fa9953abd6ba81d9b887186f2933315d6befccc9138b886888c052f6d690\", \"-I'~/Projects/Python's Projects/TridentFrame/node_modules/app-builder-bin/linux/x64/app-builder'\", \"--numeric-owner\", \"--owner\", \"0\", \"--numeric-owner\", \"--group\", \"0\", \"-cf\", \"/tmp/package-deb-build-a2f9af5eb29165a5fdd6ef8f927f22dd0ea8746c3c509152293a7fa48e8d/data.tar.xz\", \".\"]", :level=>:error}

As a result starting from v0.1.0-beta.7, .deb packages for linux releases are discontinued temporarily until this issue is solved.

@StahlFerro StahlFerro added the bug Something isn't working label Jul 2, 2021
@StahlFerro
Copy link
Owner Author

Partial resolution is to utilize fpm tool from rubygems on linux deployment dev machine.

Reference: electron-userland/electron-builder#3901 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant