sciter-js-sdk icon indicating copy to clipboard operation
sciter-js-sdk copied to clipboard

MacOS - Can't get samples or Quark to run at all

Open ethanpil opened this issue 3 years ago • 3 comments

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:

  1. Open Sciter by double clicking in Finder results in an error:sciter-js-sdk-main/bin/macosx/usciterjs.app image

  2. Open via Terminal

$open ./usciterjs.app
LSOpenURLsWithRole() failed with error -10810 for the file usciterjs.app.
  1. Similar issues if i try to open bin/macosx/inspector.app

  2. 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
  1. 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.

ethanpil avatar Jul 05 '21 04:07 ethanpil

Have you given execution permissions to scapp?

sudo chmod +x ./sciter-js-sdk-main/bin/macosx/scapp

benrogmans avatar Jul 15 '21 11:07 benrogmans

@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:

  1. Update paths of releases to match the scripts /bin/macosx/scapp vs /bin/bin.osx/scapp
  2. Update documentation to inform users that permissions and quarantine commands need to be applied.

ethanpil avatar Jul 19 '21 01:07 ethanpil

Actually, git is able to store correct attributes (e.g. +x), so there's no need to apply them manually.

pravic avatar Jul 19 '21 12:07 pravic