-
Notifications
You must be signed in to change notification settings - Fork 5
/
Rakefile
42 lines (34 loc) · 807 Bytes
/
Rakefile
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
require 'crxmake'
require 'rake/clean'
CRX_NAME = "markdown-linker"
CLOBBER << FileList["**/*.zip", "**/*.crx"]
#desc 'create crx and zip'
task :make do
# create crx
CrxMake.make(
ex_dir: "./src",
pkey: "./src.pem",
crx_output: "./package/#{CRX_NAME}.crx",
verbose: true,
ignorefile: /\.swp/,
ignoredir: /\.(?:svn|git|cvs)/
)
# create zip for Google Extension Gallery
CrxMake.zip(
ex_dir: "./src",
pkey: "./src.pem",
zip_output: "./package/#{CRX_NAME}.zip",
verbose: true,
ignorefile: /\.swp/,
ignoredir: /\.(?:svn|git|cvs)/
)
end
desc 'open crx with browther'
task :open do
`open ./package/#{CRX_NAME}.crx`
end
desc 'clobber & make'
task build: [:clobber, :make]
desc 'build & open'
task install: [:build, :open]
#task default: [:crxmake]