-
Notifications
You must be signed in to change notification settings - Fork 8
/
build-zip.ps1
30 lines (30 loc) · 1.19 KB
/
build-zip.ps1
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
cd ..
Remove-Item build -Force -Recurse
New-Item -ItemType directory build -Force
cd build
If (Test-Path sptrader.zip) {
Remove-Item sptrader.zip
}
New-Item -ItemType directory sptrader
New-Item -ItemType directory sptrader\sptrader
New-Item -ItemType directory sptrader\static
New-Item -ItemType directory sptrader\tests
New-Item -ItemType directory sptrader\scripts
New-Item -ItemType directory sptrader\strategy
New-Item -ItemType directory sptrader\data
Copy-Item ..\sptrader\*.md sptrader
Copy-Item ..\sptrader\*.ps1 sptrader
Copy-Item ..\sptrader\*.psm1 sptrader
Copy-Item ..\sptrader\*.json sptrader
Copy-Item ..\sptrader\*.config sptrader
Copy-Item ..\sptrader\sptrader\*.py sptrader\sptrader
Copy-Item ..\sptrader\strategy\*.py sptrader\strategy
Copy-Item ..\sptrader\strategy\*.js sptrader\strategy
Copy-Item ..\sptrader\scripts\*.py sptrader\scripts
Copy-Item ..\sptrader\static\*.html sptrader\static
Copy-Item ..\sptrader\static\*.css sptrader\static
Copy-Item ..\sptrader\static\*.js sptrader\static
Copy-Item ..\sptrader\tests\*.py sptrader\tests
Copy-Item ..\sptrader\data\*.json sptrader\data
Copy-Item ..\sptrader\data\*.txt sptrader\data
Compress-Archive -Path sptrader -DestinationPath sptrader.zip