From 43d5ab3d3962784594a6c9d63c3648a0fe2a5b57 Mon Sep 17 00:00:00 2001 From: Balazs Perlaki-Horvath Date: Sat, 30 Dec 2023 00:35:46 +0100 Subject: [PATCH] Update build file --- build_project.zsh | 29 ++++++++--------------------- 1 file changed, 8 insertions(+), 21 deletions(-) diff --git a/build_project.zsh b/build_project.zsh index 14802e0..9259e5b 100644 --- a/build_project.zsh +++ b/build_project.zsh @@ -1,16 +1,12 @@ #!/bin/zsh -# dependencies -lib_kiwix_framework="libkiwix_xcframework-13.0.0-1" - # move the custom files under the same folder as the kiwix repo mv custom/ apple/ cd apple/custom -#download custom zim files as per info_local.json files -brew install jq - -for info in `mdfind -onlyin . -name info.json` +# download custom zim files as per info_local.json files +# and configure the project.yml file accordingly +for info in `python src/find_infos.py` do parent_dir=${info%/*} brand_name=${parent_dir##*/} @@ -23,7 +19,7 @@ do 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 + curl -L $url -u "$auth_value" -o $parent_dir/$file_name touch $brand_name/$brand_name.xcconfig python src/configure.py --output xcconfig $info > $brand_name/$brand_name.xcconfig @@ -31,20 +27,11 @@ do python src/configure.py --output app_name $info echo "app version" python src/configure.py --output app_version $info + echo "enforced language" + python src/configure.py --output enforced_language $info done cd .. - -# download libkiwix xcframework -lib_kiwix_url="http://download.kiwix.org/release/libkiwix/"$lib_kiwix_framework".tar.gz" -curl -O -L $lib_kiwix_url -tar xzf $lib_kiwix_framework".tar.gz" -rm $lib_kiwix_framework".tar.gz" -mv libkiwix_xcframework*/lib/*.* . -rm -rf libkiwix_xcframework*/ - ls -la - -# install xcodegen and run it -brew install xcodegen -xcodegen +# run xcodegen again +xcodegen \ No newline at end of file