Skip to content

Commit

Permalink
fix: remove wasm from release artifacts and update build script
Browse files Browse the repository at this point in the history
  • Loading branch information
Dustin-Ray committed Nov 22, 2024
1 parent 0f0590d commit 1b34a49
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
1 change: 0 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,5 +63,4 @@ jobs:
tag: ${{ steps.conventional-changelog.outputs.tag }}
body: ${{ steps.conventional-changelog.outputs.changelog }}
token: ${{ secrets.GH_TOKEN }}
artifacts: "node/src/index.js,node/src/sxt_proof_of_sql_sdk_wasm_bg.wasm"
makeLatest: true
8 changes: 6 additions & 2 deletions node/src/build_index.sh
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,13 @@ main() {
echo "Appending WebAssembly instantiation code..."
append_wasm_instantiation_code "$output_js_file" || return 1

echo "Modified JavaScript file created: $output_js_file"
cp $output_js_file $output_js_file.tmp

cat $1/sxt_proof_of_sql_sdk_wasm.js $SCRIPT_DIR/index_tail.js > $SCRIPT_DIR/index.js
cat $output_js_file.tmp $SCRIPT_DIR/index_tail.js > $output_js_file

rm $output_js_file.tmp

echo "Modified JavaScript file created: $output_js_file"
}

main "$@"

0 comments on commit 1b34a49

Please sign in to comment.