-
Notifications
You must be signed in to change notification settings - Fork 10
/
Build.ps1
29 lines (24 loc) · 947 Bytes
/
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
$projdir = "C:\Users\Fragtality\source\repos\FenixQuartz"
$instBinDir = $projdir + "\Installer\bin\Release\app.publish"
$version = "v1.8.0"
#Create Lock
cd $projdir
if (-not (Test-Path -Path "build.lck")) {
"lock" | Out-File -File "build.lck"
}
else {
exit 0
}
cd "C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\amd64"
#WT2GSX
Write-Host "Building FenixQuartz"
.\msbuild.exe ($projdir + "\FenixQuartz.sln") /t:FenixQuartz:rebuild /p:Configuration="Release" /p:BuildProjectReferences=false | Out-Null
#Installer
Write-Host "Building Installer"
.\msbuild.exe ($projdir + "\FenixQuartz.sln") /t:Installer:rebuild /p:Configuration="Release" /p:BuildProjectReferences=false | Out-Null
Copy-Item -Path ($instBinDir + "\Installer.exe") -Destination ($projdir + "\Releases\FenixQuartz-Installer-" + $version + ".exe") -Force
#Remove lock
cd $projdir
if ((Test-Path -Path "build.lck")) {
Remove-Item -Path "build.lck"
}