File tree Expand file tree Collapse file tree 2 files changed +17
-3
lines changed
src/github.com/getlantern/flashlight/ui Expand file tree Collapse file tree 2 files changed +17
-3
lines changed Original file line number Diff line number Diff line change @@ -318,6 +318,16 @@ package-darwin: require-version require-appdmg require-svgexport darwin
318
318
echo " -> Skipped: Can not generate a package on a non-OSX host." ; \
319
319
fi ;
320
320
321
+ manoto :
322
+ @echo " Replacing URL_TOKEN with manoto"
323
+ perl -pi -e " s/URL_TOKEN/https:\/\/www.facebook.com\/manototv/" src/github.com/getlantern/flashlight/ui/ui.go
324
+
325
+ unmanoto :
326
+ @echo " Replacing manoto url with URL_TOKEN"
327
+ perl -pi -e " s/https:\/\/www.facebook.com\/manototv/URL_TOKEN/" src/github.com/getlantern/flashlight/ui/ui.go
328
+
329
+ manoto-binaries : manoto binaries unmanoto
330
+
321
331
binaries : docker genassets linux windows darwin
322
332
323
333
packages : require-version require-secrets clean genconfig binaries package-windows package-linux package-darwin
Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ import (
17
17
18
18
const (
19
19
LocalUIDir = "../../../lantern-ui/app"
20
+ URL_CONST = "URL_TOKEN"
20
21
)
21
22
22
23
var (
28
29
server * http.Server
29
30
uiaddr string
30
31
31
- r = http .NewServeMux ()
32
+ externalUrl = URL_CONST
33
+ r = http .NewServeMux ()
32
34
)
33
35
34
36
func init () {
@@ -96,7 +98,9 @@ func Show() {
96
98
return
97
99
}
98
100
open .Run (uiaddr )
99
- time .Sleep (4 * time .Second )
100
- open .Run ("https://www.facebook.com/manototv" )
101
+ if externalUrl != URL_CONST {
102
+ time .Sleep (4 * time .Second )
103
+ open .Run (externalUrl )
104
+ }
101
105
}()
102
106
}
You can’t perform that action at this time.
0 commit comments