Skip to content

Commit c9bbc76

Browse files
committed
SemVer 1.0.0 instead of 1.0.0.0 + replaceDomain script
1 parent 7be1549 commit c9bbc76

File tree

2 files changed

+29
-1
lines changed

2 files changed

+29
-1
lines changed

outlook/manifest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
22
<OfficeApp xmlns="http://schemas.microsoft.com/office/appforoffice/1.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:bt="http://schemas.microsoft.com/office/officeappbasictypes/1.0" xmlns:mailappor="http://schemas.microsoft.com/office/mailappversionoverrides/1.0" xsi:type="MailApp">
33
<Id>c5549a21-aefb-4ba8-ae7c-b77bceab4023</Id>
4-
<Version>1.0.0.0</Version>
4+
<Version>1.0.0</Version>
55
<ProviderName>Odoo</ProviderName>
66
<DefaultLocale>en-US</DefaultLocale>
77
<DisplayName DefaultValue="Odoo for Outlook"/>

outlook/replaceDomain.sh

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
#!/bin/bash
2+
3+
helpFunction()
4+
{
5+
echo ""
6+
echo "Usage: $0 -d odoo.com/subdomain"
7+
echo -e "\t-d The domain that will replace localhost:3000 in the manifest.xml and api.js files."
8+
exit 1 # Exit script after printing help
9+
}
10+
11+
while getopts "d:" opt
12+
do
13+
case "$opt" in
14+
d ) parameterD="$OPTARG" ;;
15+
? ) helpFunction ;; # Print helpFunction in case parameter is non-existent
16+
esac
17+
done
18+
19+
# Print helpFunction in case parameters are empty
20+
if [ -z "$parameterD" ]
21+
then
22+
echo "Some or all of the parameters are empty";
23+
helpFunction
24+
fi
25+
26+
escapedD=$(echo "$parameterD" | sed 's/\//\\\//g')
27+
sed -i "s/localhost:3000/$escapedD/" dist/manifest.xml
28+
sed -i "s/localhost:3000/$escapedD/" dist/taskpane.js

0 commit comments

Comments
 (0)