Create deb application #577

Closed
opened 2026-01-29 16:43:18 +00:00 by claunia · 12 comments
Owner

Originally created by @scherenhaenden on GitHub (Oct 25, 2020).

Originally assigned to: @GregorBiswanger on GitHub.

I need a mutable application but on linux electron.NET creates only appimages.

is there anyway to create a deb app?

thanks.

Originally created by @scherenhaenden on GitHub (Oct 25, 2020). Originally assigned to: @GregorBiswanger on GitHub. I need a mutable application but on linux electron.NET creates only appimages. is there anyway to create a deb app? thanks.
claunia added the question label 2026-01-29 16:43:18 +00:00
Author
Owner

@GregorBiswanger commented on GitHub (Oct 25, 2020):

Hey @scherenhaenden,

Electron.NET uses electron builder under the hood. You can configure this in the electron.manifest.json file in the build part.

The electron-builder documentation shows a target property:
https://www.electron.build/configuration/linux

Could I help you?

@GregorBiswanger commented on GitHub (Oct 25, 2020): Hey @scherenhaenden, Electron.NET uses electron builder under the hood. You can configure this in the `electron.manifest.json` file in the build part. The electron-builder documentation shows a target property: https://www.electron.build/configuration/linux Could I help you?
Author
Owner

@scherenhaenden commented on GitHub (Oct 26, 2020):

@GregorBiswanger

ok, that is embarassing, I was trully hunting such information on the internet but I did not find it.

thanks a lot mate.

@scherenhaenden commented on GitHub (Oct 26, 2020): @GregorBiswanger ok, that is embarassing, I was trully hunting such information on the internet but I did not find it. thanks a lot mate.
Author
Owner

@scherenhaenden commented on GitHub (Oct 26, 2020):

@GregorBiswanger sadly, it is buggy.

@scherenhaenden commented on GitHub (Oct 26, 2020): @GregorBiswanger sadly, it is buggy.
Author
Owner

@k-karuna commented on GitHub (Oct 26, 2020):

@scherenhaenden can you let know if you will succeed in this issue?

@k-karuna commented on GitHub (Oct 26, 2020): @scherenhaenden can you let know if you will succeed in this issue?
Author
Owner

@scherenhaenden commented on GitHub (Oct 26, 2020):

it did not, but the error appears to be releated with the packes used in my system in combination with the electron builder.

everything works, except when I build the zip/deb files...

I'm trying to get a release using github actions

@scherenhaenden commented on GitHub (Oct 26, 2020): it did not, but the error appears to be releated with the packes used in my system in combination with the electron builder. everything works, except when I build the zip/deb files... I'm trying to get a release using github actions
Author
Owner

@scherenhaenden commented on GitHub (Oct 27, 2020):

@k-karuna

https://github.com/ElectronNET/Electron.NET/issues/495

@scherenhaenden commented on GitHub (Oct 27, 2020): @k-karuna https://github.com/ElectronNET/Electron.NET/issues/495
Author
Owner

@danatcofo commented on GitHub (Jan 25, 2021):

Late to the party @scherenhaenden, but this is an example of our manifest sections for linux, hopefully it helps you

"build" : {
    ...
    "linux": {
      "icon": "../../../../../build/assets/Prefix_256.png",
      "maintainer": "Stackify",
      "executableName": "Prefix",
      "target": [ "deb", "rpm" ]
    },
    "deb": {
      "depends": [ "libnss3" ],
      "fpm": [
        "--name=Prefix",
        "--after-install=../../../../../build/linux/postinst",
        "--after-remove=../../../../../build/linux/postrm"
      ]
    },
    "rpm": {
      "depends": [ "libXScrnSaver", "libnss3" ],
      "fpm": [
        "--name=Prefix",
        "--after-install=../../../../../build/linux/postinst",
        "--after-remove=../../../../../build/linux/postrm",
        "--iteration=1.0.0"
      ]
    }
}
@danatcofo commented on GitHub (Jan 25, 2021): Late to the party @scherenhaenden, but this is an example of our manifest sections for linux, hopefully it helps you ```json "build" : { ... "linux": { "icon": "../../../../../build/assets/Prefix_256.png", "maintainer": "Stackify", "executableName": "Prefix", "target": [ "deb", "rpm" ] }, "deb": { "depends": [ "libnss3" ], "fpm": [ "--name=Prefix", "--after-install=../../../../../build/linux/postinst", "--after-remove=../../../../../build/linux/postrm" ] }, "rpm": { "depends": [ "libXScrnSaver", "libnss3" ], "fpm": [ "--name=Prefix", "--after-install=../../../../../build/linux/postinst", "--after-remove=../../../../../build/linux/postrm", "--iteration=1.0.0" ] } } ```
Author
Owner

@schaveyt commented on GitHub (Nov 18, 2021):

@danatcofo for the linux icon path ../../../../../build/assets/Prefix_256.png what is this location relative to. I am struggling to line mine up.

@schaveyt commented on GitHub (Nov 18, 2021): @danatcofo for the linux icon path `../../../../../build/assets/Prefix_256.png` what is this location relative to. I am struggling to line mine up.
Author
Owner

@danatcofo commented on GitHub (Nov 18, 2021):

Build is under solution root. Electron manifest is under ~/arc/prefix-app. So all the extra ../s are accounting for the building directory that is somewhere under bin I think. Basically add ../../../ to get relative location of electron manifest

@danatcofo commented on GitHub (Nov 18, 2021): Build is under solution root. Electron manifest is under ~/arc/prefix-app. So all the extra ../s are accounting for the building directory that is somewhere under bin I think. Basically add ../../../ to get relative location of electron manifest
Author
Owner

@scherenhaenden commented on GitHub (Nov 20, 2021):

I have not kept trying cuz I did not have the time, But I would try to find some free time to try it again

@scherenhaenden commented on GitHub (Nov 20, 2021): I have not kept trying cuz I did not have the time, But I would try to find some free time to try it again
Author
Owner

@schaveyt commented on GitHub (Nov 23, 2021):

I ended up just use bailing on the .png and instead installed make-Icns and converted my 1024x1024 png to the .icns format. I was able reference it in both the Linux and Mac sections...and it all worked on the first try 👍

@schaveyt commented on GitHub (Nov 23, 2021): I ended up just use bailing on the .png and instead installed [make-Icns](https://www.npmjs.com/package/make-icns) and converted my 1024x1024 png to the .icns format. I was able reference it in both the Linux and Mac sections...and it all worked on the first try 👍
Author
Owner

@GregorBiswanger commented on GitHub (Mar 28, 2023):

🎉🚀 New Electron.NET version 23.6.1 released 🚀🎉

With native Electron 23 and .NET 6 support. Your problem should be fixed here. If you continue to have the problem, please let us know. Please note the correct updating of your API & CLI. Info in the README. Have fun!

@GregorBiswanger commented on GitHub (Mar 28, 2023): 🎉🚀 New Electron.NET version 23.6.1 released 🚀🎉 With native Electron 23 and .NET 6 support. Your problem should be fixed here. If you continue to have the problem, please let us know. Please note the correct updating of your API & CLI. Info in the README. Have fun!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/Electron.NET#577