Skip to content

Commit

Permalink
release用のバッチファイルを作成
Browse files Browse the repository at this point in the history
  • Loading branch information
takmg committed Jul 10, 2020
1 parent 1be6471 commit e11d59b
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions release.bat
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

0 comments on commit e11d59b

Please sign in to comment.