Skip to content

Commit cb1e397

Browse files
committed
Update dpf, fix get script to work under macOS
Signed-off-by: falkTX <[email protected]>
1 parent ab2b7ad commit cb1e397

File tree

2 files changed

+20
-3
lines changed

2 files changed

+20
-3
lines changed

dpf/utils/package-osx-bundles.sh

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,5 +158,22 @@ productbuild \
158158
"${PKG_SIGN_ARGS[@]}" \
159159
${MACOS_PKG_SNAME}-macOS.pkg
160160

161-
# xcrun notarytool submit build/*-macOS.pkg --keychain-profile "build-notary" --wait
162-
# xcrun notarytool log --keychain-profile "build-notary" 00000000-0000-0000-0000-000000000000
161+
if [ -n "${MACOS_NOTARIZATION_USER}" ] && [ -n "${MACOS_NOTARIZATION_PASS}" ] && [ -n "${MACOS_NOTARIZATION_TEAM}" ]; then
162+
# Notarize using credentials
163+
xcrun notarytool submit ${MACOS_PKG_SNAME}-macOS.pkg \
164+
--apple-id ${MACOS_NOTARIZATION_USER} \
165+
--password ${MACOS_NOTARIZATION_PASS} \
166+
--team-id ${MACOS_NOTARIZATION_TEAM} \
167+
--wait
168+
xcrun stapler staple ${MACOS_PKG_SNAME}-macOS.pkg
169+
elif [ -n "${MACOS_KEYCHAIN_PROFILE}" ]; then
170+
# Notarize using keychain profile
171+
xcrun notarytool submit ${MACOS_PKG_SNAME}-macOS.pkg \
172+
--keychain-profile ${MACOS_KEYCHAIN_PROFILE} \
173+
--wait
174+
xcrun stapler staple ${MACOS_PKG_SNAME}-macOS.pkg
175+
fi
176+
177+
# To get logs of your notarization note the notarization id (of the form `00000000-0000-0000-0000-000000000000`)
178+
# and use either your credentials or keychain profile:
179+
# xcrun notarytool log --keychain-profile ${MACOS_KEYCHAIN_PROFILE} ${NOTARIZATION_ID}

get-plugins.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ rm -f dpf/distrho/extra/Runner.hpp
6868
rm -f dpf/distrho/extra/Time.hpp
6969
rm -f dpf/distrho/extra/WebView*
7070

71-
sed -i '/ $(BUILD_DIR)\/dgl\/Layout.cpp.o \\/d' dpf/dgl/Makefile
71+
sed -i -e '/ $(BUILD_DIR)\/dgl\/Layout.cpp.o \\/d' dpf/dgl/Makefile
7272

7373
for PLUGIN in ${PLUGINS[@]}; do
7474
for f in $(ls repos/${PLUGIN}/plugins/); do

0 commit comments

Comments
 (0)