mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-11-17 01:37:40 +00:00
b2c603a47b
* Fix gen scripts. Change default arch for macos application. * Add combine script for combine arm and x86_64 libs. * - Update Mac version for release - Update branch with main [skip ci] --------- Co-authored-by: OmarHatem <omarh.ismail1@gmail.com>
27 lines
No EOL
692 B
Bash
Executable file
27 lines
No EOL
692 B
Bash
Executable file
#!/bin/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
|
|
sed -i '' "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}"
|
|
sed -i '' "s/ARCHS =.*/ARCHS = \"${ARCH}\";/g" $DEFAULT_FILE_PATH
|
|
}
|
|
|
|
gen() {
|
|
ARCH=$1
|
|
gen_podspec "${ARCH}"
|
|
gen_project "${ARCH}"
|
|
} |