FreeCAD icon indicating copy to clipboard operation
FreeCAD copied to clipboard

[macOS] regression in 0.20.1: no bundle identifier

Open core-code opened this issue 1 year ago • 4 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

Forums discussion

https://forum.freecadweb.org/viewtopic.php?p=490819

Version

0.21 (Development)

Full version info

FreeCAD_0.20-1-2022-08-20-conda-macOS-x86_64-py310.dmg

Subproject(s) affected?

No response

Issue description

a long standing problem in freecad's macOS integration was that is didn't have a CFBundleIdentifier, which is a prerequisite for any Mac app

this was finally fixed in 0.20, which finally had a proper bundle identifier: org.freecadteam.freecad

however, in 0.20.1 things are bad again, no bundle identifier. this is a clear regression.

Anything else?

p.s. whats up with the random filenames changing pattern in each release? "FreeCAD_0.20-1-2022-08-20-conda-macOS-x86_64-py310.dmg" doesn't follow any pattern that previous releases had. every new release some new pattern is used. also the first "-" should definitely be a "." as its a "0.20.1" release...

p.p.s the CFBundleVersion is also damaged. it should be 0.20.1 not 0.20-1

Code of Conduct

  • [X] I agree to follow this project's Code of Conduct

core-code avatar Aug 26 '22 15:08 core-code

please use a more descriptive title for the issue

@looooo can you weight in on this?

adrianinsaval avatar Aug 27 '22 15:08 adrianinsaval

shouldn't the identifier be org.freecad.FreeCAD? or org.freecadweb.FreeCAD, the flatpak uses the latter and we ship the app icon with that identifier too.

adrianinsaval avatar Aug 27 '22 15:08 adrianinsaval

Bundles for 0.20.1 and weekly-builds should be updated soon: https://github.com/FreeCAD/FreeCAD-Bundle/commit/d584c3ae76c2dcff353d0bf3ba99ce8f0b5ad83b https://github.com/FreeCAD/FreeCAD-Bundle/commit/130bbd7d81b93899addfa8192df4620b4a84a5a6

looooo avatar Aug 28 '22 10:08 looooo

@looooo anything left here?

luzpaz avatar Sep 12 '22 21:09 luzpaz

@core-code please confirm fix

luzpaz avatar Dec 21 '22 12:12 luzpaz

@luzpaz would like to but there are no macOS binaries for 0.20.2

core-code avatar Dec 21 '22 12:12 core-code

Good to know but nevertheless @core-code can you check the 0.20.1 binaries though? (they should have the changes looo mentioned in https://github.com/FreeCAD/FreeCAD/issues/7400#issuecomment-1229426501

luzpaz avatar Dec 21 '22 13:12 luzpaz

the 0.20.1 binaries do NOT have a bundle identifier as mentioned in the initial top post here ( Aug 26 ·):

https://github.com/FreeCAD/FreeCAD/issues/7400#issue-1352448531

core-code avatar Dec 21 '22 13:12 core-code

try the bundle from here: https://github.com/FreeCAD/FreeCAD-Bundle/releases/tag/0.20.1 I think the one in the main repo was not updated.

should this also be changed? https://github.com/FreeCAD/FreeCAD/blob/f0a4ec8240d45fe316c594f310dd28060600e666/src/MacAppBundle/FreeCAD.app/Contents/Info.plist#L63-L64

adrianinsaval avatar Dec 21 '22 14:12 adrianinsaval

now this is confusing

this one is broken (no bundle identifier) https://github.com/FreeCAD/FreeCAD/releases/download/0.20.1/FreeCAD_0.20-1-2022-08-20-conda-macOS-x86_64-py310.dmg

this one is fine (bundle identifier = org.freecadweb.FreeCAD) https://github.com/FreeCAD/FreeCAD-Bundle/releases/download/0.20.1/FreeCAD_0.20.1-2022-08-28-conda-macOS-x86_64-py310.dmg

core-code avatar Dec 21 '22 15:12 core-code

Yeah the bundle was fixed but nobody remembered to also upload it on the main repo. The one I linked is done in a mostly automated way but has to be manually copied on the main repo. @luzpaz I think you have permissions to upload assets to the release page? If you do this please also remember to update the file with the SHA256 for the bundle

adrianinsaval avatar Dec 21 '22 18:12 adrianinsaval

I think I took care of this (I've manually uploaded the the release page). Please test @core-code

luzpaz avatar Jan 14 '23 16:01 luzpaz

thanks! i can confirm that the newest release ( https://github.com/FreeCAD/FreeCAD/releases/download/0.20.2/FreeCAD_0.20.2-2022-12-27-conda-macOS-x86_64-py310.dmg ) has a proper bundle identifier ( org.freecadweb.FreeCAD ) and a version number ( SV: empty BV: 0.20.2-29603 ).

core-code avatar Jan 14 '23 18:01 core-code