mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-03-15 16:12:16 +00:00
windows symlink fixes
This commit is contained in:
parent
9006de0f0a
commit
b63b343276
2 changed files with 15 additions and 12 deletions
|
@ -2,12 +2,13 @@
|
|||
|
||||
set -x -e
|
||||
|
||||
if [ $# -ne 1 ]; then
|
||||
echo "Usage: $0 <theme specific assets dir name (ex. stack_wallet)>"
|
||||
if [ $# -ne 2 ]; then
|
||||
echo "Usage: $0 <theme specific assets dir name (ex. stack_wallet)> <platform (ex. windows)>"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
SELECT_ASSETS_DIR=$1
|
||||
APP_BUILD_PLATFORM=$2
|
||||
|
||||
# declare full paths
|
||||
ASSET_SOURCES_DIR="${APP_PROJECT_ROOT_DIR}/asset_sources"
|
||||
|
@ -16,14 +17,16 @@ 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"
|
||||
for dirname in "default_themes" "icon" "lottie" "in_app_logo_icons"; do
|
||||
LINK_SOURCE_DIR="${ASSET_SOURCES_DIR}/${dirname}/${SELECT_ASSETS_DIR}"
|
||||
|
||||
rm -f "${ASSETS_DIR}/icon"
|
||||
ln -s "${ASSET_SOURCES_DIR}/icon/${SELECT_ASSETS_DIR}" "${ASSETS_DIR}/icon"
|
||||
rm -f "${ASSETS_DIR}/${dirname}"
|
||||
|
||||
rm -f "${ASSETS_DIR}/lottie"
|
||||
ln -s "${ASSET_SOURCES_DIR}/lottie/${SELECT_ASSETS_DIR}" "${ASSETS_DIR}/lottie"
|
||||
|
||||
rm -f "${ASSETS_DIR}/in_app_logo_icons"
|
||||
ln -s "${ASSET_SOURCES_DIR}/in_app_logo_icons/${SELECT_ASSETS_DIR}" "${ASSETS_DIR}/in_app_logo_icons"
|
||||
if [[ "${APP_BUILD_PLATFORM}" = 'windows' ]]; then
|
||||
LINK_SOURCE_DIR_WIN_PATH_VERSION=$(wslpath -w "${LINK_SOURCE_DIR}")
|
||||
LINK_NAME_WIN_PATH_VERSION=$(wslpath -w "${ASSETS_DIR}")
|
||||
cmd.exe /c mklink /D "${LINK_NAME_WIN_PATH_VERSION}\\${dirname}" "${LINK_SOURCE_DIR_WIN_PATH_VERSION}"
|
||||
else
|
||||
ln -s "${LINK_SOURCE_DIR}" "${ASSETS_DIR}/${dirname}"
|
||||
fi
|
||||
done
|
||||
|
|
|
@ -92,7 +92,7 @@ if printf '%s\0' "${APP_NAMED_IDS[@]}" | grep -Fxqz -- "${APP_NAMED_ID}"; then
|
|||
cp "${T_PUBSPEC}" "${ACTUAL_PUBSPEC}"
|
||||
fi
|
||||
"${APP_PROJECT_ROOT_DIR}/scripts/app_config/shared/update_version.sh" -v "${APP_VERSION_STRING}" -b "${APP_BUILD_NUMBER}"
|
||||
"${APP_PROJECT_ROOT_DIR}/scripts/app_config/shared/link_assets.sh" "${APP_NAMED_ID}"
|
||||
"${APP_PROJECT_ROOT_DIR}/scripts/app_config/shared/link_assets.sh" "${APP_NAMED_ID}" "${APP_BUILD_PLATFORM}"
|
||||
# shellcheck disable=SC1090
|
||||
source "${APP_PROJECT_ROOT_DIR}/scripts/app_config/configure_${APP_NAMED_ID}.sh"
|
||||
"${APP_PROJECT_ROOT_DIR}/scripts/app_config/platforms/${APP_BUILD_PLATFORM}/platform_config.sh"
|
||||
|
|
Loading…
Reference in a new issue