Browse Source

Update build script to run on any POSIX (#1577)

Signed-off-by: Felix Hanley <felix@userspace.com.au>
master
Felix Hanley 8 months ago
committed by GitHub
parent
commit
41c0b5acfb
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions
  1. +2
    -2
      build-dendritejs.sh
  2. +2
    -2
      build.sh

+ 2
- 2
build-dendritejs.sh View File

@ -1,4 +1,4 @@
#!/bin/bash -eu
#!/bin/sh -eu
export GIT_COMMIT=$(git rev-list -1 HEAD) && \
GOOS=js GOARCH=wasm go build -ldflags "-X main.GitCommit=$GIT_COMMIT" -o main.wasm ./cmd/dendritejs
GOOS=js GOARCH=wasm go build -ldflags "-X main.GitCommit=$GIT_COMMIT" -o main.wasm ./cmd/dendritejs

+ 2
- 2
build.sh View File

@ -1,4 +1,4 @@
#!/bin/bash -eu
#!/bin/sh -eu
# Put installed packages into ./bin
export GOBIN=$PWD/`dirname $0`/bin
@ -7,7 +7,7 @@ if [ -d ".git" ]
then
export BUILD=`git rev-parse --short HEAD || ""`
export BRANCH=`(git symbolic-ref --short HEAD | tr -d \/ ) || ""`
if [[ $BRANCH == "master" ]]
if [ "$BRANCH" = master ]
then
export BRANCH=""
fi


Loading…
Cancel
Save