Open paroxysmal opened 4 years ago
Also interested so that I can possibly dockerize it
edit the above mentioned line in the above mentioned file Dotnet publish -r linux-x64 Dotnet run
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 .
.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
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"));
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.