mirror of
https://github.com/penpot/penpot.git
synced 2025-12-11 22:14:05 +01:00
WIP refactor rerender render-v2
This commit is contained in:
11
frontend/render_v2/cpp/scripts/copy-artifacts
Executable file
11
frontend/render_v2/cpp/scripts/copy-artifacts
Executable file
@@ -0,0 +1,11 @@
|
||||
#!/bin/bash
|
||||
mkdir -p ../../resources/public/js/render-v2/cpp
|
||||
mkdir -p ../../src/app/render-v2/
|
||||
|
||||
# FIXME: This is a VERY HACKY way to set the correct `scriptDirectory` but
|
||||
# I didn't find a better way yet.
|
||||
PREAMBLE_LINES=`wc -l js/preamble.js | egrep -o [0-9]+`
|
||||
POSTAMBLE_LINES=`wc -l js/postamble.js | egrep -o [0-9]+`
|
||||
LINE_NUMBER=`echo "200 + ${PREAMBLE_LINES} + ${POSTAMBLE_LINES}" | bc | egrep -o [0-9]+`
|
||||
sed "${LINE_NUMBER} i \ \ scriptDirectory += 'render-v2/cpp/';" out/render-v2.js > ../../src/app/render-v2/cpp.js
|
||||
cp out/render-v2.wasm ../../resources/public/js/render-v2/cpp
|
||||
Reference in New Issue
Block a user