Skip to content

Commit

Permalink
ci,shell: fix prefix not being detected
Browse files Browse the repository at this point in the history
  • Loading branch information
takase1121 committed Apr 27, 2024
1 parent 071e65c commit eecbb5e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 3 additions & 4 deletions shell/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -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' +
Expand All @@ -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 () {
Expand Down

0 comments on commit eecbb5e

Please sign in to comment.