[New] Add support for OpenHarmony platform
also: `nvm_get_os`: set `NVM_DIR` in the OpenHarmony chroots, and skip them without a glibc x86-64 layout `sudo` resets the environment, and `nvm.sh` returns early when it cannot detect `NVM_DIR`, so in the chroots `nvm_get_os` was undefined and every check got an empty result. The chroot setup needs `ldd` and `/lib64/ld-linux-x86-64.so.2`, which macOS does not have. Co-authored-by: hqzing <hqzing@outlook.com> Co-authored-by: Jordan Harband <ljharb@gmail.com>
This commit is contained in:
1 parent
0054ed6022
commit
e8144d4194
5 files changed
+125
No files matched your search
Executable
+3
@@ -0,0 +1,3 @@
|
||||
if [ "$#" -eq 2 ] && [ "$1" = "get" ] && [ "$2" = "const.ohos.fullname" ]; then
|
||||
echo "OpenHarmony-6.1.0.31"
|
||||
fi
|
||||
Executable
+3
@@ -0,0 +1,3 @@
|
||||
if [ "$#" -eq 2 ] && [ "$1" = "get" ] && [ "$2" = "const.ohos.fullname" ]; then
|
||||
echo "NotOpenHarmony-1.2.3"
|
||||
fi
|
||||
Executable
+5
@@ -0,0 +1,5 @@
|
||||
if [ "_$1" = "_-m" ]; then
|
||||
echo "aarch64"
|
||||
else
|
||||
echo "HarmonyOS localhost HongMeng Kernel 1.12.0 #1 SMP Tue Jul 14 09:40:51 UTC 2026 aarch64 Toybox"
|
||||
fi
|
||||
Reference in new issue
Block a user