Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
chromebrew
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
chromebrew
Commits
d767cf82
Commit
d767cf82
authored
Nov 18, 2014
by
Jake Waksbaum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
powerline as binary
parent
b23e3fa6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
27 deletions
+12
-27
packages/powerline_fonts.rb
packages/powerline_fonts.rb
+12
-27
No files found.
packages/powerline_fonts.rb
View file @
d767cf82
...
...
@@ -2,33 +2,18 @@ require 'package'
class
Powerline_fonts
<
Package
version
'1'
source_url
'https://github.com/Lokaltog/powerline-fonts/tarball/master'
source_sha1
'126437bd40b41bfef1e6e0b9b81c1cf0ff2bbb4f'
binary_url
({
i686:
"https://www.dropbox.com/s/lkrnw3hu7yb88vt/powerline_fonts.tar.gz?dl=0"
,
x86_64:
"https://www.dropbox.com/s/lkrnw3hu7yb88vt/powerline_fonts.tar.gz?dl=0"
})
binary_sha1
({
i686:
"c5bcd35c94feed9cb48bb821c2d08f3ddc36dc64"
,
x86_64:
"c5bcd35c94feed9cb48bb821c2d08f3ddc36dc64"
})
def
self
.
install
fonts
=
"
#{
CREW_DEST_DIR
}
/usr/local/share/fonts"
FileUtils
.
mkdir_p
(
fonts
)
Dir
.
glob
(
'*'
).
each
do
|
f
|
FileUtils
.
mv
(
f
,
fonts
)
unless
[
"README.rst"
,
"install.sh"
].
include?
f
end
home
=
"
#{
CREW_DEST_DIR
}
/home/chronos/user"
FileUtils
.
mkdir_p
(
home
)
FileUtils
.
cd
(
home
)
do
File
.
open
(
'.font.conf'
,
'w'
)
do
|
f
|
f
.
puts
"<?xml version=
\"
1.0
\"
?>"
f
.
puts
"<!DOCTYPE fontconfig SYSTEM
\"
fonts.dtd
\"
>"
f
.
puts
"<fontconfig>"
f
.
puts
"
\t
<dir>/usr/local/share/fonts</dir>"
f
.
puts
"</fontconfig>"
end
end
puts
"
\n
Fonts will be available after restart or chrome:inducebrowsercrashforrealz"
puts
"To change the font in crosh, enable developer tools in extensions and execute:"
puts
"
\t
term_.prefs_.set(
\"
font-family
\"
,
\"
DejaVu Sans Mono for Powerline
\"
)"
puts
"in the Javascript Console to change the font to DejaVu Sans Mono, for example
\n\n
"
puts
"
\n
Fonts will be available after restart or chrome:inducebrowsercrashforrealz"
puts
"To change the font in crosh, enable developer tools in extensions and execute:"
puts
"
\t
term_.prefs_.set(
\"
font-family
\"
,
\"
DejaVu Sans Mono for Powerline
\"
)"
puts
"in the Javascript Console to change the font to DejaVu Sans Mono, for example
\n\n
"
end
end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment