mirror of
https://github.com/Syping/ragephoto-cli.git
synced 2025-12-04 16:51:48 +01:00
ragephoto-cli 0.1.0 release
- Commands.Win32.cs: adapt how Invalid Path Command error is triggered
This commit is contained in:
parent
d93741acc4
commit
62f6fab345
3 changed files with 8 additions and 2 deletions
|
|
@ -4,7 +4,7 @@
|
||||||
!define APP_EXECUTABLE "ragephoto-cli.exe"
|
!define APP_EXECUTABLE "ragephoto-cli.exe"
|
||||||
!define APP_NAME "ragephoto-cli"
|
!define APP_NAME "ragephoto-cli"
|
||||||
!define APP_GUID "{8AC8F2D8-DC6B-40BF-A0AF-CF939029B1ED}"
|
!define APP_GUID "{8AC8F2D8-DC6B-40BF-A0AF-CF939029B1ED}"
|
||||||
!define APP_VERSION "1.0.0.0"
|
!define APP_VERSION "0.1.0.0"
|
||||||
!define INSTALLER_NAME "${APP_NAME}_setup.exe"
|
!define INSTALLER_NAME "${APP_NAME}_setup.exe"
|
||||||
!define INSTALL_TYPE "SetShellVarContext all"
|
!define INSTALL_TYPE "SetShellVarContext all"
|
||||||
!define REG_APP_PATH "Software\Microsoft\Windows\CurrentVersion\App Paths\${APP_EXECUTABLE}"
|
!define REG_APP_PATH "Software\Microsoft\Windows\CurrentVersion\App Paths\${APP_EXECUTABLE}"
|
||||||
|
|
|
||||||
|
|
@ -37,8 +37,11 @@ internal static partial class Commands {
|
||||||
environmentKey.SetValue("Path", String.Join(";", paths), RegistryValueKind.ExpandString);
|
environmentKey.SetValue("Path", String.Join(";", paths), RegistryValueKind.ExpandString);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
throw new ArgumentException("Invalid Path Command");
|
||||||
|
}
|
||||||
|
catch (ArgumentException exception) {
|
||||||
Console.ForegroundColor = ConsoleColor.Red;
|
Console.ForegroundColor = ConsoleColor.Red;
|
||||||
Console.Error.WriteLine("Invalid Path Command");
|
Console.Error.WriteLine(exception.Message);
|
||||||
Console.ResetColor();
|
Console.ResetColor();
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,9 @@
|
||||||
<TargetFramework>net8.0</TargetFramework>
|
<TargetFramework>net8.0</TargetFramework>
|
||||||
<AssemblyName>ragephoto-cli</AssemblyName>
|
<AssemblyName>ragephoto-cli</AssemblyName>
|
||||||
<RootNamespace>RagePhoto.Cli</RootNamespace>
|
<RootNamespace>RagePhoto.Cli</RootNamespace>
|
||||||
|
<Version>0.1.0</Version>
|
||||||
|
<AssemblyVersion>0.1.0</AssemblyVersion>
|
||||||
|
<FileVersion>0.1.0</FileVersion>
|
||||||
<Authors>Syping</Authors>
|
<Authors>Syping</Authors>
|
||||||
<Copyright>Copyright © 2025 Syping</Copyright>
|
<Copyright>Copyright © 2025 Syping</Copyright>
|
||||||
<Description>Open Source RAGE Photo CLI based on libragephoto</Description>
|
<Description>Open Source RAGE Photo CLI based on libragephoto</Description>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue