-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathpackage.sh
37 lines (26 loc) · 875 Bytes
/
package.sh
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
#!/bin/bash
echo '******************************************************'
echo '* Component Build Script *'
echo '******************************************************'
echo ''
echo 'Deleting old Component Tools...'
rm -rf ./tools/
mkdir ./tools/
cd ./tools/
echo 'Downloading latest Component Tools from Xamarin...'
curl -silent -L https://components.xamarin.com/submit/xpkg > tools.zip
echo 'Extracting downloaded Component Tools...'
unzip -q -o tools.zip 2> /dev/null
echo 'Cleaning up...'
rm tools.zip
cd ..
echo ''
echo 'Building Component...'
mono ./tools/xamarin-component.exe package ./
echo ''
echo 'Cleaning up...'
rm -rf ./tools/
echo ''
echo '******************************************************'
echo '* DONE *'
echo '******************************************************'