Skip to content

Commit

Permalink
Removed big resources.go from Git
Browse files Browse the repository at this point in the history
  • Loading branch information
oxtoacart committed Feb 20, 2015
1 parent 28da6d6 commit 08bc91d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
2 changes: 2 additions & 0 deletions crosscompile.bash
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/bin/bash

./genassets.bash

# The VERSION is set to the tag for the current commit (if it exists) otherwise
# just the commit id.
VERSION="`git describe --abbrev=0 --tags --exact-match || git rev-parse --short HEAD`"
Expand Down
8 changes: 7 additions & 1 deletion genassets.bash
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
#!/bin/bash

tarfs -pkg ui src/github.com/getlantern/ui/app > src/github.com/getlantern/flashlight/ui/resources.go
echo "Generating UI resources for embedding"

go install github.com/getlantern/tarfs/tarfs
dest="src/github.com/getlantern/flashlight/ui/resources.go"
echo "// +build prod" > $dest
echo " " >> $dest
tarfs -pkg ui src/github.com/getlantern/ui/app >> $dest
1 change: 1 addition & 0 deletions src/github.com/getlantern/flashlight/ui/resources_stub.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// +build !prod

package ui

var Resources = []byte{}

0 comments on commit 08bc91d

Please sign in to comment.