mirror of
https://github.com/j-hc/revanced-magisk-module.git
synced 2025-05-02 15:44:31 +02:00
rename dpi and arch to apkmirror-dpi and apkmirror-arch
This commit is contained in:
parent
704f597384
commit
fc6df1a45b
@ -38,8 +38,7 @@ uptodown-dlurl = "https://spotify.en.uptodown.com/android"
|
|||||||
apkmonk-dlurl = "https://www.apkmonk.com/app/com.app.app/"
|
apkmonk-dlurl = "https://www.apkmonk.com/app/com.app.app/"
|
||||||
module-prop-name = "some-app-magisk" # magisk module prop name.
|
module-prop-name = "some-app-magisk" # magisk module prop name.
|
||||||
merge-integrations = false # set false to never merge even when needed. default: true
|
merge-integrations = false # set false to never merge even when needed. default: true
|
||||||
dpi = "360-480dpi" # used to select apk variant from apkmirror. default: nodpi
|
apkmirror-dpi = "360-480dpi" # used to select apk variant from apkmirror. default: nodpi
|
||||||
arch = "arm64-v8a" # 'arm64-v8a', 'arm-v7a', 'universal', 'both'. default: universal
|
apkmirror-arch = "arm64-v8a" # 'arm64-v8a', 'arm-v7a', 'universal', 'both'. 'both' downloads both arm64-v8a and arm-v7a. default: universal
|
||||||
# arch option is only for downloading from apkmirror. both downloads both arm64-v8a and arm-v7a.
|
# arch option is only for downloading from apkmirror and does not affect anything else.
|
||||||
# and does not affect anything else
|
|
||||||
```
|
```
|
||||||
|
4
build.sh
4
build.sh
@ -122,14 +122,14 @@ for table_name in $(toml_get_table_names); do
|
|||||||
app_args[dl_from]=apkmirror
|
app_args[dl_from]=apkmirror
|
||||||
} || app_args[apkmirror_dlurl]=""
|
} || app_args[apkmirror_dlurl]=""
|
||||||
if [ -z "${app_args[dl_from]:-}" ]; then abort "ERROR: no 'apkmirror_dlurl', 'uptodown_dlurl' or 'apkmonk_dlurl' option was set for '$table_name'."; fi
|
if [ -z "${app_args[dl_from]:-}" ]; then abort "ERROR: no 'apkmirror_dlurl', 'uptodown_dlurl' or 'apkmonk_dlurl' option was set for '$table_name'."; fi
|
||||||
app_args[arch]=$(toml_get "$t" arch) && {
|
app_args[arch]=$(toml_get "$t" apkmirror-arch) && {
|
||||||
if ! isoneof "${app_args[arch]}" universal both arm64-v8a arm-v7a; then
|
if ! isoneof "${app_args[arch]}" universal both arm64-v8a arm-v7a; then
|
||||||
abort "ERROR: arch '${app_args[arch]}' is not a valid option for '${table_name}': only 'universal', 'arm64-v8a', 'arm-v7a', 'both' is allowed"
|
abort "ERROR: arch '${app_args[arch]}' is not a valid option for '${table_name}': only 'universal', 'arm64-v8a', 'arm-v7a', 'both' is allowed"
|
||||||
fi
|
fi
|
||||||
} || app_args[arch]="universal"
|
} || app_args[arch]="universal"
|
||||||
app_args[include_stock]=$(toml_get "$t" include-stock) || app_args[include_stock]=true && vtf "${app_args[include_stock]}" "include-stock"
|
app_args[include_stock]=$(toml_get "$t" include-stock) || app_args[include_stock]=true && vtf "${app_args[include_stock]}" "include-stock"
|
||||||
app_args[merge_integrations]=$(toml_get "$t" merge-integrations) || app_args[merge_integrations]=true && vtf "${app_args[merge_integrations]}" "merge-integrations"
|
app_args[merge_integrations]=$(toml_get "$t" merge-integrations) || app_args[merge_integrations]=true && vtf "${app_args[merge_integrations]}" "merge-integrations"
|
||||||
app_args[dpi]=$(toml_get "$t" dpi) || app_args[dpi]="nodpi"
|
app_args[dpi]=$(toml_get "$t" apkmirror-dpi) || app_args[dpi]="nodpi"
|
||||||
table_name_f=${table_name,,}
|
table_name_f=${table_name,,}
|
||||||
table_name_f=${table_name_f// /-}
|
table_name_f=${table_name_f// /-}
|
||||||
app_args[module_prop_name]=$(toml_get "$t" module-prop-name) || app_args[module_prop_name]="${table_name_f}-jhc"
|
app_args[module_prop_name]=$(toml_get "$t" module-prop-name) || app_args[module_prop_name]="${table_name_f}-jhc"
|
||||||
|
10
config.toml
10
config.toml
@ -26,7 +26,7 @@ apkmirror-dlurl = "https://www.apkmirror.com/apk/google-inc/youtube/"
|
|||||||
build-mode = "both"
|
build-mode = "both"
|
||||||
excluded-patches = ""
|
excluded-patches = ""
|
||||||
apkmirror-dlurl = "https://www.apkmirror.com/apk/google-inc/youtube-music/"
|
apkmirror-dlurl = "https://www.apkmirror.com/apk/google-inc/youtube-music/"
|
||||||
arch = "both"
|
apkmirror-arch = "both" # both arm64-v8a and arm-v7a
|
||||||
|
|
||||||
[Music-Extended]
|
[Music-Extended]
|
||||||
app-name = "Music"
|
app-name = "Music"
|
||||||
@ -35,7 +35,7 @@ integrations-source = "inotia00/revanced-integrations"
|
|||||||
rv-brand = "ReVanced Extended"
|
rv-brand = "ReVanced Extended"
|
||||||
build-mode = "both"
|
build-mode = "both"
|
||||||
apkmirror-dlurl = "https://www.apkmirror.com/apk/google-inc/youtube-music/"
|
apkmirror-dlurl = "https://www.apkmirror.com/apk/google-inc/youtube-music/"
|
||||||
arch = "both"
|
apkmirror-arch = "both"
|
||||||
|
|
||||||
[Twitter]
|
[Twitter]
|
||||||
build-mode = "apk"
|
build-mode = "apk"
|
||||||
@ -55,7 +55,7 @@ apkmirror-dlurl = "https://www.apkmirror.com/apk/redditinc/reddit/"
|
|||||||
|
|
||||||
[Messenger]
|
[Messenger]
|
||||||
apkmirror-dlurl = "https://www.apkmirror.com/apk/facebook-2/messenger/"
|
apkmirror-dlurl = "https://www.apkmirror.com/apk/facebook-2/messenger/"
|
||||||
arch = "arm64-v8a"
|
apkmirror-arch = "arm64-v8a"
|
||||||
|
|
||||||
[Spotify]
|
[Spotify]
|
||||||
enabled = false
|
enabled = false
|
||||||
@ -64,7 +64,7 @@ uptodown-dlurl = "https://spotify.en.uptodown.com/android"
|
|||||||
[Citra]
|
[Citra]
|
||||||
enabled = false
|
enabled = false
|
||||||
apkmirror-dlurl = "https://www.apkmirror.com/apk/citra-emulator/citra-emulator/"
|
apkmirror-dlurl = "https://www.apkmirror.com/apk/citra-emulator/citra-emulator/"
|
||||||
arch = "arm64-v8a"
|
apkmirror-arch = "arm64-v8a"
|
||||||
|
|
||||||
[Backdrops]
|
[Backdrops]
|
||||||
enabled = false
|
enabled = false
|
||||||
@ -85,7 +85,7 @@ apkmirror-dlurl = "https://www.apkmirror.com/apk/smart-launcher-team/icon-pack-s
|
|||||||
[TickTick]
|
[TickTick]
|
||||||
enabled = false
|
enabled = false
|
||||||
apkmirror-dlurl = "https://www.apkmirror.com/apk/appest-inc/ticktick-to-do-list-with-reminder-day-planner/"
|
apkmirror-dlurl = "https://www.apkmirror.com/apk/appest-inc/ticktick-to-do-list-with-reminder-day-planner/"
|
||||||
arch = "arm64-v8a"
|
apkmirror-arch = "arm64-v8a"
|
||||||
|
|
||||||
[Tasker]
|
[Tasker]
|
||||||
enabled = false
|
enabled = false
|
||||||
|
Loading…
x
Reference in New Issue
Block a user