forked from innative-sdk/innative
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpack.ps1
77 lines (72 loc) · 5.99 KB
/
pack.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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
New-Item -Force "innative-windows-sdk-x64\bin\" -Type Directory
New-Item -Force "innative-windows-sdk-x64\scripts\" -Type Directory
New-Item -Force "innative-windows-sdk-x64\include\innative\" -Type Directory
New-Item -Force "innative-windows-sdk-x64\spec\test\core\" -Type Directory
Copy-Item "bin\innative.dll" -Destination "innative-windows-sdk-x64\bin\"
Copy-Item "bin\innative.exp" -Destination "innative-windows-sdk-x64\bin\"
Copy-Item "bin\innative.lib" -Destination "innative-windows-sdk-x64\bin\"
Copy-Item "bin\innative.pdb" -Destination "innative-windows-sdk-x64\bin\"
Copy-Item "bin\innative-d.dll" -Destination "innative-windows-sdk-x64\bin\"
Copy-Item "bin\innative-d.exp" -Destination "innative-windows-sdk-x64\bin\"
Copy-Item "bin\innative-d.lib" -Destination "innative-windows-sdk-x64\bin\"
Copy-Item "bin\innative-d.pdb" -Destination "innative-windows-sdk-x64\bin\"
Copy-Item "bin\innative-s.lib" -Destination "innative-windows-sdk-x64\bin\"
Copy-Item "bin\innative-s.pdb" -Destination "innative-windows-sdk-x64\bin\"
Copy-Item "bin\innative-s-d.lib" -Destination "innative-windows-sdk-x64\bin\"
Copy-Item "bin\innative-s-d.pdb" -Destination "innative-windows-sdk-x64\bin\"
Copy-Item "bin\innative-stub.lib" -Destination "innative-windows-sdk-x64\bin\"
Copy-Item "bin\innative-stub.pdb" -Destination "innative-windows-sdk-x64\bin\"
Copy-Item "bin\innative-stub-d.lib" -Destination "innative-windows-sdk-x64\bin\"
Copy-Item "bin\innative-stub-d.pdb" -Destination "innative-windows-sdk-x64\bin\"
Copy-Item "bin\innative-env.lib" -Destination "innative-windows-sdk-x64\bin\"
Copy-Item "bin\innative-env.pdb" -Destination "innative-windows-sdk-x64\bin\"
Copy-Item "bin\innative-env-d.lib" -Destination "innative-windows-sdk-x64\bin\"
Copy-Item "bin\innative-env-d.pdb" -Destination "innative-windows-sdk-x64\bin\"
Copy-Item "bin\innative-test-s.exe" -Destination "innative-windows-sdk-x64\bin\"
Copy-Item "bin\innative-cmd.exe" -Destination "innative-windows-sdk-x64\bin\"
Copy-Item "bin\innative-cmd-d.exe" -Destination "innative-windows-sdk-x64\bin\"
Copy-Item "bin\innative-loader.exe" -Destination "innative-windows-sdk-x64\bin\"
Copy-Item "bin\innative-loader-d.exe" -Destination "innative-windows-sdk-x64\bin\"
Copy-Item "include\innative\*" -Destination "innative-windows-sdk-x64\include\innative\"
Copy-Item "scripts\*.wat" -Destination "innative-windows-sdk-x64\scripts\"
Copy-Item "scripts\*.wasm" -Destination "innative-windows-sdk-x64\scripts\"
Copy-Item "spec\test\core\*.wast" -Destination "innative-windows-sdk-x64\spec\test\core\"
Compress-Archive -Force -Path "innative-windows-sdk-x64" -CompressionLevel Optimal -DestinationPath "innative-windows-sdk-x64.zip"
Remove-Item 'innative-windows-sdk-x64' -Recurse
New-Item -Force "innative-windows-sdk-x86\bin\" -Type Directory
New-Item -Force "innative-windows-sdk-x86\scripts\" -Type Directory
New-Item -Force "innative-windows-sdk-x86\include\innative\" -Type Directory
New-Item -Force "innative-windows-sdk-x86\spec\test\core\" -Type Directory
Copy-Item "bin32\innative.dll" -Destination "innative-windows-sdk-x86\bin\"
Copy-Item "bin32\innative.exp" -Destination "innative-windows-sdk-x86\bin\"
Copy-Item "bin32\innative.lib" -Destination "innative-windows-sdk-x86\bin\"
Copy-Item "bin32\innative.pdb" -Destination "innative-windows-sdk-x86\bin\"
Copy-Item "bin32\innative-d.dll" -Destination "innative-windows-sdk-x86\bin\"
Copy-Item "bin32\innative-d.exp" -Destination "innative-windows-sdk-x86\bin\"
Copy-Item "bin32\innative-d.lib" -Destination "innative-windows-sdk-x86\bin\"
Copy-Item "bin32\innative-d.pdb" -Destination "innative-windows-sdk-x86\bin\"
Copy-Item "bin32\innative-s.lib" -Destination "innative-windows-sdk-x86\bin\"
Copy-Item "bin32\innative-s.pdb" -Destination "innative-windows-sdk-x86\bin\"
Copy-Item "bin32\innative-s-d.lib" -Destination "innative-windows-sdk-x86\bin\"
Copy-Item "bin32\innative-s-d.pdb" -Destination "innative-windows-sdk-x86\bin\"
Copy-Item "bin32\innative-stub.lib" -Destination "innative-windows-sdk-x86\bin\"
Copy-Item "bin32\innative-stub.pdb" -Destination "innative-windows-sdk-x86\bin\"
Copy-Item "bin32\innative-stub-d.lib" -Destination "innative-windows-sdk-x86\bin\"
Copy-Item "bin32\innative-stub-d.pdb" -Destination "innative-windows-sdk-x86\bin\"
Copy-Item "bin32\innative-env.lib" -Destination "innative-windows-sdk-x86\bin\"
Copy-Item "bin32\innative-env.pdb" -Destination "innative-windows-sdk-x86\bin\"
Copy-Item "bin32\innative-env-d.lib" -Destination "innative-windows-sdk-x86\bin\"
Copy-Item "bin32\innative-env-d.pdb" -Destination "innative-windows-sdk-x86\bin\"
Copy-Item "bin32\innative-test-s.exe" -Destination "innative-windows-sdk-x86\bin\"
Copy-Item "bin32\innative-cmd.exe" -Destination "innative-windows-sdk-x86\bin\"
Copy-Item "bin32\innative-cmd-d.exe" -Destination "innative-windows-sdk-x86\bin\"
Copy-Item "bin32\innative-loader.exe" -Destination "innative-windows-sdk-x86\bin\"
Copy-Item "bin32\innative-loader-d.exe" -Destination "innative-windows-sdk-x86\bin\"
Copy-Item "include\innative\*" -Destination "innative-windows-sdk-x86\include\innative\"
Copy-Item "scripts\*.wat" -Destination "innative-windows-sdk-x86\scripts\"
Copy-Item "scripts\*.wasm" -Destination "innative-windows-sdk-x86\scripts\"
Copy-Item "spec\test\core\*.wast" -Destination "innative-windows-sdk-x86\spec\test\core\"
Compress-Archive -Force -Path "innative-windows-sdk-x86" -CompressionLevel Optimal -DestinationPath "innative-windows-sdk-x86.zip"
Remove-Item 'innative-windows-sdk-x86' -Recurse
Compress-Archive -Force -Path "bin\innative.dll","bin\innative-d.dll","bin\innative-s.lib","bin\innative-s-d.lib","bin\innative-env.lib","bin\innative-env-d.lib","bin\innative-cmd.exe","bin\innative-cmd-d.exe" -CompressionLevel Optimal -DestinationPath "innative-windows-runtime-x64.zip"
Compress-Archive -Force -Path "bin32\innative.dll","bin32\innative-d.dll","bin32\innative-s.lib","bin32\innative-s-d.lib","bin32\innative-env.lib","bin32\innative-env-d.lib","bin32\innative-cmd.exe","bin32\innative-cmd-d.exe" -CompressionLevel Optimal -DestinationPath "innative-windows-runtime-x86.zip"