mtkennerly / shawl

Windows service wrapper for arbitrary commands
MIT License
448 stars 15 forks source link

adding version to shawl.exe properties #14

Closed dreamflow closed 2 years ago

dreamflow commented 2 years ago

hi , i'm a user of shawl.exe .

could please the version of shawl be added to the shawl.exe properties like on the picture below . this would make it easier to manually and programatically see the different shawl.exe versions on different machines , where shawl is installed on .

shawl exe properties with version

mtkennerly commented 2 years ago

Sure, that sounds like a good idea :+1:

mklinke commented 2 years ago

Looks like it's not possible to include those properties in the exectuable while this is still open: https://github.com/rust-lang/rfcs/issues/721

dgellow commented 2 years ago

@mklinke From what I see that can be done using the cargo build script embed-resource.`

mtkennerly commented 2 years ago

I went with winres since it seemed more straightforward:

image

dgellow commented 2 years ago

Great :)

dreamflow commented 2 years ago

thank you @mtkennerly for implementing this feature and thank you all others in this thread .

i'm already making use of this feature in my application and can confirm that it's super easy now to programatically read the shawl.exe version .

for those interessed , now i read the shawl.exe version with a one-liner in AutoIt FileGetVersion( '...path_to...\shawl.exe' , 'ProductVersion' )