|
|
On Am 5/2/21 11:15 AM schrieb Albrecht Schlosser wrote:
On 5/2/21 6:54 AM Manolo wrote:
Le samedi 1 mai 2021 à 17:35:45 UTC+2, Albrecht Schlosser a écrit :
On 5/1/21 4:57 PM Manolo wrote:
> I have the problem after configure + make, but no problem after
CMake +
> make.
> Very strange.
The error occurs after I downloaded the FLTK source tar archive with
Firefox, unfold the archive
and build FLTK. The error symptom is a popup window saying
"Blocks is damaged and can't be opened.
Firefox downloaded this file on …"
If I git clone, git checkout branch-1.3 and build with configure : NO
ERROR!
Yes, I see this too.
If I copy the blocks.app dir from my CMake-based build, _empty it
completely_,
and then fill it with the content of blocks.app from my
firefox+configure build : NO ERROR
Thus, the difference in Info.plist between CMake and configure builds
is not the culprit.
I made a similar test: in the <firefox-download> folder I removed
test/blocks.app/Contents/MacOS and Info.plist, then replaced Info.plist
with the Git version and built again (after also removing the blocks
wrapper script). After these steps I could open blocks.app with the Finder.
Thus , the status "I'm suspect, I was downloaded from internet" seems
transferred
from the tar archive all the way to the blocks.app directory and to
block launching these 3 apps.
To circumvent this "security problem" I moved blocks.app aside and
created it again manually. I used an editor (code => VS Code) to edit
the files to avoid duplicating any "downloaded from internet"
attributes, wherever they may be hidden.
See attached file modify_blocks_app.txt for what I did. This worked as
intended, now blocks.app can be opened with the finder and with 'open
test/blocks.app'.
Finally I recreated the entire directory structure of checkers.app and
just /copied/ everything from the saved structure, see attached
modify_checkers.txt, and this worked as well. This is more or less what
you described but I tried it so we can maybe use it in an automated way
to get rid of the problem.
That's real SECURITY! Move unsecure files away, copy the contents back,
and then it's secure. ;-)
Apple???
--
You received this message because you are subscribed to the Google Groups "fltk.coredev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkcoredev+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkcoredev/3d0ccad6-0c16-eb7a-cfcb-fc07c8d2335b%40online.de.
...fltk-1.3.6rc1/test$ mv blocks.app/ blocks_original.app
...fltk-1.3.6rc1/test$ tree blocks_original.app/
blocks_original.app/
└── Contents
├── Info.plist
├── PkgInfo
└── Resources
└── blocks.icns
2 directories, 3 files
...fltk-1.3.6rc1/test$ mkdir -p blocks.app/Contents/Resources
...fltk-1.3.6rc1/test$ code blocks.app/Contents/Info.plist
...fltk-1.3.6rc1/test$ file blocks_original.app/Contents/PkgInfo
blocks_original.app/Contents/PkgInfo: ASCII text
...fltk-1.3.6rc1/test$ cat blocks_original.app/Contents/PkgInfo
BLKSBlks
...fltk-1.3.6rc1/test$ code blocks.app/Contents/PkgInfo
...fltk-1.3.6rc1/test$ cp blocks_original.app/Contents/Resources/blocks.icns blocks.app/Contents/Resources/
...fltk-1.3.6rc1/test$ tree blocks.app/
blocks.app/
└── Contents
├── Info.plist
├── PkgInfo
└── Resources
└── blocks.icns
2 directories, 3 files
...fltk-1.3.6rc1$ make -j7
WORKS!
...fltk-1.3.6rc1/test$ mv checkers.app/ checkers_original.app
...fltk-1.3.6rc1/test$ mkdir -p checkers.app/Contents/Resources/
...fltk-1.3.6rc1/test$ cp checkers_original.app/Contents/Info.plist checkers.app/Contents/
...fltk-1.3.6rc1/test$ cp checkers_original.app/Contents/Resources/checkers.icns checkers.app/Contents/Resources/
...fltk-1.3.6rc1/test$ cp checkers_original.app/Contents/PkgInfo checkers.app/Contents/
...fltk-1.3.6rc1/test$ rm checkers
...fltk-1.3.6rc1/test$ make
Linking checkers...
...fltk-1.3.6rc1/test$ open checkers.app/
WORKS!
[ Direct Link to Message ] | |
|
| |