dotnet-installer/packaging/osx/scripts/postinstall
Zlatko Knezevic f0f773f92c Add correct permissions and symlinks to PKG generation
Add proper symlinks to the postinstall script. Also, the permissions of the
resulting directory post-install were wrong (set to root:wheel). This is fixed
by using the --ownership preserve switch to pkgbuild.

Fix #247
2015-11-18 12:59:03 -08:00

15 lines
491 B
Bash
Executable file

#!/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.
#
ln -s $2/bin/dotnet /usr/local/bin/
ln -s $2/bin/dotnet-compile /usr/local/bin/
ln -s $2/bin/dotnet-compile-csc /usr/local/bin/
ln -s $2/bin/dotnet-publish /usr/local/bin/
ln -s $2/bin/dotnet-restore /usr/local/bin/
ln -s $2/bin/dotnet-restore /usr/local/bin/
ln -s $2/bin/resgen /usr/local/bin/
exit 0