mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-12-23 12:09:43 +00:00
505ea26533
* update flutter to 3.24.3 * bump flutter to 3.24.4, fix all android issues (i hope) * update uni_links path * update sensitive_clipboard * update dependencies * update fast_scanner * update the ref * Update how_to_add_new_wallet_type.md [skip ci] * Update how_to_add_new_wallet_type.md [skip ci] * Update how_to_add_new_wallet_type.md [skip ci] * Update how_to_add_new_wallet_type.md [skip ci] --------- Co-authored-by: Omar Hatem <omarh.ismail1@gmail.com>
27 lines
No EOL
774 B
Bash
Executable file
27 lines
No EOL
774 B
Bash
Executable file
#!/bin/sh
|
|
source "$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)/universal_sed.sh"
|
|
gen_podspec() {
|
|
ARCH=$1
|
|
CW_PLUGIN_DIR="`pwd`/../../cw_monero/macos"
|
|
BASE_FILENAME="cw_monero_base.podspec"
|
|
BASE_FILE_PATH="${CW_PLUGIN_DIR}/${BASE_FILENAME}"
|
|
DEFAULT_FILENAME="cw_monero.podspec"
|
|
DEFAULT_FILE_PATH="${CW_PLUGIN_DIR}/${DEFAULT_FILENAME}"
|
|
rm -f $DEFAULT_FILE_PATH
|
|
cp $BASE_FILE_PATH $DEFAULT_FILE_PATH
|
|
universal_sed "s/#___VALID_ARCHS___#/${ARCH}/g" $DEFAULT_FILE_PATH
|
|
}
|
|
|
|
gen_project() {
|
|
ARCH=$1
|
|
CW_DIR="`pwd`/../../macos/Runner.xcodeproj"
|
|
DEFAULT_FILENAME="project.pbxproj"
|
|
DEFAULT_FILE_PATH="${CW_DIR}/${DEFAULT_FILENAME}"
|
|
universal_sed "s/ARCHS =.*/ARCHS = \"${ARCH}\";/g" $DEFAULT_FILE_PATH
|
|
}
|
|
|
|
gen() {
|
|
ARCH=$1
|
|
gen_podspec "${ARCH}"
|
|
gen_project "${ARCH}"
|
|
} |