Closed Janiczek closed 3 years ago
Umm... and what is not clear in this phrase "User doesn't have permission to launch the app" ?
Files copied from the web, to be executed, need to have permission from you.
Check: https://www.macinstruct.com/tutorials/how-to-set-file-permissions-in-mac-os-x/
Here's a link to the Stack Overflow solution for Big Sur.
https://stackoverflow.com/a/65010167
Here's another possible solution for downloaded apps
Here's what I see after chmod -R 755
, xattr
and codesign
:
https://user-images.githubusercontent.com/149425/117572889-48277480-b0d5-11eb-910b-3a028135dd1b.mp4
Try to compile executables on your machine: https://github.com/c-smile/sciter-js-sdk/tree/main/build/macosx
And libsciter.dylib should also have execute permissions I guess.
Here's what I tried
build/macosx/usciter.xcodeproj
(Info.plist
missing I believe)demos/usciter/macosx/usciter/usciter.xcodeproj
(binary compiles but immediately closes after running - exits without an error)demos/usciter/macos/usciterjs/usciterjs.xcodeproj
The last one finally built and ran successfully after running
sudo xattr -dr com.apple.quarantine bin/macosx/libsciter.dylib
So, the binaries downloaded with the SDK are not usable for M1 users but building one of the demos at least results in something runnable:
Thanks for pointing me in the right direction.
This is probably off topic, but: am I correct in assuming scapp
is how I should package/distribute apps (if not needing some more extensive C++ integration), and usciter
is just a development environment (hot reload etc.)?
scapp
is Sciter wrapped into executable - ready to be run with some html/css/script that constitute your application. It links sciter core statically so is self sufficient.sciter.dylib
is Sciter in embeddable form as DLL, used in native applications like Norton Antivirus, Avast, AVG, BitDefender, ESET, etc. and of course usciter.app, inspector.app from SDK.scapp is used by Sciter.Quark that can be used to generate monolithic executables that contain as sciter as resources.
Thanks for all the help and explanations!
System:
I get an error when trying to open any apps in the Sciter.JS SDK:
Are there some other steps to run the apps? Do I perhaps need to build them on my own from the Xcode projects?