-
Notifications
You must be signed in to change notification settings - Fork 7
/
build.xml
35 lines (28 loc) · 1.48 KB
/
build.xml
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
<project name="ydn-crm" basedir="." default="crx">
<dirname property="ydn-crm.dir" file="${ant.file.ydn-crm}"/>
<property name="home.dir" location="${user.home}"/>
<target name="crx" description="prepare crx folder">
<sequential>
<delete file="extension.zip"/>
<zip basedir="${ydn-crm.dir}" destfile="extension.zip"
includes="manifest.json,*.html,css/*,lib/*.js,jsc/*,image/**,js/**,_locales/**">
</zip>
</sequential>
</target>
<target name="crx-firefox" description="prepare crx folder for firefox extension">
<sequential>
<replace file="manifest.json">
<replacetoken><![CDATA["https://mail.google.com/*", "https://www.yathit.com/*", "https://mail-attachment.googleusercontent.com/*"]]></replacetoken>
<replacevalue><![CDATA["<all_urls>"]]></replacevalue>
</replace>
<delete file="extension-firefox.zip"/>
<zip basedir="${ydn-crm.dir}" destfile="extension-firefox.zip"
includes="manifest.json,*.html,css/*,lib/*.js,jsc/*,image/**,js/**,_locales/**">
</zip>
<replace file="manifest.json">
<replacetoken><![CDATA["<all_urls>"]]></replacetoken>
<replacevalue><![CDATA["https://mail.google.com/*", "https://www.yathit.com/*", "https://mail-attachment.googleusercontent.com/*"]]></replacevalue>
</replace>
</sequential>
</target>
</project>