Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/fm-elpac/v8-src

build deno for aarch64-linux-android (编译 Android 上运行的 deno)
https://github.com/fm-elpac/v8-src

aarch64 android deno linux

Last synced: 3 months ago
JSON representation

build deno for aarch64-linux-android (编译 Android 上运行的 deno)

Awesome Lists containing this project

README

        

# Build deno android

![build deno-1.36](https://github.com/fm-elpac/v8-src/actions/workflows/deno-1.36.yml/badge.svg)

This project build [`deno`](https://github.com/denoland/deno) for android
(aarch64), with the help of these tools:

本项目编译能在 Android (aarch64) 运行的 deno, 使用以下工具:

- [`termux-docker`](https://github.com/termux/termux-docker)

provide the docker image for aarch64 android.

提供 aarch64 Android 的 docker 镜像.

- [`cargo-cross-build`](https://github.com/fm-elpac/cargo-cross-build)

run `build.rs` on target.

在编译目标设备上运行 `build.rs`.

(See deno issue `#19759`: )
(详见这个问题)

- `aarch64-linux-android`

- `x86_64-linux-android`

- `aarch64-unknown-linux-gnu`

Download deno binary:

请从发布页下载编译好的 deno 二进制可执行文件.

## What does not work

Currently known BUG (android):

已知 BUG (Android):

- ICU

- `deno_ffi`

The test suite is not run, so maybe more not work !

没有在 Android 上运行自动化测试, 可能有更多 BUG !

## Test run

运行测试:

- `aarch64-linux-android`

```
> adb push deno /data/local/tmp/deno-test
deno: 1 file pushed, 0 skipped. 31.9 MB/s (150381040 bytes in 4.496s)
> adb shell
violet:/ $ cd /data/local/tmp/deno-test
violet:/data/local/tmp/deno-test $ ls -al
total 147014
drwxrwxrwx 2 shell shell 3488 2023-08-24 15:16 .
drwxrwx--x 4 shell shell 3488 2023-08-24 14:45 ..
-rwxrwxrwx 1 shell shell 150381040 2023-08-24 15:13 deno
violet:/data/local/tmp/deno-test $ export HOME=$(pwd)
violet:/data/local/tmp/deno-test $ ./deno --version
deno 1.36.2 (release, aarch64-linux-android)
v8 11.7.439.1
typescript 5.1.6
violet:/data/local/tmp/deno-test $ ./deno
Deno 1.36.2
exit using ctrl+d, ctrl+c, or close()
REPL is running with all permissions allowed.
To specify permissions, run `deno repl` with allow flags.
> 0.1 + 0.2
0.30000000000000004
> Deno.version
{ deno: "1.36.2", v8: "11.7.439.1", typescript: "5.1.6" }
>
```

- `aarch64-unknown-linux-gnu`

```
orangepi@orangepizero3:~$ ./deno --version
deno 1.36.2 (release, aarch64-unknown-linux-gnu)
v8 11.7.439.1
typescript 5.1.6
orangepi@orangepizero3:~$ ./deno
Deno 1.36.2
exit using ctrl+d, ctrl+c, or close()
REPL is running with all permissions allowed.
To specify permissions, run `deno repl` with allow flags.
> 0.1 + 0.2
0.30000000000000004
> Deno.version
{ deno: "1.36.2", v8: "11.7.439.1", typescript: "5.1.6" }
>
```