Skip to content

Commit

Permalink
macos: run install as user
Browse files Browse the repository at this point in the history
  • Loading branch information
paulrouget committed Oct 6, 2023
1 parent 4bafb25 commit fe102ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ if [ ! $skip_packaging == 1 ]; then
chmod +x $macos_dir/register.sh

echo '#!/bin/bash' > $scripts_dir/postinstall
echo "\$DSTROOT/$meta_id.app/Contents/MacOS/register.sh" >> $scripts_dir/postinstall
echo "su \"\$USER\" -c \$DSTROOT/$meta_id.app/Contents/MacOS/register.sh" >> $scripts_dir/postinstall
chmod +x $scripts_dir/postinstall

ejs -f $target_dist_dir/config.json ./assets/mac/pkg-distribution.xml.ejs > $target_dist_dir/pkg-distribution.xml
Expand Down

0 comments on commit fe102ff

Please sign in to comment.