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

Change the demo htm but app no change

Open anhuijhy opened this issue 6 years ago • 8 comments

Dear ,I'm a freshman .I just run the demo of osx,but when i changed the htm(default.htm use xcode) I don't get change when the app lunch.could somebody show me the reason.

anhuijhy avatar Dec 14 '17 08:12 anhuijhy

I just run the demo of osx

What demo?

c-smile avatar Dec 14 '17 17:12 c-smile

the demo under sciter-sdk.Just like:sciter-sdk/demos.osx/layered

anhuijhy avatar Dec 15 '17 02:12 anhuijhy

layered has /res/ folder compiled into blob ( resources.cpp ). So after changing anything inside /res/ folder you shall run compile-res.sh to update resources.cpp .

c-smile avatar Dec 15 '17 05:12 c-smile

thank you very much

anhuijhy avatar Dec 15 '17 07:12 anhuijhy

I run the .sh under xcode Build Phases/Run Script but the result as below: /Users/a123/Library/Developer/Xcode/DerivedData/layered-dxfspwvysgnvhnbtydlvfwvjspzi/Build/Intermediates.noindex/layered.build/Debug/layered.build/Script-9D2A3B4A1FE3CCF400D589CD.sh: /Users/a123/Desktop/sciter-sdk/demos.osx/layered/compile-res.sh: /bin/sh^M: bad interpreter: No such file or directory

sorry for my so simple question.

anhuijhy avatar Dec 15 '17 09:12 anhuijhy

compile-res.sh shall be called from folder where it resides.

cd /Users/a123/Desktop/sciter-sdk/demos.osx/layered/
./compile-res.sh

c-smile avatar Dec 15 '17 16:12 c-smile

for previous reason should be encoded issue.I re-write the .sh content ,but another issue: cannot open ./res/ for writing. I checked permission of the res folder can write&read. /(ㄒoㄒ)/~~

anhuijhy avatar Dec 18 '17 06:12 anhuijhy

I think, the problem is with packfolder arguments: it must be in packfolder result_file.cpp input_directory form.

pravic avatar Apr 22 '18 17:04 pravic