Skip to content

Commit

Permalink
Merge pull request #12 from Th3Dilli/master
Browse files Browse the repository at this point in the history
Fix dotnet publish issue with X11 and Wayland libglfw.so
  • Loading branch information
NogginBops committed Sep 25, 2023
2 parents aea90fb + e181577 commit e9b7b1c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion download_dependencies.ps1
@@ -1,4 +1,5 @@
Param([parameter(Mandatory=$true,Position=0)][String]$GLFW_VERSION)
Param([parameter(Mandatory=$true,Position=0)][String]$GLFW_VERSION,
[parameter(Mandatory=$true,Position=1)][String]$GLFW_SHORT_VERSION)

New-Item -ItemType Directory -Force -Path tmp

Expand Down Expand Up @@ -62,6 +63,7 @@ if ($LastExitCode -ne 0) {

make -j

Rename-Item -Path "src/libglfw.so.$GLFW_SHORT_VERSION" -NewName "libglfw-wayland.so.$GLFW_SHORT_VERSION"
if ($LastExitCode -ne 0) {
throw 'GLFW Wayland compilation failed'
}
Expand Down
2 changes: 1 addition & 1 deletion glfw-redist.csproj
Expand Up @@ -44,7 +44,7 @@
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Content Include="tmp/src/build-wayland/src/*.so.$(GLFW_SHORT_VERSION)">
<PackagePath>runtimes/linux-x64/native/wayland/</PackagePath>
<PackagePath>runtimes/linux-x64/native/</PackagePath>
<Pack>true</Pack>
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
Expand Down
2 changes: 1 addition & 1 deletion make_nuget.ps1
Expand Up @@ -14,7 +14,7 @@ if($currentBranch -eq "develop") {
$buildVersionResult = "0-pre" + (Get-Date).ToUniversalTime().ToString("yyyyMMddHHmmss")
}

./download_dependencies.ps1 $GLFW_VERSION
./download_dependencies.ps1 $GLFW_VERSION $GLFW_SHORT_VERSION


$header = Get-Content([System.IO.Path]::Combine($projectDir, ".\tmp\src\include\GLFW\glfw3.h")) | Out-String
Expand Down

0 comments on commit e9b7b1c

Please sign in to comment.