Skip to content

Commit e20229e

Browse files
committed
copy files to extension static folder
1 parent 2c535db commit e20229e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pixi.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,14 +61,16 @@ depends-on = ["setup-wasm"]
6161
outputs = ["dist/"]
6262
inputs = ["pixi.lock", "files/"]
6363

64+
6465
[target.linux-64.tasks.patch-xpython]
6566
cmd = "sed -i 's/jsArg.replace(\"\\*\",\"\")/jsArg.replaceAll(\"\\*\",\"\")/g' './dist/xeus/bin/xpython.js'"
6667

6768
[target.osx-arm64.tasks.patch-xpython]
6869
cmd = "sed -i '' 's/jsArg.replace(\"\\*\",\"\")/jsArg.replaceAll(\"\\*\",\"\")/g' ./dist/xeus/bin/xpython.js"
6970

7071
[feature.host.tasks.copy-roslib]
71-
cmd = "cp roslib.js ./dist && cp pre.js ./dist"
72+
cmd = "cp roslib.js ./dist/$EXTENSION_FOLDER && cp pre.js ./dist/$EXTENSION_FOLDER"
73+
env = {EXTENSION_FOLDER="extensions/@jupyterlite/xeus-extension/static"}
7274

7375
# serve the jupyterlite app with a "simple server"
7476
[feature.host.tasks.start]

0 commit comments

Comments
 (0)