sciter-js-sdk
sciter-js-sdk copied to clipboard
MacOS - Can't get samples or Quark to run at all
Describe the bug I cannot get Sciter to run at all on my MacBook Pro (16-inch, 2019) Intel, Catalina 10.15.7 (19H1030)
Seems like permissions, paths and some other issues...
To Reproduce
Can't open anything:
-
Open Sciter by double clicking in Finder results in an error:
sciter-js-sdk-main/bin/macosx/usciterjs.app
-
Open via Terminal
$open ./usciterjs.app
LSOpenURLsWithRole() failed with error -10810 for the file usciterjs.app.
-
Similar issues if i try to open
bin/macosx/inspector.app
-
Additionally, seems like folders may have been renamed as when I look in
sciter-js-sdk-main/bin/quark/macos/quark-start.sh
I see it referencing../../bin.osx/scapp
but it seems../../bin.osx
has been renamed../../bin.macosx
$sh quark-start.sh
quark-start.sh: line 1: ../../bin.osx/scapp: No such file or directory
- Edited
sciter-js-sdk-main/bin/quark/macos/quark-start.sh
to have proper paths:../../macosx/scapp ../../quark/index.htm
then I get:quark-start.sh: line 1: ../../macosx/scapp: Permission denied
Expected behavior
Thanks for the great effort on this product, I can see how powerful, efficient and compact it is, truly a work of art that blends into practical productivity. If I may make one critique it is that the getting started documentation is lacking to some degree and makes Sciter less approachable.
Hopefully this is just a simple packaging issue. Otherwise, I should have a clear error message if something is wrong.
Or, if I am doing something wrong, after studying the docs and readme files and forums, I think there should be some GETTINGSTARTED.md or similar file to help understand the process because its not very clear.
Have you given execution permissions to scapp?
sudo chmod +x ./sciter-js-sdk-main/bin/macosx/scapp
@benrogmans thanks for the tip.
After I edited the path in the bash script for quark per no. 5 above I then did:
sudo chmod +x ./sciter-js-sdk-main/bin/macosx/scapp
Which still didn't work. Then I did:
sudo xattr -r -d com.apple.quarantine ./sciter-js-sdk-main/bin/macosx/usciterjs.app
sudo xattr -r -d com.apple.quarantine ./sciter-js-sdk-main/bin/macosx/inspector.appa
sudo xattr -r -d com.apple.quarantine ./sciter-js-sdk-main/bin/macosx/scapp`
This seemed to help. So I think what remains to be resolved from this issue:
- Update paths of releases to match the scripts
/bin/macosx/scapp
vs/bin/bin.osx/scapp
- Update documentation to inform users that permissions and quarantine commands need to be applied.
Actually, git is able to store correct attributes (e.g. +x
), so there's no need to apply them manually.