From 613a9e36721204bd9b3100dbd1958a10d659121e Mon Sep 17 00:00:00 2001 From: bisubus Date: Fri, 3 Nov 2017 02:05:13 +0300 Subject: [PATCH] build: update Windows symlink scripts (#16761) Fixes packages\upgrade\static\src symlink. Closes #16760 --- scripts/windows/create-symlinks.sh | 7 +++++-- scripts/windows/remove-symlinks.sh | 9 ++++++--- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/scripts/windows/create-symlinks.sh b/scripts/windows/create-symlinks.sh index 2876ea2a98..ef2ca70f5a 100644 --- a/scripts/windows/create-symlinks.sh +++ b/scripts/windows/create-symlinks.sh @@ -2,6 +2,9 @@ cd `dirname $0` -DESTDIR=./../../packages/core/src/animation -mv ${DESTDIR}/dsl.ts ${DESTDIR}/dsl.ts.old +CORE_SRC_ANIMATION_DIR=./../../packages/core/src/animation +UPGRADE_STATIC_DIR=./../../packages/upgrade/static +mv ${CORE_SRC_ANIMATION_DIR}/dsl.ts ${CORE_SRC_ANIMATION_DIR}/dsl.ts.old +mv ${UPGRADE_STATIC_DIR}/src ${UPGRADE_STATIC_DIR}/src.old cmd <<< "mklink \"..\\..\\packages\\core\\src\\animation\\dsl.ts\" \"..\\..\\..\\animations\\src\\animation_metadata.ts\"" +cmd <<< "mklink /d \"..\\..\\packages\\upgrade\\static\\src\" \"..\\src\"" diff --git a/scripts/windows/remove-symlinks.sh b/scripts/windows/remove-symlinks.sh index 798a12b972..93ae4ea3dd 100644 --- a/scripts/windows/remove-symlinks.sh +++ b/scripts/windows/remove-symlinks.sh @@ -2,6 +2,9 @@ cd `dirname $0` -DESTDIR=./../../packages/core/src/animation -rm ${DESTDIR}/dsl.ts -mv ${DESTDIR}/dsl.ts.old ${DESTDIR}/dsl.ts +CORE_SRC_ANIMATION_DIR=./../../packages/core/src/animation +UPGRADE_STATIC_DIR=./../../packages/upgrade/static +rm ${CORE_SRC_ANIMATION_DIR}/dsl.ts +rm ${UPGRADE_STATIC_DIR}/src +mv ${CORE_SRC_ANIMATION_DIR}/dsl.ts.old ${CORE_SRC_ANIMATION_DIR}/dsl.ts +mv ${UPGRADE_STATIC_DIR}/src.old ${UPGRADE_STATIC_DIR}/src