fix: normalize reproducible Planegcs artifacts
This commit is contained in:
@@ -44,6 +44,11 @@ em++ \
|
||||
-sNO_EXIT_RUNTIME=1 \
|
||||
-o "${DIST_DIR}/freecad-planegcs.js"
|
||||
|
||||
# Emscripten output contains a version-sensitive trailing-space-only line.
|
||||
# Normalize it before copying and hashing so native and public artifacts stay
|
||||
# byte-identical across a clean rebuild.
|
||||
perl -pi -e 's/[ \t]+$//' "${DIST_DIR}/freecad-planegcs.js"
|
||||
|
||||
cp "${ROOT_DIR}/native/planegcs/package.json" "${DIST_DIR}/package.json"
|
||||
cp "${DIST_DIR}/freecad-planegcs.js" "${PUBLIC_DIR}/freecad-planegcs.js"
|
||||
cp "${DIST_DIR}/freecad-planegcs.wasm" "${PUBLIC_DIR}/freecad-planegcs.wasm"
|
||||
|
||||
Reference in New Issue
Block a user