summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Buckley-Houston <tom@tombh.co.uk>2018-06-10 23:13:30 +0800
committerThomas Buckley-Houston <tom@tombh.co.uk>2018-06-11 14:11:45 +0800
commit47bcbbc0a68a12e5dd11f0ac9c1b5db3a21a4d78 (patch)
tree8e29392f704a63b575dd830536178324c5d54a49
parent0109fa206e047b339ceaefe35d10e9d85fdd13a1 (diff)
Version 1.0.5v1.0.5
Adjust path in .goreleaser.yml Boot Firefox before any tests to get any 'first launch' behaviour out of the way. Remove pacman build as we're using nfpm instead of fpm now.
-rw-r--r--interfacer/src/.goreleaser.yml3
-rw-r--r--interfacer/src/browsh/comms.go5
-rw-r--r--interfacer/src/browsh/firefox.go1
-rw-r--r--webext/manifest.json2
4 files changed, 7 insertions, 4 deletions
diff --git a/interfacer/src/.goreleaser.yml b/interfacer/src/.goreleaser.yml
index 23fd114..27d9bb2 100644
--- a/interfacer/src/.goreleaser.yml
+++ b/interfacer/src/.goreleaser.yml
@@ -11,7 +11,7 @@ builds:
- amd64
ldflags: -s -w
hooks:
- post: ./contrib/upx_compress_binary.sh
+ post: ../contrib/upx_compress_binary.sh
archive:
format: binary
@@ -25,7 +25,6 @@ nfpm:
formats:
- deb
- rpm
- - pacman
dependencies:
- firefox
diff --git a/interfacer/src/browsh/comms.go b/interfacer/src/browsh/comms.go
index e2dc075..efc8fd3 100644
--- a/interfacer/src/browsh/comms.go
+++ b/interfacer/src/browsh/comms.go
@@ -144,4 +144,9 @@ func webSocketServer(w http.ResponseWriter, r *http.Request) {
} else {
sendTtySize()
}
+ if IsTesting {
+ // For some reason, using Firefox's CLI arg `--url https://google.com` doesn't consistently
+ // work on Travis. So we do it here inse
+ sendMessageToWebExtension("/new_tab," + *StartupURL)
+ }
}
diff --git a/interfacer/src/browsh/firefox.go b/interfacer/src/browsh/firefox.go
index 8cac47f..84a7890 100644
--- a/interfacer/src/browsh/firefox.go
+++ b/interfacer/src/browsh/firefox.go
@@ -108,7 +108,6 @@ func startWERFirefox() {
"--firefox=" + rootDir + "/webext/contrib/firefoxheadless.sh",
"--verbose",
"--no-reload",
- "--url=" + *StartupURL,
}
firefoxProcess := exec.Command(rootDir + "/webext/node_modules/.bin/web-ext", args...)
firefoxProcess.Dir = rootDir + "/webext/dist/"
diff --git a/webext/manifest.json b/webext/manifest.json
index 5e62d56..d72d0f5 100644
--- a/webext/manifest.json
+++ b/webext/manifest.json
@@ -1,7 +1,7 @@
{
"manifest_version": 2,
"name": "Browsh",
- "version": "1.0.3",
+ "version": "1.0.5",
"description": "Renders the browser as realtime, interactive, TTY-compatible text",