Skip to content

Commit

Permalink
up 在linux下使用.ColorMC
Browse files Browse the repository at this point in the history
  • Loading branch information
Coloryr committed Aug 17, 2024
1 parent f6d0e6d commit 16d9ccb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/ColorMC.Core/CoreMain.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ namespace ColorMC.Core;

public static class ColorMCCore
{
public const string TopVersion = "A28";
public const string TopVersion = "A29";
public const string DateVersion = "20240817";

/// <summary>
Expand Down
8 changes: 7 additions & 1 deletion src/ColorMC.Launcher/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,13 @@ public static void Main(string[] args)
{
if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux))
{
_inputDir = $"{Environment.GetFolderPath(Environment.SpecialFolder.UserProfile)}/ColorMC/";
_inputDir = $"{Environment.GetFolderPath(Environment.SpecialFolder.UserProfile)}/.ColorMC/";

string path = $"{Environment.GetFolderPath(Environment.SpecialFolder.UserProfile)}/ColorMC/";

Check failure on line 106 in src/ColorMC.Launcher/Program.cs

View workflow job for this annotation

GitHub Actions / build-windows

A local or parameter named 'path' cannot be declared in this scope because that name is used in an enclosing local scope to define a local or parameter

Check failure on line 106 in src/ColorMC.Launcher/Program.cs

View workflow job for this annotation

GitHub Actions / build-windows

A local or parameter named 'path' cannot be declared in this scope because that name is used in an enclosing local scope to define a local or parameter

Check failure on line 106 in src/ColorMC.Launcher/Program.cs

View workflow job for this annotation

GitHub Actions / build-windows

A local or parameter named 'path' cannot be declared in this scope because that name is used in an enclosing local scope to define a local or parameter

Check failure on line 106 in src/ColorMC.Launcher/Program.cs

View workflow job for this annotation

GitHub Actions / build-windows

A local or parameter named 'path' cannot be declared in this scope because that name is used in an enclosing local scope to define a local or parameter

Check failure on line 106 in src/ColorMC.Launcher/Program.cs

View workflow job for this annotation

GitHub Actions / build-windows

A local or parameter named 'path' cannot be declared in this scope because that name is used in an enclosing local scope to define a local or parameter

Check failure on line 106 in src/ColorMC.Launcher/Program.cs

View workflow job for this annotation

GitHub Actions / build-linux

A local or parameter named 'path' cannot be declared in this scope because that name is used in an enclosing local scope to define a local or parameter

Check failure on line 106 in src/ColorMC.Launcher/Program.cs

View workflow job for this annotation

GitHub Actions / build-linux

A local or parameter named 'path' cannot be declared in this scope because that name is used in an enclosing local scope to define a local or parameter

Check failure on line 106 in src/ColorMC.Launcher/Program.cs

View workflow job for this annotation

GitHub Actions / build-linux

A local or parameter named 'path' cannot be declared in this scope because that name is used in an enclosing local scope to define a local or parameter

Check failure on line 106 in src/ColorMC.Launcher/Program.cs

View workflow job for this annotation

GitHub Actions / build-linux

A local or parameter named 'path' cannot be declared in this scope because that name is used in an enclosing local scope to define a local or parameter

Check failure on line 106 in src/ColorMC.Launcher/Program.cs

View workflow job for this annotation

GitHub Actions / build-linux

A local or parameter named 'path' cannot be declared in this scope because that name is used in an enclosing local scope to define a local or parameter

Check failure on line 106 in src/ColorMC.Launcher/Program.cs

View workflow job for this annotation

GitHub Actions / build-macos

A local or parameter named 'path' cannot be declared in this scope because that name is used in an enclosing local scope to define a local or parameter
if (Directory.Exists(path))
{
Directory.Move(path, RunDir);

Check failure on line 109 in src/ColorMC.Launcher/Program.cs

View workflow job for this annotation

GitHub Actions / build-windows

The name 'RunDir' does not exist in the current context

Check failure on line 109 in src/ColorMC.Launcher/Program.cs

View workflow job for this annotation

GitHub Actions / build-windows

The name 'RunDir' does not exist in the current context

Check failure on line 109 in src/ColorMC.Launcher/Program.cs

View workflow job for this annotation

GitHub Actions / build-windows

The name 'RunDir' does not exist in the current context

Check failure on line 109 in src/ColorMC.Launcher/Program.cs

View workflow job for this annotation

GitHub Actions / build-windows

The name 'RunDir' does not exist in the current context

Check failure on line 109 in src/ColorMC.Launcher/Program.cs

View workflow job for this annotation

GitHub Actions / build-windows

The name 'RunDir' does not exist in the current context

Check failure on line 109 in src/ColorMC.Launcher/Program.cs

View workflow job for this annotation

GitHub Actions / build-linux

The name 'RunDir' does not exist in the current context

Check failure on line 109 in src/ColorMC.Launcher/Program.cs

View workflow job for this annotation

GitHub Actions / build-linux

The name 'RunDir' does not exist in the current context

Check failure on line 109 in src/ColorMC.Launcher/Program.cs

View workflow job for this annotation

GitHub Actions / build-linux

The name 'RunDir' does not exist in the current context

Check failure on line 109 in src/ColorMC.Launcher/Program.cs

View workflow job for this annotation

GitHub Actions / build-linux

The name 'RunDir' does not exist in the current context

Check failure on line 109 in src/ColorMC.Launcher/Program.cs

View workflow job for this annotation

GitHub Actions / build-linux

The name 'RunDir' does not exist in the current context

Check failure on line 109 in src/ColorMC.Launcher/Program.cs

View workflow job for this annotation

GitHub Actions / build-macos

The name 'RunDir' does not exist in the current context
}
}
else if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX))
{
Expand Down

0 comments on commit 16d9ccb

Please sign in to comment.