mirror of
https://github.com/spacedriveapp/spacedrive.git
synced 2026-04-19 05:59:16 -04:00
Fix Spacedrive process being Killed during lauch on macOS (#825)
Sign ffmpeg dylibs with macOS local certificate
This commit is contained in:
committed by
GitHub
parent
dda7516980
commit
eed7ad1e10
9
.github/scripts/setup-system.sh
vendored
9
.github/scripts/setup-system.sh
vendored
@@ -312,8 +312,15 @@ elif [ "$SYSNAME" = "Darwin" ]; then
|
||||
sleep 1
|
||||
done
|
||||
|
||||
# Symlink the FFMpeg.framework libs to the lib directory
|
||||
# Sign and Symlink the FFMpeg.framework libs to the lib directory
|
||||
for _lib in "${_frameworks_dir}/FFMpeg.framework/Libraries/"*; do
|
||||
if [ -f "$_lib" ]; then
|
||||
# Sign the lib with the local machine certificate (Required for it to work on macOS 13+)
|
||||
if ! codesign -s - -f "$_lib" 1>/dev/null 2>&1; then
|
||||
err "Failed to sign: ${_lib#"$_frameworks_dir"}" \
|
||||
'Please open an issue on https://github.com/spacedriveapp/spacedrive/issues'
|
||||
fi
|
||||
fi
|
||||
_lib="${_lib#"${_frameworks_dir}/FFMpeg.framework/Libraries/"}"
|
||||
ln -s "../FFMpeg.framework/Libraries/${_lib}" "${_frameworks_dir}/lib/${_lib}"
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user