-
Notifications
You must be signed in to change notification settings - Fork 0
/
pack.sh
executable file
·35 lines (25 loc) · 1.05 KB
/
pack.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
#!/bin/sh
SCRIPTFILE=$0
#Get the absolute path to the containing folder
PROJECTFOLDER=${SCRIPTFILE%/*}
cd ${PROJECTFOLDER}
pwd
PROJECTFOLDER=$(pwd)
rm *.mpack
# Pack
#mono /Applications/Visual\ Studio\ \(2019\).app/Contents/Resources/lib/monodevelop/bin/vstool.exe setup pack ./VisualStudioMac.OneClickToOpenFile/bin/VisualStudioMac.OneClickToOpenFile.dll
/Applications/Visual\ Studio\ \(Preview\).app/Contents/MacOS/vstool setup pack /Users/ivokrugers/Xamarin_Projects/VisualStudioMac.OneClickToOpenFile/VisualStudioMac.OneClickToOpenFile/bin/VisualStudioMac.OneClickToOpenFile.dll
# Copy to local dir
for filename in /Applications/Visual\ Studio\ \(Preview\).app/*OneClickToOpenFile*.mpack;
do
echo "move $filename"
mv "$filename" .
done
# Uninstall
/Applications/Visual\ Studio\ \(Preview\).app/Contents/MacOS/vstool setup uninstall VisualStudioMac.OneClickToOpenFile -y
# # Install
# for filename in *.mpack;
# do
# echo "$filename"
# /Applications/Visual\ Studio\ \(Preview\).app/Contents/MacOS/vstool setup install "$PROJECTFOLDER/$filename"
# done