Commit dec66fb
committed
fix(sandboxing): flatten native lib extraction to resources root
Native libs were extracted into platform-specific subdirectories
(e.g. darwin-aarch64/libjnidispatch.jnilib), which caused:
- jna.boot.library.path not finding libjnidispatch when set to the
resources root (JNA looks directly in listed directories)
- Duplicate libs (e.g. libsqlite at root + in /aarch64 subdirectory)
- Universal macOS builds keeping separate arch binaries instead of
merging them via lipo
Since the extraction already filters by target OS/arch, there are no
naming conflicts. Flattening to the root simplifies library path
configuration and removes the need for jnaPlatformPrefix().1 parent b18bbf5 commit dec66fb
2 files changed
Lines changed: 17 additions & 45 deletions
File tree
- plugin-build/plugin/src/main/kotlin/io/github/kdroidfilter/nucleus/desktop/application
- internal
- tasks
Lines changed: 7 additions & 30 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
859 | 859 | | |
860 | 860 | | |
861 | 861 | | |
862 | | - | |
863 | | - | |
864 | | - | |
| 862 | + | |
| 863 | + | |
865 | 864 | | |
866 | | - | |
867 | | - | |
868 | | - | |
869 | | - | |
870 | | - | |
| 865 | + | |
| 866 | + | |
| 867 | + | |
871 | 868 | | |
872 | 869 | | |
873 | | - | |
874 | | - | |
| 870 | + | |
| 871 | + | |
875 | 872 | | |
876 | | - | |
877 | | - | |
878 | | - | |
879 | | - | |
880 | | - | |
881 | | - | |
882 | | - | |
883 | | - | |
884 | | - | |
885 | | - | |
886 | | - | |
887 | | - | |
888 | | - | |
889 | | - | |
890 | | - | |
891 | | - | |
892 | | - | |
893 | | - | |
894 | | - | |
895 | | - | |
Lines changed: 10 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
84 | 79 | | |
85 | 80 | | |
86 | 81 | | |
| |||
0 commit comments