File tree 2 files changed +8
-4
lines changed
2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -81,11 +81,13 @@ function _rename_built_xpi() {
81
81
function bundle_production_webextension() {
82
82
local version && version=$( browsh_version)
83
83
local base=' https://github.com/browsh-org/browsh/releases/download'
84
- local release_url=" $base /v$version /browsh-$version -an.fx .xpi"
84
+ local release_url=" $base /v$version /browsh-$version .xpi"
85
85
echo " Downloading webextension from: $release_url "
86
- local size && size=$( wc -c < " $XPI_PATH " )
87
86
curl -L -o " $XPI_PATH " " $release_url "
87
+ local size && size=$( wc -c < " $XPI_PATH " )
88
88
if [ " $size " -lt 500 ]; then
89
+ echo " XPI size seems too small: $size "
89
90
_panic " Problem downloading latest webextension XPI"
90
91
fi
92
+ cp -a " $XPI_PATH " " $( versioned_xpi_file) "
91
93
}
Original file line number Diff line number Diff line change @@ -53,10 +53,12 @@ function install_golang() {
53
53
[ " $GOROOT " = " " ] && _panic " GOROOT not set"
54
54
GOARCH=$( uname -m)
55
55
[[ $GOARCH == aarch64 ]] && GOARCH=arm64
56
- echo " Installing Golang v$version ... to $GOROOT "
56
+ [[ $GOARCH == x86_64 ]] && GOARCH=amd64
57
+ url=https://dl.google.com/go/go" $version " .linux-" $GOARCH " .tar.gz
58
+ echo " Installing Golang ($url )... to $GOROOT "
57
59
curl -L \
58
60
-o go.tar.gz \
59
- https://dl.google.com/go/go " $version " .linux- " $GOARCH " .tar.gz
61
+ " $url "
60
62
mkdir -p " $GOPATH " /bin
61
63
mkdir -p " $GOROOT "
62
64
tar -C " $GOROOT /.." -xzf go.tar.gz
You can’t perform that action at this time.
0 commit comments