Skip to content

Commit

Permalink
Fix GTK# installation (giacomelli#104)
Browse files Browse the repository at this point in the history
  • Loading branch information
giacomelli authored Jan 29, 2023
1 parent 616b565 commit 8fad566
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -131,3 +131,4 @@ BenchmarkDotNet.Artifacts
!/tools/buildTemplatesNuget.cmd
!/tools/runBenchmarks.cmd
!/tools/runBenchmarks.sh
*.msi
2 changes: 1 addition & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ assembly_info:
assembly_informational_version: '{version}'

install:
- cmd: choco install gtksharp
- ps: ./install-gtksharp.ps1
- cmd: dotnet tool install --global Cake.Tool

before_build:
Expand Down
2 changes: 1 addition & 1 deletion build.cake
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#tool "nuget:?package=MSBuild.SonarQube.Runner.Tool&version=4.8.0"
#addin "nuget:?package=Cake.Sonar&version=1.1.30"
#addin "nuget:?package=Cake.Sonar&version=1.1.31"
#addin "nuget:?package=Cake.Git&version=2.0.0"

var target = Argument("target", "Default");
Expand Down
12 changes: 12 additions & 0 deletions install-gtksharp.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
Write-Output "INSTALLING GTK#"
Write-Output " Downloading installer..."
Invoke-WebRequest -uri https://github.com/mono/gtk-sharp/releases/download/2.12.45/gtk-sharp-2.12.45.msi -OutFile ./gtk-sharp-2.12.45.msi

Write-Output " Starting installer..."
./gtk-sharp-2.12.45.msi /quiet /qn /norestart

Write-Output " Waiting for installer finish..."
Start-Sleep 10
Wait-Process -Name "msiexec" -Timeout 300

Write-Output "GTK# INSTALLED"

0 comments on commit 8fad566

Please sign in to comment.