mirror of
https://github.com/nix-community/nix-on-droid.git
synced 2025-12-12 20:11:09 +01:00
modules/android-integration: termux-open, termux-open-url, xdg-open
This commit is contained in:
parent
cc573e03d9
commit
6f944fe209
6 changed files with 81 additions and 14 deletions
|
|
@ -6,7 +6,10 @@ load lib
|
|||
bats_require_minimum_version 1.5.0
|
||||
run ! command -v am
|
||||
run ! command -v termux-setup-storage
|
||||
run ! command -v termux-open
|
||||
run ! command -v termux-open-url
|
||||
run ! command -v xdg-open
|
||||
run ! command -v termux-backup
|
||||
|
||||
cp \
|
||||
"$ON_DEVICE_TESTS_DIR/config-android-integration.nix" \
|
||||
|
|
@ -15,7 +18,10 @@ load lib
|
|||
|
||||
command -v am
|
||||
command -v termux-setup-storage
|
||||
run ! command -v termux-open-url
|
||||
command -v termux-open
|
||||
command -v termux-open-url
|
||||
command -v xdg-open
|
||||
run ! command -v termux-backup
|
||||
|
||||
_sed \
|
||||
-e "s|# unsupported.enable = false;|unsupported.enable = true;|" \
|
||||
|
|
@ -24,7 +30,10 @@ load lib
|
|||
nix-on-droid switch
|
||||
run ! command -v am
|
||||
command -v termux-setup-storage
|
||||
command -v termux-open
|
||||
command -v termux-open-url
|
||||
command -v xdg-open
|
||||
command -v termux-backup
|
||||
|
||||
switch_to_default_config
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue