forked from microsoft/google-play-vsts-extension
-
Notifications
You must be signed in to change notification settings - Fork 0
/
makevsix.sh
executable file
·34 lines (28 loc) · 1.33 KB
/
makevsix.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
#!/bin/bash
echo ""
echo "Copyright (c) Microsoft. All rights reserved."
echo "Licensed under the MIT license. See LICENSE file in the project root for full license information."
echo ""
if ! npm --version > /dev/null ; then
echo "npm not found. please install npm and run again."
return 1;
fi
if ! tfx --version > /dev/null ; then
echo "tfx-cli not found. installing..."
npm install -g tfx-cli
fi
echo "Installing Dependencies..."
npm install --only=prod
node bin/tfxupload.js --installonly
if [ $1 == "create" ] ; then
echo "Creating VSIX..."
tfx extension create --manifest-globs vsts-extension-google-play.json --override '{ "public": true }'
fi
if [ $1 == "createtest" ] ; then
echo "Creating Test VSIX..."
tfx extension create --manifest-globs vsts-extension-google-play.json --override '{ "public": "false", "name": "Google Play-Dev", "id": "vso-extension-android-dev", "publisher": "ms-mobiledevops-test"}' --share-with mobiledevops x04ty29er --token $PUBLISH_ACCESSTOKEN
fi
if [ $1 == "publishtest" ] ; then
echo "Creating and publishing test VSIX..."
tfx extension publish --manifest-globs vsts-extension-google-play.json --override '{ "public": "false", "name": "Google Play-Dev", "id": "vso-extension-android-dev", "publisher": "ms-mobiledevops-test"}' --share-with mobiledevops x04ty29er --token $PUBLISH_ACCESSTOKEN
fi