dotnet-installer/packaging/osx/scripts/postinstall

33 lines
1.2 KiB
Text
Raw Normal View History

2015-10-23 18:10:47 +00:00
#!/bin/sh
#
# Copyright (c) .NET Foundation and contributors. All rights reserved.
# Licensed under the MIT license. See LICENSE file in the project root for full license information.
#
2015-10-23 18:10:47 +00:00
2015-12-16 04:35:21 +00:00
PACKAGE=$1
INSTALL_DESTINATION=$2
# A temporary fix for the permissions issue(s)
2015-12-16 04:35:21 +00:00
chmod -R 755 $INSTALL_DESTINATION
2015-12-16 04:35:21 +00:00
ln -s $INSTALL_DESTINATION/bin/dotnet /usr/local/bin/
ln -s $INSTALL_DESTINATION/bin/dotnet-compile /usr/local/bin/
ln -s $INSTALL_DESTINATION/bin/dotnet-build /usr/local/bin/
2015-12-16 04:35:21 +00:00
ln -s $INSTALL_DESTINATION/bin/dotnet-compile-csc /usr/local/bin/
ln -s $INSTALL_DESTINATION/bin/dotnet-compile-fsc /usr/local/bin/
2015-12-16 04:35:21 +00:00
ln -s $INSTALL_DESTINATION/bin/dotnet-new /usr/local/bin/
ln -s $INSTALL_DESTINATION/bin/dotnet-pack /usr/local/bin/
ln -s $INSTALL_DESTINATION/bin/dotnet-publish /usr/local/bin/
ln -s $INSTALL_DESTINATION/bin/dotnet-repl /usr/local/bin/
ln -s $INSTALL_DESTINATION/bin/dotnet-restore /usr/local/bin/
ln -s $INSTALL_DESTINATION/bin/dotnet-resgen /usr/local/bin/
ln -s $INSTALL_DESTINATION/bin/dotnet-run /usr/local/bin/
ln -s $INSTALL_DESTINATION/bin/dotnet-test /usr/local/bin/
2015-10-23 18:10:47 +00:00
# A temporary solution to unblock dotnet compile
2015-12-16 04:35:21 +00:00
cp $INSTALL_DESTINATION/bin/corehost /usr/local/bin/
2015-10-23 18:10:47 +00:00
exit 0