-
Notifications
You must be signed in to change notification settings - Fork 4
/
package.bat
33 lines (25 loc) · 1.17 KB
/
package.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
rd /s /q Package
mkdir Package
IF NOT EXIST ../AnimalGenetics-0.9.zip (
powershell -Command Invoke-WebRequest -Uri "https://github.com/gregorycu/AnimalGenetics/releases/download/release%%2F0.9/AnimalGenetics-0.9.zip" -Outfile "../AnimalGenetics-0.9.zip"
)
tar -xf ../AnimalGenetics-0.9.zip
mkdir Package\AnimalGenetics\1.2
xcopy /Y /s Package\AnimalGenetics\Common Package\AnimalGenetics\1.2\
xcopy /Y /s Package\AnimalGenetics\Defs Package\AnimalGenetics\1.2\Defs\
xcopy /Y /s Package\AnimalGenetics\Languages Package\AnimalGenetics\1.2\Languages\
xcopy /Y /s Package\AnimalGenetics\Patches Package\AnimalGenetics\1.2\Patches\
rd /s /q Package\AnimalGenetics\Common
rd /s /q Package\AnimalGenetics\Defs
rd /s /q Package\AnimalGenetics\Languages
rd /s /q Package\AnimalGenetics\Patches
mkdir Package\AnimalGenetics\1.3
xcopy /Y /s About Package\AnimalGenetics\About\
xcopy /Y LICENSE Package\AnimalGenetics\
xcopy /Y /s Common Package\AnimalGenetics\1.3\
xcopy /Y /s Defs Package\AnimalGenetics\1.3\Defs\
xcopy /Y /s Languages Package\AnimalGenetics\1.3\Languages\
xcopy /Y /s Patches Package\AnimalGenetics\1.3\Patches\
cd Package
tar -a -c -f AnimalGenetics.zip AnimalGenetics
cd ..