Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Porting to Linux #7

Open
paroxysmal opened this issue May 6, 2020 · 5 comments
Open

Porting to Linux #7

paroxysmal opened this issue May 6, 2020 · 5 comments

Comments

@paroxysmal
Copy link

paroxysmal commented May 6, 2020

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
Copy link

Also interested so that I can possibly dockerize it

@paroxysmal
Copy link
Author

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

@gawainXX
Copy link

gawainXX commented Mar 13, 2021 via email

@paroxysmal
Copy link
Author

paroxysmal commented Mar 14, 2021

.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
Copy link

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"));

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants