Electron.NET icon indicating copy to clipboard operation
Electron.NET copied to clipboard

Create deb application

Open scherenhaenden opened this issue 5 years ago • 11 comments

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

is there anyway to create a deb app?

thanks.

scherenhaenden avatar Oct 25 '20 21:10 scherenhaenden

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 avatar Oct 25 '20 22:10 GregorBiswanger

@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 avatar Oct 26 '20 07:10 scherenhaenden

@GregorBiswanger sadly, it is buggy.

scherenhaenden avatar Oct 26 '20 08:10 scherenhaenden

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

k-karuna avatar Oct 26 '20 17:10 k-karuna

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 avatar Oct 26 '20 18:10 scherenhaenden

@k-karuna

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

scherenhaenden avatar Oct 27 '20 12:10 scherenhaenden

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 avatar Jan 25 '21 16:01 danatcofo

@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 avatar Nov 18 '21 02:11 schaveyt

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 avatar Nov 18 '21 02:11 danatcofo

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 avatar Nov 20 '21 19:11 scherenhaenden

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 avatar Nov 23 '21 23:11 schaveyt

🎉🚀 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 avatar Mar 28 '23 15:03 GregorBiswanger