Skip to content

Commit

Permalink
Merge branch 'master' into vim-mode-2022
Browse files Browse the repository at this point in the history
  • Loading branch information
tombh committed Feb 2, 2023
2 parents 889263a + d32ae0b commit a075246
Show file tree
Hide file tree
Showing 8 changed files with 1,088 additions and 1,049 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: Lint
on: [push]
on: [push, pull_request]

jobs:
lint:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: Test-Release
on: [push]
on: [push, pull_request]

jobs:
tests:
Expand Down
9 changes: 2 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ RUN install_packages \
bzip2

# Helper scripts
RUN mkdir /build
WORKDIR /build
ADD .git .git
ADD .github .github
Expand All @@ -34,10 +33,6 @@ WORKDIR $BASE
RUN /build/ctl.sh install_golang $BASE
RUN /build/ctl.sh build_browsh_binary $BASE

# Install firefox
RUN /build/ctl.sh install_firefox


###########################
# Actual final Docker image
###########################
Expand All @@ -47,7 +42,6 @@ ENV HOME=/app
WORKDIR $HOME

COPY --from=build /go-home/src/browsh/interfacer/browsh /app/bin/browsh
COPY --from=build /tmp/firefox /app/bin/firefox

RUN install_packages \
xvfb \
Expand All @@ -57,7 +51,8 @@ RUN install_packages \
libdbus-glib-1-2 \
procps \
libasound2 \
libxtst6
libxtst6 \
firefox-esr

# Block ads, etc. This includes porn just because this image is also used on the
# public SSH demo: `ssh brow.sh`.
Expand Down
2 changes: 1 addition & 1 deletion interfacer/src/browsh/version.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
package browsh

var browshVersion = "1.8.0"
var browshVersion = "1.8.2"
6 changes: 4 additions & 2 deletions scripts/bundling.bash
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,13 @@ function _rename_built_xpi() {
function bundle_production_webextension() {
local version && version=$(browsh_version)
local base='https://github.com/browsh-org/browsh/releases/download'
local release_url="$base/v$version/browsh-$version-an.fx.xpi"
local release_url="$base/v$version/browsh-$version.xpi"
echo "Downloading webextension from: $release_url"
local size && size=$(wc -c <"$XPI_PATH")
curl -L -o "$XPI_PATH" "$release_url"
local size && size=$(wc -c <"$XPI_PATH")
if [ "$size" -lt 500 ]; then
echo "XPI size seems too small: $size"
_panic "Problem downloading latest webextension XPI"
fi
cp -a "$XPI_PATH" "$(versioned_xpi_file)"
}
8 changes: 6 additions & 2 deletions scripts/misc.bash
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,14 @@ function install_golang() {
local version && version=$(parse_golang_version_from_go_mod "$path")
[ "$GOPATH" = "" ] && _panic "GOPATH not set"
[ "$GOROOT" = "" ] && _panic "GOROOT not set"
echo "Installing Golang v$version... to $GOROOT"
GOARCH=$(uname -m)
[[ $GOARCH == aarch64 ]] && GOARCH=arm64
[[ $GOARCH == x86_64 ]] && GOARCH=amd64
url=https://dl.google.com/go/go"$version".linux-"$GOARCH".tar.gz
echo "Installing Golang ($url)... to $GOROOT"
curl -L \
-o go.tar.gz \
https://dl.google.com/go/go"$version".linux-amd64.tar.gz
"$url"
mkdir -p "$GOPATH"/bin
mkdir -p "$GOROOT"
tar -C "$GOROOT/.." -xzf go.tar.gz
Expand Down
Loading

0 comments on commit a075246

Please sign in to comment.