Merge pull request #248 from blackdwarf/pkgosxfix

Add correct permissions and symlinks to PKG generation
This commit is contained in:
Piotr Puszkiewicz 2015-11-18 16:41:40 -08:00
commit f3dc62516a
2 changed files with 8 additions and 7 deletions

View file

@ -41,6 +41,7 @@ PACKAGE_NAME=$PACKAGE_DIR/dotnet-cli-x64.${DOTNET_BUILD_VERSION}.pkg
pkgbuild --root $STAGE2_DIR \
--version $DOTNET_BUILD_VERSION \
--scripts $DIR/scripts \
--ownership preserve \
--identifier com.microsoft.dotnet.cli.pkg.dotnet-osx-x64 \
--install-location /usr/local/share/dotnet/cli \
$DIR/dotnet-osx-x64.$DOTNET_BUILD_VERSION.pkg

View file

@ -4,12 +4,12 @@
# Licensed under the MIT license. See LICENSE file in the project root for full license information.
#
ln -s $2/dotnet /usr/local/bin/
ln -s $2/dotnet-compile /usr/local/bin/
ln -s $2/dotnet-compile-csc /usr/local/bin/
ln -s $2/dotnet-publish /usr/local/bin/
ln -s $2/dotnet-restore /usr/local/bin/
ln -s $2/dotnet-restore /usr/local/bin/
ln -s $2/resgen /usr/local/bin/
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