mirror of
https://github.com/jeessy2/ddns-go.git
synced 2025-10-20 15:33:46 +08:00
* fix(open_explorer): don't execute command on Termux * fix: build arm64 in the `test` CI
11 lines
207 B
Go
11 lines
207 B
Go
package util
|
|
|
|
import "os"
|
|
|
|
// isTermux 是否在 Termux 中运行
|
|
//
|
|
// https://wiki.termux.com/wiki/Getting_started
|
|
func isTermux() bool {
|
|
return os.Getenv("PREFIX") == "/data/data/com.termux/files/usr"
|
|
}
|