Skip to content

Commit 96af716

Browse files
committed
update.sh: don't assume we're running OS X
1 parent 88daf49 commit 96af716

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

playground/update.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ cp -r $GOPHERJSGOPATH/src/github.com/gopherjs/gopherjs/* $GOPATH/src/github.com/
2222

2323
gopherjs install -m github.com/gopherjs/gopherjs/js github.com/gopherjs/gopherjs/nosync
2424
mkdir -p $PKG/github.com/gopherjs/gopherjs
25-
cp $GOPATH/pkg/darwin_js_min/github.com/gopherjs/gopherjs/js.a $PKG/github.com/gopherjs/gopherjs/js.a
26-
cp $GOPATH/pkg/darwin_js_min/github.com/gopherjs/gopherjs/nosync.a $PKG/github.com/gopherjs/gopherjs/nosync.a
25+
cp $GOPATH/pkg/*_js_min/github.com/gopherjs/gopherjs/js.a $PKG/github.com/gopherjs/gopherjs/js.a
26+
cp $GOPATH/pkg/*_js_min/github.com/gopherjs/gopherjs/nosync.a $PKG/github.com/gopherjs/gopherjs/nosync.a
2727

2828
# Make a copy of GOROOT that is user-writeable,
2929
# use it to build and copy out standard library packages.
@@ -128,8 +128,8 @@ gopherjs install -m \
128128
unicode/utf16 \
129129
unicode/utf8
130130

131-
cp -r $GOROOT/pkg/darwin_js_min/* $PKG
132-
cp -r $GOROOT/pkg/darwin_amd64_js_min/* $PKG
131+
cp -r $GOROOT/pkg/*_js_min/* $PKG
132+
cp -r $GOROOT/pkg/*_amd64_js_min/* $PKG
133133

134134
rm -r /tmp/gopherjsplayground_goroot
135135
rm -r /tmp/gopherjsplayground_gopath

0 commit comments

Comments
 (0)