Merge pull request #248 from blackdwarf/pkgosxfix
Add correct permissions and symlinks to PKG generation
This commit is contained in:
commit
f3dc62516a
2 changed files with 8 additions and 7 deletions
|
@ -41,6 +41,7 @@ PACKAGE_NAME=$PACKAGE_DIR/dotnet-cli-x64.${DOTNET_BUILD_VERSION}.pkg
|
||||||
pkgbuild --root $STAGE2_DIR \
|
pkgbuild --root $STAGE2_DIR \
|
||||||
--version $DOTNET_BUILD_VERSION \
|
--version $DOTNET_BUILD_VERSION \
|
||||||
--scripts $DIR/scripts \
|
--scripts $DIR/scripts \
|
||||||
|
--ownership preserve \
|
||||||
--identifier com.microsoft.dotnet.cli.pkg.dotnet-osx-x64 \
|
--identifier com.microsoft.dotnet.cli.pkg.dotnet-osx-x64 \
|
||||||
--install-location /usr/local/share/dotnet/cli \
|
--install-location /usr/local/share/dotnet/cli \
|
||||||
$DIR/dotnet-osx-x64.$DOTNET_BUILD_VERSION.pkg
|
$DIR/dotnet-osx-x64.$DOTNET_BUILD_VERSION.pkg
|
||||||
|
|
|
@ -4,12 +4,12 @@
|
||||||
# Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
# 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/bin/dotnet /usr/local/bin/
|
||||||
ln -s $2/dotnet-compile /usr/local/bin/
|
ln -s $2/bin/dotnet-compile /usr/local/bin/
|
||||||
ln -s $2/dotnet-compile-csc /usr/local/bin/
|
ln -s $2/bin/dotnet-compile-csc /usr/local/bin/
|
||||||
ln -s $2/dotnet-publish /usr/local/bin/
|
ln -s $2/bin/dotnet-publish /usr/local/bin/
|
||||||
ln -s $2/dotnet-restore /usr/local/bin/
|
ln -s $2/bin/dotnet-restore /usr/local/bin/
|
||||||
ln -s $2/dotnet-restore /usr/local/bin/
|
ln -s $2/bin/dotnet-restore /usr/local/bin/
|
||||||
ln -s $2/resgen /usr/local/bin/
|
ln -s $2/bin/resgen /usr/local/bin/
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
|
Loading…
Add table
Reference in a new issue