guijs icon indicating copy to clipboard operation
guijs copied to clipboard

version numbers broken on macOS

Open core-code opened this issue 5 years ago • 2 comments

i've downloaded version 0.1.19 but when selecting it in the Finder, it claims to be version 0.1.0:

Screenshot 2020-03-29 at 22 02 02

neither the CFBundleShortVersionString (0.1.0) nor the CFBundleVersion (20200301.105137) have any correlation with the real version number 0.1.19

core-code avatar Mar 29 '20 20:03 core-code

I believe that is technically the tauri app shell version: https://github.com/Akryum/guijs/blob/master/packages/%40guijs/tauri-app/src-tauri/Cargo.toml#L3

I am not certain how to see the guijs version myself.

jbolda avatar Mar 31 '20 01:03 jbolda

the values are stored in the Info.plist file in the app bundle.

normally your build system should set them right. if it didn't you also just adjust them afterwards:


/usr/libexec/PlistBuddy -c "Set CFBundleShortVersionString ${version}" guijs.app/Contents/Info.plist
/usr/libexec/PlistBuddy -c "Set CFBundleVersion ${version}" guijs.app/Contents/Info.plist

core-code avatar Mar 31 '20 10:03 core-code