Skip to content

Commit

Permalink
Merge pull request #8 from jdpurcell/pr-legacykraora
Browse files Browse the repository at this point in the history
macOS/Qt5: Fix KRA/ORA
  • Loading branch information
jurplel authored Oct 16, 2024
2 parents 3d38297 + eb02755 commit b576d00
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions pwsh/buildkimageformats.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -121,12 +121,14 @@ if ($IsMacOS -and $env:buildArch -eq 'Universal') {

# Fix linking on macOS
if ($IsMacOS) {
install_name_tool -change /Users/runner/work/kimageformats-binaries/kimageformats-binaries/kimageformats/karchive/installed//libKF5Archive.5.dylib @rpath/libKF5Archive.5.dylib output/kimg_kra.so
install_name_tool -change /Users/runner/work/kimageformats-binaries/kimageformats-binaries/kimageformats/karchive/installed//libKF5Archive.5.dylib @rpath/libKF5Archive.5.dylib output/kimg_ora.so
$libDirName = $qtVersion.Major -eq 5 ? 'lib' : '' # empty name results in double slash in path which is intentional

install_name_tool -change "$(Get-Location)/karchive/installed/$libDirName/libKF5Archive.5.dylib" @rpath/libKF5Archive.5.dylib output/kimg_kra.so
install_name_tool -change "$(Get-Location)/karchive/installed/$libDirName/libKF5Archive.5.dylib" @rpath/libKF5Archive.5.dylib output/kimg_ora.so

if ($IsMacOS -and $env:buildArch -eq 'Universal') {
install_name_tool -change /Users/runner/work/kimageformats-binaries/kimageformats-binaries/kimageformats/karchive/installed_arm64//libKF5Archive.5.dylib @rpath/libKF5Archive.5.dylib output/kimg_kra.so
install_name_tool -change /Users/runner/work/kimageformats-binaries/kimageformats-binaries/kimageformats/karchive/installed_arm64//libKF5Archive.5.dylib @rpath/libKF5Archive.5.dylib output/kimg_ora.so
install_name_tool -change "$(Get-Location)/karchive/installed_arm64/$libDirName/libKF5Archive.5.dylib" @rpath/libKF5Archive.5.dylib output/kimg_kra.so
install_name_tool -change "$(Get-Location)/karchive/installed_arm64/$libDirName/libKF5Archive.5.dylib" @rpath/libKF5Archive.5.dylib output/kimg_ora.so
}
}

Expand Down

0 comments on commit b576d00

Please sign in to comment.