2
0
mirror of https://github.com/Alia5/GlosSI.git synced 2024-10-30 15:20:38 +00:00
GlosSI/prebuild.ps1

34 lines
681 B
PowerShell
Raw Normal View History

2022-03-06 16:50:19 +00:00
git submodule init
2022-09-04 12:30:14 +00:00
git submodule update --recursive --force
2022-03-06 16:50:19 +00:00
2022-03-07 14:06:40 +00:00
.\buildSFML.ps1
.\buildViGEmClient.ps1
2022-03-06 16:50:19 +00:00
cd deps/traypp
git apply ../../traypp_unicode.patch
2022-09-25 16:56:28 +00:00
cd ../../
cd .\GlosSIConfig\
..\version_help.ps1
2022-10-15 22:04:33 +00:00
$apiKeyText = "
/* Autogenerated version info file */
#pragma once
inline const char* steamgridb_key = ""$env:STEAMGRIDDB_KEY"";
"
if (!(Test-Path 'steamgrid_api_keys.h')) {
New-Item -Path "." -Name "steamgrid_api_keys.h" -ItemType "file" -Value $apiKeyText
}
cd ../
if (!(Test-Path 'steamgrid.exe')) {
Invoke-WebRequest -o steamgrid.zip https://github.com/boppreh/steamgrid/releases/download/v3.4.0/steamgrid_windows.zip
7z e steamgrid.zip steamgrid.exe
}