-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
takmg
committed
Jul 10, 2020
1 parent
1be6471
commit e11d59b
Showing
1 changed file
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
REM Release.batのディレクトリに移動 | ||
pushd %~dp0 | ||
|
||
REM 前データの削除 | ||
del /F /Q /s static-pages-downloader\exe | ||
del /F /Q /s static-pages-downloader\Script | ||
rmdir /s /Q static-pages-downloader\exe | ||
rmdir /s /Q static-pages-downloader\Script | ||
|
||
REM ディレクトリの作成 | ||
mkdir static-pages-downloader | ||
mkdir static-pages-downloader\Exe | ||
mkdir static-pages-downloader\Script | ||
|
||
REM 実行に必要なファイルのコピー | ||
copy /Y StaticPagesDownloader\settings.yml static-pages-downloader\settings.yml | ||
copy /Y .\LICENSE static-pages-downloader\LICENSE | ||
copy /Y .\README.md static-pages-downloader\README.md | ||
xcopy /Y /e /R StaticPagesDownloader\bin\Release\netcoreapp3.1\publish static-pages-downloader\exe\ | ||
xcopy /Y /e /R StaticPagesDownloader\bin\Release\netcoreapp3.1\publish\Script static-pages-downloader\Script | ||
|
||
REM 不必要なファイルを削除する | ||
del /F /Q static-pages-downloader\exe\*.dev.json | ||
del /F /Q static-pages-downloader\exe\*.exe | ||
del /F /Q /s static-pages-downloader\exe\Script | ||
rmdir /Q /s static-pages-downloader\exe\Script | ||
|
||
REM ファイルの日時の更新 | ||
pushd static-pages-downloader | ||
copy *+ | ||
|
||
pushd exe | ||
copy *+ | ||
|
||
REM 元のディレクトリに戻る | ||
popd | ||
popd | ||
popd | ||
pause |