extended-crashsite/make.sh

6 lines
299 B
Bash
Raw Normal View History

2020-08-24 19:00:26 +08:00
v=$(grep "\"version\"" info.json | sed 's|.*:||;s|[",]||g;s| ||g')
n=$(grep "\"name\"" info.json | sed 's|.*:||;s|[",]||g;s| ||g')
#echo ${n}_${v}.zip
powershell -c "\$files = Get-ChildItem -Path . -Exclude .git,*.sh,.pdn,.gitignore
Compress-Archive -Path \$files -DestinationPath ../${n}_${v}.zip"