Skip to content

Commit

Permalink
Move CUSTOM_ABOUT_WEBSITE from xcconfig to info.json
Browse files Browse the repository at this point in the history
  • Loading branch information
BPerlakiH committed Dec 14, 2023
1 parent ecfff2f commit 34c17c5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion DWDS/DWDS.xcconfig
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ SETTINGS_SHOW_EXTERNAL_LINK_OPTION = false
APP_STORE_ID = id6473090365
SETTINGS_SHOW_SEARCH_SNIPPET = false
CUSTOM_ABOUT_TEXT = Für Schreibende, Lernende, Lehrende und Sprachinteressierte: Das Digitale Wörterbuch der deutschen Sprache (DWDS) ist das große Bedeutungswörterbuch des Deutschen der Gegenwart. Es bietet umfassende und wissenschaftlich verlässliche lexikalische Informationen, kostenlos und werbefrei.
CUSTOM_ABOUT_WEBSITE = www.dwds.de
// CUSTOM_ABOUT_WEBSITE = www.dwds.de
3 changes: 2 additions & 1 deletion DWDS/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
"app_name": "DWDS",
"zim_url": "https://www.dwds.de/kiwix/f/dwds_de_dictionary_nopic_2023-11-20.zim",
"zim_auth": "DWDS_HTTP_BASIC_ACCESS_AUTHENTICATION",
"enforced_lang": "de"
"enforced_lang": "de",
"about_app_url": "www.dwds.de"
}
4 changes: 3 additions & 1 deletion build_project.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,15 @@ do

url=`jq .zim_url -r $info`
auth=`jq .zim_auth -r $info`
about_url=`jq .about_app_url -r $info`

parent_url=${url%/*}
file_name=${url:${#parent_url} + 1} # + 1 to remove the trailing slash

auth_value=`print -rl -- ${(P)auth}` # get the credentials from environment var named by .zim_auth in the json
curl -O -L $url -u "$auth_value" $parent_dir/$file_name
echo "CUSTOM_ZIM_FILE = "${file_name%.zim} > apple/$brand_name/$brand_name.xcconfig
echo "CUSTOM_ZIM_FILE = "${file_name%.zim}"\n" > apple/$brand_name/$brand_name.xcconfig
echo "CUSTOM_ABOUT_WEBSITE = "${about_url}"\n" > apple/$brand_name/$brand_name.xcconfig
done

# download libkiwix xcframework
Expand Down

0 comments on commit 34c17c5

Please sign in to comment.