i've developed javscript application. can played online want give users possibility play offline. i've developed batch file on windows searches google chrome executable , calls flags allows application read local files, etc... bat:
@echo off echo starting application if "%chromepath%"=="" /f "usebackq tokens=1,2,3,4,5" %%a in (`reg query hkey_local_machine\software\microsoft\windows\currentversion\ /s /f \chrome.exe ^| findstr application`) set chromepath=%%c %%d %%e if "%chromepath%"=="" ( echo cannot continue: google chrome must installed in order play offline version. please download , install , re-run file. set /p dummy=hit enter continue... ) else ( "%chromepath%" %cd%/index.html --allow-file-access-from-files --disable-web-security --enable-file-cookies --user-data-dir=c:\chromelocalwebeaser )
can me understand how same thing on mac computers? thanks
Comments
Post a Comment