Skip to content

Commit

Permalink
update toml cli binary
Browse files Browse the repository at this point in the history
  • Loading branch information
j-hc committed Nov 16, 2024
1 parent f77ea6d commit 453c404
Show file tree
Hide file tree
Showing 8 changed files with 4 additions and 4 deletions.
Binary file removed bin/toml/toml-arm
Binary file not shown.
Binary file removed bin/toml/toml-arm64
Binary file not shown.
Binary file removed bin/toml/toml-x86_64
Binary file not shown.
Binary file added bin/toml/tq-arm
Binary file not shown.
Binary file added bin/toml/tq-arm64
Binary file not shown.
Binary file added bin/toml/tq-x86_64
Binary file not shown.
2 changes: 1 addition & 1 deletion config.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
enable-magisk-update = true # set this to false if you do not want to receive updates for the module in magisk app
enable-magisk-update = true # set this to false if you do not want to receive updates for the module in magisk app
parallel-jobs = 1

# add 'enabled = false' for not patching a specific app or remove it from the config
Expand Down
6 changes: 3 additions & 3 deletions utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ if [ "${GITHUB_TOKEN-}" ]; then GH_HEADER="Authorization: token ${GITHUB_TOKEN}"
NEXT_VER_CODE=${NEXT_VER_CODE:-$(date +'%Y%m%d')}
OS=$(uname -o)

toml_prep() { __TOML__=$($TOML get "$1" .); }
toml_prep() { __TOML__=$($TOML --output json --file "$1" .); }
toml_get_table_names() { jq -r -e 'to_entries[] | select(.value | type == "object") | .key' <<<"$__TOML__"; }
toml_get_table_main() { jq -r -e 'to_entries | map(select(.value | type != "object")) | from_entries' <<<"$__TOML__"; }
toml_get_table() { jq -r -e ".\"${1}\"" <<<"$__TOML__"; }
Expand Down Expand Up @@ -117,10 +117,10 @@ get_prebuilts() {
if [ "$(uname -m)" = aarch64 ]; then arch=arm64; else arch=arm; fi
HTMLQ="${BIN_DIR}/htmlq/htmlq-${arch}"
AAPT2="${BIN_DIR}/aapt2/aapt2-${arch}"
TOML="${BIN_DIR}/toml/toml-${arch}"
TOML="${BIN_DIR}/toml/tq-${arch}"
else
HTMLQ="${BIN_DIR}/htmlq/htmlq-x86_64"
TOML="${BIN_DIR}/toml/toml-x86_64"
TOML="${BIN_DIR}/toml/tq-x86_64"
fi
mkdir -p ${MODULE_TEMPLATE_DIR}/bin/arm64 ${MODULE_TEMPLATE_DIR}/bin/arm ${MODULE_TEMPLATE_DIR}/bin/x86 ${MODULE_TEMPLATE_DIR}/bin/x64
gh_dl "${MODULE_TEMPLATE_DIR}/bin/arm64/cmpr" "https://github.com/j-hc/cmpr/releases/latest/download/cmpr-arm64-v8a"
Expand Down

0 comments on commit 453c404

Please sign in to comment.