Modding, Mission Design, and Coding > FS2 Open Tools

BETA: Knossos.NET v0.2.0: Making a multiplatform C# launcher with AvaloniaUI

<< < (4/5) > >>

ShivanSpS:

--- Quote from: CapellaGoBoom on August 07, 2023, 11:01:22 pm ---Stumbled upon this a little over a week ago and been using it over the other app ever since. Is this considered nuknossos? If so I quite like it!

--- End quote ---
No, Nuknossos is an enterely new system, once it is done will have to make a NuKnossos.NET for it.

perihelion:
This is probably me being exceptionally stupid, but could someone explain to me how to get Avalonia UI installed in Linux?  I could not find any packages for it.

I also don't understand the instructions in the Readme.rm regarding:

--- Code: ----Right click on the project -> Publish
-Export to folder
-From there you can pick the dest enviroment on the list
--- End code ---

What exactly am I supposed to right click on?  I am also not seeing a "publish" option from my right click drop down menu no matter what file or folder I click on.

Sorry if these are stupid questions.  I am very much past my prime in trying to learn the guts of compiling.  I learned to program Fortran and Visual Basic within Excel.  Compiling wasn't a thing for me.  And I've done barely any coding in the 20+ years since then.

ShivanSpS:
KnossosNET repo has been moved to an organization, so i updated the links.


--- Quote from: perihelion on September 16, 2023, 04:13:46 pm ---This is probably me being exceptionally stupid, but could someone explain to me how to get Avalonia UI installed in Linux?  I could not find any packages for it.

I also don't understand the instructions in the Readme.rm regarding:

--- Code: ----Right click on the project -> Publish
-Export to folder
-From there you can pick the dest enviroment on the list
--- End code ---

What exactly am I supposed to right click on?  I am also not seeing a "publish" option from my right click drop down menu no matter what file or folder I click on.

Sorry if these are stupid questions.  I am very much past my prime in trying to learn the guts of compiling.  I learned to program Fortran and Visual Basic within Excel.  Compiling wasn't a thing for me.  And I've done barely any coding in the 20+ years since then.

--- End quote ---
To be honest i have no idea on how to do anything on Mac or Linux as my dev enviroment is on Windows, and you can easily compile for Linux or Mac from Windows for C# .Net 5/6/7/8

In Windows it would be to right click the "Knossos.NET" project, project, not the solution, click public, then publish to folder, set the path, then select the OS/ARCH (do not use portable), enable build single file, and thats petty much it.

perihelion:
Ah.  Well, I'm afraid that puts Knossos.NET out of my reach until someone makes available as a package or something similar.  I'm just too far out of my element to figure this out on my own, and I finally bit the bullet and removed Windows from my machine during the COVID shutdown.  In theory, there's my work computer, but I definitely don't need to get in trouble with IT!

From what I can see on the screen shots, it looks like a nice bit of kit you're working on!  Best of luck.

taylor:
If you don't actually want to mess with the code I'd recommend just using a precompiled build from https://github.com/KnossosNET/Knossos.NET/releases where you can get x86_64 and aarch64 Linux builds. I believe you still need to have .NET installed to run those however. The next release should not require installing .NET first as well as having AppImage builds available. Also a flatpak version should hopefully be available next month.

If you'd like an AppImage build of the current release, instead of waiting for the next one, let me know what architecture you need and I'll send you a download link. Then all you'll need to do is download the file, make it executable, and run it. That's about as non-technical as we can make it at the moment.


Otherwise, if you do want to mess with the code, this should get you going:

You don't have to install Avalonia UI yourself, just the .NET SDK. Then when you publish (build/compile) the app it will pull in all of the dependencies for you. Install the .NET SDK using the instructions from here if you don't have it installed already. After that I recommend getting Visual Studio Code for editing and building the code. It should detect Knossos.NET as a C# project and setup the basics for you.

Generally though, it's easier to get builds via the command line. From inside the project directory, assuming the .NET SDK is installed and that you want a x86_64 binary, just run:


--- Code: ---dotnet publish Knossos.NET/Knossos.NET.csproj -r linux-x64 -c Release --self-contained -p:PublishSingleFile=true
--- End code ---

It might appear to hang for a while the first time you run it as it downloads all of the dependencies, but once it's done you should have a working binary available in Knossos.NET/bin/Release/net6.0/linux-x64/publish

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version