2
0
mirror of https://github.com/Alia5/GlosSI.git synced 2024-11-09 01:10:24 +00:00
GlosSI/build.ps1

34 lines
1.2 KiB
PowerShell
Raw Normal View History

2022-06-16 20:12:22 +00:00
Remove-Item -Recurse -Force "x64\Release"
.\prebuild.ps1
$env:_CL_="/MD"
msbuild.exe GlosSI.sln /t:Build /p:Configuration=Release /p:Platform=x64
cd ./x64/Release/
2022-09-05 09:12:47 +00:00
$env:Path += ';C:\Qt\6.3.1\msvc2019_64\bin'
$env:Path += ';C:\Program Files\7-Zip'
2022-06-16 20:12:22 +00:00
Get-ChildItem -Rec | Where {$_.Extension -match "lib"} | Remove-Item
$env:Path = "$env:QTDIR\bin;$env:Path"
windeployqt.exe --release --qmldir ../../GlosSIConfig/qml ./GlosSIConfig.exe
Copy-Item "..\..\deps\SFML\out\Release\lib\RelWithDebInfo\sfml-graphics-2.dll" -Destination "."
Copy-Item "..\..\deps\SFML\out\Release\lib\RelWithDebInfo\sfml-system-2.dll" -Destination "."
Copy-Item "..\..\deps\SFML\out\Release\lib\RelWithDebInfo\sfml-window-2.dll" -Destination "."
Copy-Item "..\..\GlosSIConfig\GetAUMIDs.ps1" -Destination "."
Copy-Item "..\..\HidHideSetup.exe" -Destination "."
Copy-Item "..\..\ViGEmBusSetup_x64.exe" -Destination "."
2022-06-16 20:12:22 +00:00
Copy-Item "..\..\vc_redist.x64.exe" -Destination "."
Copy-Item "..\..\LICENSE" -Destination "./LICENSE"
Copy-Item "..\..\QT_License" -Destination "./QT_License"
Copy-Item "..\..\THIRD_PARTY_LICENSES.txt" -Destination "./THIRD_PARTY_LICENSES.txt"
#7z a GlosSI-snapshot.zip *
cd ../..