mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-12-25 21:09:23 +00:00
29 lines
No EOL
767 B
Bash
Executable file
29 lines
No EOL
767 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
set -x -e
|
|
|
|
if [ $# -ne 1 ]; then
|
|
echo "Usage: $0 <theme specific assets dir name (ex. stack_wallet)>"
|
|
exit 1
|
|
fi
|
|
|
|
SELECT_ASSETS_DIR=$1
|
|
|
|
# declare full paths
|
|
ASSET_SOURCES_DIR="${APP_PROJECT_ROOT_DIR}/asset_sources"
|
|
ASSETS_DIR="${APP_PROJECT_ROOT_DIR}/assets"
|
|
|
|
|
|
# finally update symlinks
|
|
|
|
rm -f "${ASSETS_DIR}/default_themes"
|
|
ln -s "${ASSET_SOURCES_DIR}/bundled_themes/${SELECT_ASSETS_DIR}" "${ASSETS_DIR}/default_themes"
|
|
|
|
rm -f "${ASSETS_DIR}/icon"
|
|
ln -s "${ASSET_SOURCES_DIR}/icon/${SELECT_ASSETS_DIR}" "${ASSETS_DIR}/icon"
|
|
|
|
rm -f "${ASSETS_DIR}/lottie"
|
|
ln -s "${ASSET_SOURCES_DIR}/lottie/${SELECT_ASSETS_DIR}" "${ASSETS_DIR}/lottie"
|
|
|
|
# run icon and image generators
|
|
"${APP_PROJECT_ROOT_DIR}/scripts/app_config/shared/asset_generators.sh" |