mirror of
https://github.com/penpot/penpot.git
synced 2025-01-22 14:39:45 -05:00
wip: fix wrong namespace
This commit is contained in:
parent
dd9185e058
commit
78fb938d16
6 changed files with 222 additions and 221 deletions
|
@ -1,11 +1,11 @@
|
|||
#!/bin/bash
|
||||
mkdir -p ../../resources/public/js/renderer/cpp
|
||||
mkdir -p ../../src/app/renderer/
|
||||
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 += 'renderer/cpp/';" out/renderer.js > ../../src/app/renderer/cpp.js
|
||||
cp out/renderer.wasm ../../resources/public/js/renderer/cpp
|
||||
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
|
||||
|
|
File diff suppressed because it is too large
Load diff
Loading…
Add table
Reference in a new issue