ragephoto-cli 0.1.0 release

- Commands.Win32.cs: adapt how Invalid Path Command error is triggered
This commit is contained in:
Syping 2025-12-04 12:01:58 +01:00
parent d93741acc4
commit 62f6fab345
3 changed files with 8 additions and 2 deletions

View file

@ -4,7 +4,7 @@
!define APP_EXECUTABLE "ragephoto-cli.exe"
!define APP_NAME "ragephoto-cli"
!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 INSTALL_TYPE "SetShellVarContext all"
!define REG_APP_PATH "Software\Microsoft\Windows\CurrentVersion\App Paths\${APP_EXECUTABLE}"

View file

@ -37,8 +37,11 @@ internal static partial class Commands {
environmentKey.SetValue("Path", String.Join(";", paths), RegistryValueKind.ExpandString);
return 0;
}
throw new ArgumentException("Invalid Path Command");
}
catch (ArgumentException exception) {
Console.ForegroundColor = ConsoleColor.Red;
Console.Error.WriteLine("Invalid Path Command");
Console.Error.WriteLine(exception.Message);
Console.ResetColor();
return 1;
}

View file

@ -5,6 +5,9 @@
<TargetFramework>net8.0</TargetFramework>
<AssemblyName>ragephoto-cli</AssemblyName>
<RootNamespace>RagePhoto.Cli</RootNamespace>
<Version>0.1.0</Version>
<AssemblyVersion>0.1.0</AssemblyVersion>
<FileVersion>0.1.0</FileVersion>
<Authors>Syping</Authors>
<Copyright>Copyright © 2025 Syping</Copyright>
<Description>Open Source RAGE Photo CLI based on libragephoto</Description>