# 必要なファイルをコピーして、その中で不要になりえるものを削除
Copy-Item -Verbose -Path .\Hengband.exe, .\readme_angband -Destination $hengbandDir
Copy-Item -Verbose -Path $package_unique_files -Destination $hengbandDir
- Copy-Item -Verbose -Recurse -Path .\lib -Destination $hengbandDir -Exclude Makefile.am, delete.me, *.raw, .gitattributes
+ Copy-Item -Verbose -Recurse -Path .\lib -Destination $hengbandDir -Exclude Makefile.am, *.raw, .gitattributes
Copy-Item -Verbose -Path .\lib\apex\h_scores.raw -Destination $hengbandDir\lib\apex
- Remove-Item -Verbose -Path $hengbandDir\lib\save\*, $hengbandDir\lib\user\*
+ Remove-Item -Verbose -Exclude delete.me -Recurse -Path $hengbandDir\lib\save\*, $hengbandDir\lib\user\*
Remove-Item -Verbose -Exclude music.cfg -Path $hengbandDir\lib\xtra\music\*
# zipアーカイブ作成
$package_path = Join-Path $(Get-Location) "${package_name}.zip"
- Push-Location $tempDir
- Compress-Archive -Force -Verbose -Path $package_name -DestinationPath $package_path
- Pop-Location
+ Get-ChildItem -Path $tempDir | Compress-Archive -Force -Verbose -DestinationPath $package_path
# 作業用テンポラリフォルダ削除
$tempDir | Where-Object { Test-Path $_ } | ForEach-Object { Get-ChildItem $_ -File -Recurse | Remove-Item; $_ } | Remove-Item -Recurse
}
# 日本語版
-BuildPackage -package_name Hengband-$Version-jp -package_unique_files .\readme.txt, .\autopick.txt -build_conf Release
-BuildPackage -package_name Hengband-$Version-en -package_unique_files .\readme_eng.txt, .\autopick_eng.txt -build_conf English-Release
+BuildPackage -package_name Hengband-$Version-jp -package_unique_files .\readme.md, .\autopick.txt -build_conf Release
+# 英語版
+BuildPackage -package_name Hengband-$Version-en -package_unique_files .\readme_eng.md, .\autopick_eng.txt -build_conf English-Release