diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e96c6c6..8234cbd 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -81,7 +81,7 @@ jobs: run: | mkdir dist cp -R web/shell/index.html lite-xl/lite-xl.js lite-xl/lite-xl.wasm dist - python $EMSDK/upstream/emscripten/tools/file_packager.py bundle.data --preload lite-xl/data@/data \ + python $EMSDK/upstream/emscripten/tools/file_packager.py bundle.data --preload lite-xl/data@/usr/share/lite-xl \ --js-output=bundle.data.js --no-force --use-preload-cache --no-node cp bundle.data.js bundle.data dist diff --git a/shell/index.html b/shell/index.html index f3578c8..54ceaf0 100644 --- a/shell/index.html +++ b/shell/index.html @@ -35,9 +35,7 @@ var Module = { arguments: ['/home/web_user/welcome.md'], preRun: [function () { - // workaround older lite-xl not supporting LITE_PREFIX - ENV.APPIMAGE = 'true' - ENV.OWD = '/home/web_user' + FS.chdir('/home/web_user'); FS.writeFile('/home/web_user/welcome.md', '# Welcome to Lite XL!\n\n' + 'This is an instance of Lite XL running on your browser using **JavaScript** and **WASM**.\n\n' + @@ -51,7 +49,8 @@ document.getElementById('loading').style.display = 'none'; document.getElementById('canvas').style.display = 'none'; document.getElementById('close').style.display = 'block'; - } + }, + thisProgram: '/usr/bin/lite-xl', }; window.onload = function () {