tareqimbasher / NetPad

A cross-platform C# editor and playground.
MIT License
1.12k stars 60 forks source link

Distribute app in FlatHub #142

Open atrauzzi opened 7 months ago

atrauzzi commented 7 months ago

Would make installation a breeze and keeping up to date even easier.

tareqimbasher commented 6 months ago

NetPad is not yet distributed to any stores, but when that happens FlatHub will also be of interest. In the meantime, for the future I can include a FlatPack single file bundle in the Assets of new releases.

atrauzzi commented 6 months ago

That would be awesome and I'll definitely give it a shot once available.

tareqimbasher commented 6 months ago

That would be helpful. If you're willing infact, I can try to generate a FlatPak bundle for v0.6.1 and send it over if you'd be willing to give it a whirl :smile:

While I mentioned NetPad isn't on any stores yet, it is on the AUR if anyone is on Arch or Manjaro.

atrauzzi commented 6 months ago

Yeah, let me know. I'm on Fedora FWIW.

tareqimbasher commented 3 months ago

@atrauzzi new v0.7.0 release has flatpak package. I have not tested it out. Let me know how it goes for you!

atrauzzi commented 3 months ago

image

Seems to install and start! I'll put some time in learning the app now that I have a nice way of installing it.

I'd say this is definitely good enough to get listed in Flathub. I'm sure you'll get lots of visibility this way and many more people testing it! :partying_face:

atrauzzi commented 3 months ago

First note:

image

You may want to consider ensuring the application requests access to system-wide installations of .NET and related tools.

I have .NET 8 installed on my system, so I'm not sure where it's picking 6 up from.

tareqimbasher commented 3 months ago

Thank you for testing this out! NetPad does check system-wide installations of the .NET SDK. It does so by checking common install locations (see this). If you have an uncommon install location for your SDKs you can set the path in NetPad settings.

The .NET 6 from your screenshot is the .NET runtime that NetPad is currently running on, in this case it's the .NET runtime that ships with NetPad itself.

Keep in mind that .NET 6 SDK is NOT shipped with NetPad, and you'll want to install it if you plan on using database connections. This dependency will be removed in a future release.

atrauzzi commented 3 months ago

If you have an uncommon install location for your SDKs you can set the path in NetPad settings.

I'm using the default Microsoft distributed Fedora .NET package, so it might be that the checks need to be expanded perhaps?

tareqimbasher commented 3 months ago

Possibly. What is the location your SDKs are currently installed at?

And just to confirm were you able to set the custom location in NetPad Settings and get it up and running?

atrauzzi commented 3 months ago

image

I set this path, but it still doesn't appear to be working?

tareqimbasher commented 3 months ago

You want to set the path to the root directory where the .NET SDK is installed, not the path to the dotnet executable. So on my system for example I have .NET SDK installed at /opt/dotnet and my executable path is /opt/dotnet/dotnet, in my case I'd set the path in Settings to /opt/dotnet.

As you can see below, the directory where .NET SDK is installed would have not only the dotnet executable itself, but also all these other folders like packs, sdk, shared...

image

Hope that helps but let me know if you still have an issue getting it to work.

atrauzzi commented 3 months ago

image

I think I have?

It also doesn't work for /usr/lib64/dotnet or /usr/lib64/dotnet/sdk/8.0.102