Skip to content

Commit 45674eb

Browse files
committed
sudoers didn't appear to work...
1 parent dcd2323 commit 45674eb

File tree

1 file changed

+14
-5
lines changed

1 file changed

+14
-5
lines changed

.github/workflows/app_build.yml

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -754,15 +754,24 @@ jobs:
754754
755755
begin_group "Mounting Dmg, and checking signature of installer app"
756756
mkdir temp_mount
757-
sudo hdiutil attach -mountpoint ./temp_mount/ $dmg
757+
if [ "${{ matrix.SELF_HOSTED }}" == "true" ]; then
758+
sudo -S <<< "${{ secrets.MACOS_SELF_HOSTED_PASSWORD }}" hdiutil attach -mountpoint ./temp_mount/ $dmg
759+
else
760+
sudo hdiutil attach -mountpoint ./temp_mount/ $dmg
761+
fi
758762
filename="${dmg%.*}"
759763
spctl --assess --type open --context context:primary-signature -vvvv ./temp_mount/$filename.app
760764
echo "::endgroup::"
761765
762766
begin_group "Installing"
763-
sudo ./temp_mount/$filename.app/Contents/MacOS/$filename --accept-licenses --default-answer --confirm-command --root $(pwd)/test_install install
764-
sudo hdiutil detach ./temp_mount/
765-
echo "::endgroup::"
767+
if [ "${{ matrix.SELF_HOSTED }}" == "true" ]; then
768+
sudo -S <<< "${{ secrets.MACOS_SELF_HOSTED_PASSWORD }}" ./temp_mount/$filename.app/Contents/MacOS/$filename --accept-licenses --default-answer --confirm-command --root $(pwd)/test_install install
769+
sudo -S <<< "${{ secrets.MACOS_SELF_HOSTED_PASSWORD }}" hdiutil detach ./temp_mount/
770+
else
771+
sudo ./temp_mount/$filename.app/Contents/MacOS/$filename --accept-licenses --default-answer --confirm-command --root $(pwd)/test_install install
772+
sudo hdiutil detach ./temp_mount/
773+
fi
774+
echo "::endgroup::"
766775
767776
begin_group "Quick Check signature of inner executables and binaries"
768777
codesign -dvvv ./test_install/lib/libopenstudiolib.dylib
@@ -775,7 +784,7 @@ jobs:
775784
echo "::endgroup::"
776785
777786
begin_group "Full Check signature of installed DMG for all executables and resolve otool libraries"
778-
python ../developer/python/verify_signature.py --otool --otool-out-file otool_info_dmg.json --verbose --install test_install
787+
python ../../checkout/developer/python/verify_signature.py --otool --otool-out-file otool_info_dmg.json --verbose --install test_install
779788
echo "::endgroup::"
780789
781790
begin_group "Running a simulation with python"

0 commit comments

Comments
 (0)