-
Notifications
You must be signed in to change notification settings - Fork 6
/
build.ps1
107 lines (81 loc) · 5.89 KB
/
build.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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
Add-Type -A 'System.IO.Compression.FileSystem';
$currentDirectory = Get-Location;
[IO.Directory]::SetCurrentDirectory($currentDirectory);
#Make Build Directory
Remove-Item Build -recurse
New-Item Build -type directory
#Create initial dark full theme fdz
New-Item Build/VsDarkFullTheme -type directory
Copy-Item VsDarkUI/* Build/VsDarkFullTheme -recurse
Copy-Item VsDarkSyntax/* Build/VsDarkFullTheme -recurse -ErrorAction SilentlyContinue
Copy-Item 'Build/VsDarkFullTheme/$(BaseDir)/Settings/Themes/VsDark.fdi' 'Build/VsDarkFullTheme/$(BaseDir)/Settings/Themes/CURRENT'
[IO.Compression.ZipFile]::CreateFromDirectory('Build\VsDarkFullTheme', 'Build\VsDarkFullTheme.fdz');
#Create initial dark syntax theme fdz
New-Item Build/VsDarkSyntaxTheme -type directory
Copy-Item VsDarkSyntax/* Build/VsDarkSyntaxTheme -recurse
[IO.Compression.ZipFile]::CreateFromDirectory('Build\VsDarkSyntaxTheme', 'Build\VsDarkSyntaxTheme.fdz');
#Move dark full theme to dark full theme so it will be deployed with other full themes
New-Item 'Build/VsDarkFullTheme/$(BaseDir)/Settings/Themes/FullThemes' -type directory
Move-Item Build/VsDarkFullTheme.fdz 'Build/VsDarkFullTheme/$(BaseDir)/Settings/Themes/FullThemes/VsDarkFullTheme.fdz'
#Copy dark syntax theme to dark full theme so it will be deployed with other syntax themes
New-Item 'Build/VsDarkFullTheme/$(BaseDir)/Settings/Themes/SyntaxThemes' -type directory
Copy-Item Build/VsDarkSyntaxTheme.fdz 'Build/VsDarkFullTheme/$(BaseDir)/Settings/Themes/SyntaxThemes/VsDarkSyntaxTheme.fdz'
#Recreate dark full theme fdz
[IO.Compression.ZipFile]::CreateFromDirectory('Build\VsDarkFullTheme', 'Build\VsDarkFullTheme.fdz');
Remove-Item Build/VsDarkFullTheme -recurse
#Move dark syntax theme to dark syntax theme so it will be deployed with other syntax themes
New-Item 'Build/VsDarkSyntaxTheme/$(BaseDir)/Settings/Themes/SyntaxThemes' -type directory
Move-Item Build/VsDarkSyntaxTheme.fdz 'Build/VsDarkSyntaxTheme/$(BaseDir)/Settings/Themes/SyntaxThemes/VsDarkSyntaxTheme.fdz'
#Recreate dark syntax theme fdz
[IO.Compression.ZipFile]::CreateFromDirectory('Build\VsDarkSyntaxTheme', 'Build\VsDarkSyntaxTheme.fdz');
Remove-Item Build/VsDarkSyntaxTheme -recurse
#Create initial blue full theme fdz
New-Item Build/VsBlueFullTheme -type directory
Copy-Item VsBlueUI/* Build/VsBlueFullTheme -recurse
Copy-Item VsLightSyntax/* Build/VsBlueFullTheme -recurse -ErrorAction SilentlyContinue
Copy-Item 'Build/VsBlueFullTheme/$(BaseDir)/Settings/Themes/VsBlue.fdi' 'Build/VsBlueFullTheme/$(BaseDir)/Settings/Themes/CURRENT'
[IO.Compression.ZipFile]::CreateFromDirectory('Build\VsBlueFullTheme', 'Build\VsBlueFullTheme.fdz');
#Create initial light full theme fdz
New-Item Build/VsLightFullTheme -type directory
Copy-Item VsLightUI/* Build/VsLightFullTheme -recurse
Copy-Item VsLightSyntax/* Build/VsLightFullTheme -recurse -ErrorAction SilentlyContinue
Copy-Item 'Build/VsLightFullTheme/$(BaseDir)/Settings/Themes/VsLight.fdi' 'Build/VsLightFullTheme/$(BaseDir)/Settings/Themes/CURRENT'
[IO.Compression.ZipFile]::CreateFromDirectory('Build\VsLightFullTheme', 'Build\VsLightFullTheme.fdz');
#Create initial light syntax theme fdz
New-Item Build/VsLightSyntaxTheme -type directory
Copy-Item VsLightSyntax/* Build/VsLightSyntaxTheme -recurse
[IO.Compression.ZipFile]::CreateFromDirectory('Build\VsLightSyntaxTheme', 'Build\VsLightSyntaxTheme.fdz');
#Move blue full theme to blue full theme so it will be deployed with other full themes
New-Item 'Build/VsBlueFullTheme/$(BaseDir)/Settings/Themes/FullThemes' -type directory
Move-Item Build/VsBlueFullTheme.fdz 'Build/VsBlueFullTheme/$(BaseDir)/Settings/Themes/FullThemes/VsBlueFullTheme.fdz'
#Copy light syntax theme to blue full theme so it will be deployed with other syntax themes
New-Item 'Build/VsBlueFullTheme/$(BaseDir)/Settings/Themes/SyntaxThemes' -type directory
Copy-Item Build/VsLightSyntaxTheme.fdz 'Build/VsBlueFullTheme/$(BaseDir)/Settings/Themes/SyntaxThemes/VsLightSyntaxTheme.fdz'
#Recreate blue full theme fdz
[IO.Compression.ZipFile]::CreateFromDirectory('Build\VsBlueFullTheme', 'Build\VsBlueFullTheme.fdz');
Remove-Item Build/VsBlueFullTheme -recurse
#Move blue full theme to light full theme so it will be deployed with other full themes
New-Item 'Build/VsLightFullTheme/$(BaseDir)/Settings/Themes/FullThemes' -type directory
Move-Item Build/VsLightFullTheme.fdz 'Build/VsLightFullTheme/$(BaseDir)/Settings/Themes/FullThemes/VsLightFullTheme.fdz'
#Copy light syntax theme to light full theme so it will be deployed with other syntax themes
New-Item 'Build/VsLightFullTheme/$(BaseDir)/Settings/Themes/SyntaxThemes' -type directory
Copy-Item Build/VsLightSyntaxTheme.fdz 'Build/VsLightFullTheme/$(BaseDir)/Settings/Themes/SyntaxThemes/VsLightSyntaxTheme.fdz'
#Recreate light full theme fdz
[IO.Compression.ZipFile]::CreateFromDirectory('Build\VsLightFullTheme', 'Build\VsLightFullTheme.fdz');
Remove-Item Build/VsLightFullTheme -recurse
#Move light syntax theme to light syntax theme so it will be deployed with other syntax themes
New-Item 'Build/VsLightSyntaxTheme/$(BaseDir)/Settings/Themes/SyntaxThemes' -type directory
Move-Item Build/VsLightSyntaxTheme.fdz 'Build/VsLightSyntaxTheme/$(BaseDir)/Settings/Themes/SyntaxThemes/VsLightSyntaxTheme.fdz'
#Recreate light syntax theme fdz
[IO.Compression.ZipFile]::CreateFromDirectory('Build\VsLightSyntaxTheme', 'Build\VsLightSyntaxTheme.fdz');
Remove-Item Build/VsLightSyntaxTheme -recurse
$hash = Get-FileHash Build/VsDarkFullTheme.fdz -Algorithm MD5;
Write-Host 'VsDarkFullTheme.fdz hash: ' $hash.Hash;
$hash = Get-FileHash Build/VsBlueFullTheme.fdz -Algorithm MD5;
Write-Host 'VsBlueFullTheme.fdz hash: ' $hash.Hash;
$hash = Get-FileHash Build/VsLightFullTheme.fdz -Algorithm MD5;
Write-Host 'VsLightFullTheme.fdz hash: ' $hash.Hash;
$hash = Get-FileHash Build/VsDarkSyntaxTheme.fdz -Algorithm MD5;
Write-Host 'VsDarkSyntaxTheme.fdz hash: ' $hash.Hash;
$hash = Get-FileHash Build/VsLightSyntaxTheme.fdz -Algorithm MD5;
Write-Host 'VsLightSyntaxTheme.fdz hash: ' $hash.Hash;