-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgrade project and add script to generate archive
- Loading branch information
1 parent
809528c
commit 2255357
Showing
4 changed files
with
150 additions
and
250 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
$ScriptPath = split-path -parent $MyInvocation.MyCommand.Definition | ||
Write-Output "Path of the script : $ScriptPath" | ||
|
||
# Convert commit message to a single line if multiline | ||
$singleLineStrVal = "$Env:COMMIT_MESSAGE" -replace "`r`n", " " -replace "`n", " " | ||
if($singleLineStrVal -match '#GITBUILD') | ||
{ | ||
Write-Host 'Commit message matched with "#GITBUILD"' | ||
} | ||
|
||
try { | ||
Import-Module 7Zip4PowerShell | ||
} catch { | ||
Write-Host 'Installing 7Zip PowerShell module' | ||
Install-Module 7Zip4PowerShell -Force -Verbose -MinimumVersion "2.4" | ||
} | ||
|
||
try { | ||
dotnet build --verbosity=detailed --self-contained --nologo --configuration=Release --arch=x64 "$ScriptPath/UnityLauncherPro/UnityLauncherPro.csproj" | ||
Write-Host 'Finished building project.' | ||
|
||
Write-Host 'Compressing executable into archive...' | ||
$OutputFilename = "UnityLauncherPro.zip" | ||
$OutputPath = "$ScriptPath/.build/$OutputFilename" | ||
if (Test-Path "$OutputPath" -PathType Leaf) { | ||
Remove-Item -Force -Path "$OutputPath" | ||
} | ||
Compress-7Zip -Path "$ScriptPath/UnityLauncherPro/bin/Release/net8.0-windows/win-x64" -ArchiveFilename "$OutputFilename" -OutputPath "$OutputPath" | ||
|
||
Write-Host "Archive now available here: '$ScriptPath/UnityLauncherPro.zip'" | ||
} catch { | ||
Write-Error 'Failed to update archive.' | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,43 @@ | ||
|
||
Microsoft Visual Studio Solution File, Format Version 12.00 | ||
# Visual Studio 15 | ||
VisualStudioVersion = 15.0.28307.539 | ||
MinimumVisualStudioVersion = 10.0.40219.1 | ||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "UnityLauncherPro", "UnityLauncherPro\UnityLauncherPro.csproj", "{EC78D91A-3E63-4CAA-8BC3-9673A30FDA45}" | ||
EndProject | ||
Global | ||
GlobalSection(Performance) = preSolution | ||
HasPerformanceSessions = true | ||
EndGlobalSection | ||
GlobalSection(SolutionConfigurationPlatforms) = preSolution | ||
Debug|Any CPU = Debug|Any CPU | ||
Release|Any CPU = Release|Any CPU | ||
EndGlobalSection | ||
GlobalSection(ProjectConfigurationPlatforms) = postSolution | ||
{EC78D91A-3E63-4CAA-8BC3-9673A30FDA45}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
{EC78D91A-3E63-4CAA-8BC3-9673A30FDA45}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
{EC78D91A-3E63-4CAA-8BC3-9673A30FDA45}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
{EC78D91A-3E63-4CAA-8BC3-9673A30FDA45}.Release|Any CPU.Build.0 = Release|Any CPU | ||
EndGlobalSection | ||
GlobalSection(SolutionProperties) = preSolution | ||
HideSolutionNode = FALSE | ||
EndGlobalSection | ||
GlobalSection(ExtensibilityGlobals) = postSolution | ||
SolutionGuid = {CD70E364-F81A-402C-A387-1BEB396796A2} | ||
EndGlobalSection | ||
GlobalSection(Performance) = preSolution | ||
HasPerformanceSessions = true | ||
EndGlobalSection | ||
EndGlobal | ||
Microsoft Visual Studio Solution File, Format Version 12.00 | ||
# Visual Studio Version 17 | ||
VisualStudioVersion = 17.10.34902.84 | ||
MinimumVisualStudioVersion = 10.0.40219.1 | ||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "UnityLauncherPro", "UnityLauncherPro\UnityLauncherPro.csproj", "{EC78D91A-3E63-4CAA-8BC3-9673A30FDA45}" | ||
EndProject | ||
Global | ||
GlobalSection(Performance) = preSolution | ||
HasPerformanceSessions = true | ||
EndGlobalSection | ||
GlobalSection(SolutionConfigurationPlatforms) = preSolution | ||
Debug|ARM64 = Debug|ARM64 | ||
Debug|x64 = Debug|x64 | ||
Release|ARM64 = Release|ARM64 | ||
Release|x64 = Release|x64 | ||
EndGlobalSection | ||
GlobalSection(ProjectConfigurationPlatforms) = postSolution | ||
{EC78D91A-3E63-4CAA-8BC3-9673A30FDA45}.Debug|ARM64.ActiveCfg = Debug|ARM64 | ||
{EC78D91A-3E63-4CAA-8BC3-9673A30FDA45}.Debug|ARM64.Build.0 = Debug|ARM64 | ||
{EC78D91A-3E63-4CAA-8BC3-9673A30FDA45}.Debug|x64.ActiveCfg = Debug|x64 | ||
{EC78D91A-3E63-4CAA-8BC3-9673A30FDA45}.Debug|x64.Build.0 = Debug|x64 | ||
{EC78D91A-3E63-4CAA-8BC3-9673A30FDA45}.Release|ARM64.ActiveCfg = Release|ARM64 | ||
{EC78D91A-3E63-4CAA-8BC3-9673A30FDA45}.Release|ARM64.Build.0 = Release|ARM64 | ||
{EC78D91A-3E63-4CAA-8BC3-9673A30FDA45}.Release|x64.ActiveCfg = Release|x64 | ||
{EC78D91A-3E63-4CAA-8BC3-9673A30FDA45}.Release|x64.Build.0 = Release|x64 | ||
EndGlobalSection | ||
GlobalSection(SolutionProperties) = preSolution | ||
HideSolutionNode = FALSE | ||
EndGlobalSection | ||
GlobalSection(ExtensibilityGlobals) = postSolution | ||
SolutionGuid = {CD70E364-F81A-402C-A387-1BEB396796A2} | ||
EndGlobalSection | ||
EndGlobal | ||
91A-3E63-4CAA-8BC3-9673A30FDA45}.Release|x64.ActiveCfg = Release|x64 | ||
{EC78D91A-3E63-4CAA-8BC3-9673A30FDA45}.Release|x64.Build.0 = Release|x64 | ||
EndGlobalSection | ||
GlobalSection(SolutionProperties) = preSolution | ||
HideSolutionNode = FALSE | ||
EndGlobalSection | ||
GlobalSection(ExtensibilityGlobals) = postSolution | ||
SolutionGuid = {CD70E364-F81A-402C-A387-1BEB396796A2} | ||
EndGlobalSection | ||
EndGlobal |
Oops, something went wrong.