Skip to content

Commit 62f6fab

Browse files
committed
ragephoto-cli 0.1.0 release
- Commands.Win32.cs: adapt how Invalid Path Command error is triggered
1 parent d93741a commit 62f6fab

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

.nsis/ragephoto-cli.nsi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
!define APP_EXECUTABLE "ragephoto-cli.exe"
55
!define APP_NAME "ragephoto-cli"
66
!define APP_GUID "{8AC8F2D8-DC6B-40BF-A0AF-CF939029B1ED}"
7-
!define APP_VERSION "1.0.0.0"
7+
!define APP_VERSION "0.1.0.0"
88
!define INSTALLER_NAME "${APP_NAME}_setup.exe"
99
!define INSTALL_TYPE "SetShellVarContext all"
1010
!define REG_APP_PATH "Software\Microsoft\Windows\CurrentVersion\App Paths\${APP_EXECUTABLE}"

Commands.Win32.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,11 @@ internal static Int32 PathFunction(String command) {
3737
environmentKey.SetValue("Path", String.Join(";", paths), RegistryValueKind.ExpandString);
3838
return 0;
3939
}
40+
throw new ArgumentException("Invalid Path Command");
41+
}
42+
catch (ArgumentException exception) {
4043
Console.ForegroundColor = ConsoleColor.Red;
41-
Console.Error.WriteLine("Invalid Path Command");
44+
Console.Error.WriteLine(exception.Message);
4245
Console.ResetColor();
4346
return 1;
4447
}

ragephoto-cli.csproj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
<TargetFramework>net8.0</TargetFramework>
66
<AssemblyName>ragephoto-cli</AssemblyName>
77
<RootNamespace>RagePhoto.Cli</RootNamespace>
8+
<Version>0.1.0</Version>
9+
<AssemblyVersion>0.1.0</AssemblyVersion>
10+
<FileVersion>0.1.0</FileVersion>
811
<Authors>Syping</Authors>
912
<Copyright>Copyright © 2025 Syping</Copyright>
1013
<Description>Open Source RAGE Photo CLI based on libragephoto</Description>

0 commit comments

Comments
 (0)