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
This commit is contained in:
parent
a0761f2c09
commit
f0f773f92c
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 \
|
||||
--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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue