Navigation Menu

Skip to content

Commit

Permalink
web/satellite: allow execute permissions on wasm_exec
Browse files Browse the repository at this point in the history
Execute permissions are needed on the wasm_exec.js file but nothing seems to set this by default. Once set, it will keep permissions even after rebuilds, but this change will set the initial permissions if required for any new environments.

Change-Id: Ic6848e561210231e67dd2e17a286abdf885926ed
  • Loading branch information
dlamarmorgan committed Nov 21, 2022
1 parent 3378215 commit 9022506
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 4 additions & 1 deletion web/satellite/scripts/build-wasm-dev.sh
Expand Up @@ -4,4 +4,7 @@
cp "$(go env GOROOT)/misc/wasm/wasm_exec.js" ./static/wasm

# Build wasm code
GOOS=js GOARCH=wasm go build -o ./static/wasm/access.wasm storj.io/storj/satellite/console/wasm
GOOS=js GOARCH=wasm go build -o ./static/wasm/access.wasm storj.io/storj/satellite/console/wasm

# Allow execution of wasm_exec.js
chmod +x ./static/wasm/wasm_exec.js
3 changes: 3 additions & 0 deletions web/satellite/scripts/build-wasm.sh
Expand Up @@ -11,3 +11,6 @@ GOOS=js GOARCH=wasm go build -o ./static/wasm/access.wasm storj.io/storj/satelli

# Compress wasm code using brotli
brotli -k -f ./static/wasm/access.wasm

# Allow execution of wasm_exec.js
chmod +x ./static/wasm/wasm_exec.js

0 comments on commit 9022506

Please sign in to comment.