Comments (4)
@automactic Can you list here the operations to run? Maybe you have a script?
from kiwix-build.
import subprocess
import os
def change_install_name(lib_install_path: str):
def get_name_map(dir_path: str):
files = {}
for file in os.listdir(dir):
if file.endswith('.dylib') and not os.path.islink(dir_path+'/'+file):
files[file.split('.')[0]] = file
return files
dylibs = get_name_map(lib_install_path)
for dylib_name, file_name in dylibs.items():
subprocess.run(['install_name_tool', '-id', '@rpath/{}'.format(file_name), file_name], cwd=lib_install_path)
process = subprocess.run(['otool', '-L', file_name], cwd=lib_install_path, stdout=subprocess.PIPE)
dependencies = process.stdout.decode().split('\n')[2:-1]
dependencies = [d.strip() for d in dependencies]
for d in dependencies:
if not d.startswith('/usr/lib/'):
old_name = d.split(' ')[0]
dylib_name = old_name.split('/')[-1].split('.')[0]
new_name = '@rpath/{}'.format(dylibs[dylib_name])
subprocess.run(['install_name_tool', '-change', old_name, new_name, file_name], cwd=dir)
# dir = '/Volumes/Data/Developer/kiwix-build/BUILD_native_dyn_/INSTALL/lib'
dir = '/Volumes/Data/Developer/Kiwix/Shared/Dependencies/macOS_lib'
change_install_name(dir)
from kiwix-build.
@mgautierfr What is the status on this?
from kiwix-build.
This is a duplicate of #113.
from kiwix-build.
Related Issues (20)
- Fix win32 cross-compilation when wine is installed on the system.
- Libzim releases include the full libicu data HOT 4
- Release native_static on macos fails to trigger workflow. HOT 5
- Last publication of kiwix-tools seems to not work on raspberryPi HOT 6
- Instruction to use kiwix-build seems wrong in the `README.md` HOT 1
- Build libzim & libkiwix for Android with debug symbol HOT 2
- Failed to build zim-tools on ubuntu22.04 (wsl) HOT 3
- Use libxapian 1.4.23 HOT 7
- Fix double publications of release archives
- Incorrect docker trigger on macOS HOT 2
- aarch64 bionic should not require GLIBCXX 3.4.26 and 3.4.29 HOT 8
- Update ICU to a more recent version. HOT 2
- Why compiling libkiwix for iOS/macOS does embeds the libzim? HOT 7
- Use latest/future version of aria2c HOT 2
- Fix cross_compilation environment setting.
- Last version of aria2 1.37.0 doesn't compile on bionic. HOT 2
- CoreKiwix.xcframework not usable with iOS Simulator HOT 5
- Wrap XCFramework into a swift package, for Apple (iOS, macOS) distribution HOT 3
- Explicit dependence names for macOS HOT 3
- post checksums for AppImage HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kiwix-build.