-
Notifications
You must be signed in to change notification settings - Fork 4
/
chef_cookbooks_letv_recipes_default.rb
82 lines (65 loc) · 1.81 KB
/
chef_cookbooks_letv_recipes_default.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
# coding: utf-8
# recipe[letv::default]
path = "/my_computer/C/Program_Files/letv"
# file = 乐视 英雄本色 喋血双雄 监狱风云 刀马旦 头文字D 张靓颖纪录片, 功夫梦 保持通话
directory "#{path}" do
# action :create
owner "#{node[:user][:name]}"
group "#{node[:user][:group]}"
mode '0755'
end
file "#{path}/letv.webloc" do
# action :create
mode '0644'
owner "#{node[:user][:name]}"
group "#{node[:user][:group]}"
content <<-EOF
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>URL</key>
<string>http://live.le.com/lunbo</string>
</dict>
</plist>
EOF
end
link "#{path}/Uninstall.exe" do
# link_type :symbolic
to '/Applications/Safari.app'
end
link "#{path}/letv.exe" do
# link_type :symbolic
to '/Applications/在线视频播放器/在线视频播放器.app'
# http://bbs.feng.com/read-htm-tid-10428717.html#Mac版在线视频播放器,拒绝flash,清爽看直播,观大片
only_if { ::File.exists?("/Applications/在线视频播放器/在线视频播放器.app") }
end
#
aContent = <<aEOF
aContent
#11
乐视电影台
http://live.le.com/lunbo/play/index.shtml?channel=230
#12
乐视电影2台
http://live.le.com/lunbo/play/index.shtml?channel=224
(保持通话)
#13
乐视电影3台 日韩院线
http://live.le.com/lunbo/play/index.shtml?channel=762
#14
乐视电影4台 深夜好莱坞
http://live.le.com/lunbo/play/index.shtml?channel=760
#15
乐视电影5台 凤凰卫视电影台
http://live.le.com/lunbo/play/index.shtml?channel=352
more
https://www.douban.com/doulist/44412233/
aEOF
file "#{path}/Readme.txt" do
# action :create
mode '0444'
owner "#{node[:user][:name]}"
group "#{node[:user][:group]}"
content aContent
end