From 8a3400b8cbe9eac11699e458782a7cb067e0aea1 Mon Sep 17 00:00:00 2001 From: shimotmk Date: Fri, 19 Aug 2022 17:11:02 +0900 Subject: [PATCH 1/2] env / deploy-free code --- bin/deploy-free.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/deploy-free.sh b/bin/deploy-free.sh index 865d27934..72caccb38 100755 --- a/bin/deploy-free.sh +++ b/bin/deploy-free.sh @@ -23,8 +23,8 @@ version=$1 mv vk-blocks/ vk-blocks-copy-target/ # Cloneした無料版のディレクトリに移動 cd ./vk-blocks-copy-target/ -# コピー先の src/ を一旦削除 -rm -rf src/* +# コピー先の トップディレクトリ を一旦削除 +rm -rf editor-css/* inc/* lib/* options-css/* src/* # プロ版のディレクトリに移動 cd ../ From 89663ff442b1c772cbafb932307ca71658a20c14 Mon Sep 17 00:00:00 2001 From: kurudrive Date: Tue, 23 Aug 2022 18:56:09 +0900 Subject: [PATCH 2/2] =?UTF-8?q?=E3=82=B3=E3=83=A1=E3=83=B3=E3=83=88?= =?UTF-8?q?=E8=BF=BD=E5=8A=A0=E3=81=AE=E3=81=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/deploy-free.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bin/deploy-free.sh b/bin/deploy-free.sh index 72caccb38..760ac5c63 100755 --- a/bin/deploy-free.sh +++ b/bin/deploy-free.sh @@ -29,6 +29,10 @@ rm -rf editor-css/* inc/* lib/* options-css/* src/* # プロ版のディレクトリに移動 cd ../ # 指定したファイルを除外して、Pro版を無料版(vk-blocks-copy-target)へコピー&上書き +# -a : archive -rlptgoDとイコール +# -r : 指定ディレクトリ配下をすべて対象 +# -v : コピーファイルの転送情報を出力 +# -c : チェックサムで差分を確認 rsync -arvc --exclude 'vk-blocks-copy-target/' --exclude 'vendor/' --exclude 'bin/' --exclude 'build/_pro/' --exclude 'src/blocks/_pro/' --exclude 'inc/vk-blocks-pro/' --exclude '.git/' --exclude '.github/' --exclude 'build/block-build.css' --exclude 'inc/vk-blocks-pro-config.php' --exclude 'src/blocks/bundle-pro.js' --exclude '.gitignore' --exclude 'build/*.css' --exclude 'build/*.js' --exclude 'editor-css/*.css' --exclude 'editor-css/*.css.map' --exclude 'vk-blocks-pro.code-workspace' --exclude 'phpunit.xml.dist' ./* ./vk-blocks-copy-target/ # 無料版のディレクトリに移動