Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
Browsh
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
为了安全,强烈建议开启2FA双因子认证:User Settings -> Account -> Enable two-factor authentication!!!
Show more breadcrumbs
wenzhuo cao
Browsh
Commits
5829c71a
Commit
5829c71a
authored
6 years ago
by
Thomas Buckley-Houston
Browse files
Options
Downloads
Patches
Plain Diff
Centralise all the Browsh build steps
parent
9abc3aaa
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.travis.yml
+1
-1
1 addition, 1 deletion
.travis.yml
Dockerfile
+0
-7
0 additions, 7 deletions
Dockerfile
interfacer/contrib/build_browsh.sh
+21
-3
21 additions, 3 deletions
interfacer/contrib/build_browsh.sh
with
22 additions
and
11 deletions
.travis.yml
+
1
−
1
View file @
5829c71a
...
...
@@ -22,7 +22,7 @@ env:
-
secure
:
"
boYctu4EQI2og3YWpD54yo1LzibgBNrYN3exbfwxaNNbJuQscprAlOOG5Y1O7MBgzG9AP1DeON3X0al7g/IYMrsMsrSGhJLq9w2/ntwMiUIyKfTAP8rB5fASRSYxA5mqhpjXK4iIzqG2xiOr1SmCbpT9ew0AXP/HgxQprsppBbH+H4HyrP4cejIbfk8ajU/XvrDmhOY4s/IZIy+vfEfZH5xheJnG3iWFICwWUF5CIjjr6fQpq9ZbL2sDMvzruYPMAQ3iDfBrUr+ZhN4PPjrzvCRUNpoUoPsXCsFDPMcZpBjSHH5ZELPRBzHSdJignIjHaV0UtLtFApZl49lzq749r2Sno2ba4JCd0RIgMERjNluXynkJiHrL2tMR8HYhOmoeLMdX0zrguv+136+Jn04gQde3S+FI1/sN0/Xa14xD7SGMUT1MgFnwKgFXOFeUd3VpvbpFg6RWVgpCnaDd2/AKL+mQDEgL4yRg9q95a6Q5ub/c6nla8/E4asEvYGlJPj0OG/MKvJMi0gnKuP4+nil0jgGeKki3k1UxwvldlS+n7HUhQ7c4B9c61KS19i+z5SxBiXjilL+zGlAVVgRcalIoKQrTRDSRKnKZkR5Ant0CLjt44pncHLwlYXD/aPuLNihCa4AqUlpYPYru0pQawXNkVnk6E/cg2DAsp7oDcpcg540="
before_install
:
-
./interfacer/contrib/setup_
go
.sh
-
./interfacer/contrib/setup_
dep
.sh
-
./webext/contrib/setup_node.sh
-
mkdir -p $REPO_ROOT && cp -rfp $TRAVIS_BUILD_DIR -T $REPO_ROOT
install
:
...
...
This diff is collapsed.
Click to expand it.
Dockerfile
+
0
−
7
View file @
5829c71a
...
...
@@ -27,14 +27,7 @@ ENV BASE=$GOPATH/src/browsh/interfacer
WORKDIR
$BASE
ADD
interfacer $BASE
# Install `dep` the current defacto dependency manager for Golang
RUN
$BASE
/contrib/setup_dep.sh
# Install the tool to convert the web extenstion file into a Go-compatible binary
RUN
go get
-u
gopkg.in/shuLhan/go-bindata.v3/...
# Build Browsh
RUN
dep ensure
RUN
$BASE
/contrib/build_browsh.sh
...
...
This diff is collapsed.
Click to expand it.
interfacer/contrib/build_browsh.sh
+
21
−
3
View file @
5829c71a
...
...
@@ -4,27 +4,45 @@
# To build Browsh during development see:
# https://github.com/browsh-org/browsh#contributing
# This script depends on Golang and go-bindata
# `go get -u gopkg.in/shuLhan/go-bindata.v3/...`
# This script depends on Golang, dep and go-bindata
# See; ./setup_dep.sh for an example `dep` installation
# `go-bindata` can be easily installed with:
# `go get -u gopkg.in/shuLhan/go-bindata.v3/...`
# `dep esnure` must be run in `interfacer/`
set
-e
INTERFACER_ROOT
=
$(
readlink
-m
"
$(
cd
"
$(
dirname
"
$0
"
)
"
;
pwd
-P
)
"
/../
)
cd
$INTERFACER_ROOT
# Install `dep` the current defacto dependency manager for Golang
./contrib/setup_dep.sh
# Install the tool to convert the web extenstion file into a Go-compatible binary
go get
-u
gopkg.in/shuLhan/go-bindata.v3/...
# Install Golang dependencies
dep ensure
# Get the current Browsh version, in order to find the corresponding web extension release
version_file
=
$INTERFACER_ROOT
/src/browsh/version.go
line
=
$(
cat
$version_file
|
grep
'browshVersion'
)
version
=
$(
echo
$line
|
grep
-o
'".*"'
|
sed
's/"//g'
)
# Build the URI for the webextension file
base
=
'https://github.com/browsh-org/browsh/releases/download'
release_url
=
"
$base
/v
$version
/browsh-
${
version
}
-an.fx.xpi"
xpi_file
=
$INTERFACER_ROOT
/browsh.xpi
destination
=
$INTERFACER_ROOT
/src/browsh/webextension.go
# Download the web extension
curl
-L
-o
$xpi_file
$release_url
# Convert the web extension into binary data that can be compiled into a
# cross-platform Go binary.
XPI_FILE
=
$xpi_file
BIN_FILE
=
$destination
\
$INTERFACER_ROOT
/contrib/xpi2bin.sh
cd
$INTERFACER_ROOT
# The actual build iteself
go build
-o
browsh src/main.go
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment