Rawaho / Pegasus

A server emulator for the Decal plugin Virindi Integrator 2
GNU Affero General Public License v3.0
18 stars 14 forks source link

Porting to Linux #7

Open paroxysmal opened 4 years ago

paroxysmal commented 4 years ago

currently line 39 in Pegasus.cs is incompatible with finding the config file in Linux. the \\Config needs to be changed to //Config and file saved then compiled/ran.

Might be a way to rewrite it to make it compatible for both so that the end user doesn't need to do a manual edit to accomplish it.

gawainXX commented 3 years ago

Also interested so that I can possibly dockerize it

paroxysmal commented 3 years ago

edit the above mentioned line in the above mentioned file Dotnet publish -r linux-x64 Dotnet run

gawainXX commented 3 years ago

What are you using compile the binary, if possible could you please provide me with the steps? I'd ideally like to get this running in linux and then containerize it on my existing dockerhost. I'm not too familiar with compiling from source.

Alternative if you happen to have a link for something else with almost identical build process I should be able to use that as an reference.

On Sat, Mar 13, 2021, 1:27 PM paroxysmal @.***> wrote:

edit the above mentioned line in the above mentioned file Dotnet publish -r linux-x64 Dotnet run

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Rawaho/Pegasus/issues/7#issuecomment-798788282, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMP7SJH2WDWHYET2KOOHE5TTDPDB7ANCNFSM4M2AN5JQ .

paroxysmal commented 3 years ago

.net core 2.2

its not much more difficult than what i described above

hit me up on the gdle discord (@qenni) if you have further questions then you can post a summary of findings here so rawaho can close the issue

davesienkowski commented 1 month ago

Update line 39 in Pegasus.cs to what's shown below. This change ensures that the correct path separator is used regardless of the operating system. This modification should make the code compatible with Linux file path conventions while still working on Windows. The Path.Combine() method automatically uses the correct path separator for the current operating system.

ConfigManager.Initialise(Path.Combine(Directory.GetCurrentDirectory(), "Config.json"));