Watch
2
0
Fork
You've already forked raylib-cs
0

Move Target Raylib Tag to csproj

Also use different GitHub Action for XPath
This commit is contained in:
Ben Parsons 2021-10-01 22:08:30 +10:00
commit c720cbf9e9
3 changed files with 7 additions and 9 deletions

View file

@ -39,19 +39,19 @@ jobs:
- id: get-tag - id: get-tag
name: Get Target Raylib Version name: Get Target Raylib Version
uses: QwerMike/xpath-action@v1 uses: mavrosxristoforos/get-xml-info@1.0
with: with:
filename: "./app.config" xml-file: "./Raylib-cs/Raylib-cs.csproj"
expression: "string(//appSettings/add[@key='raylib-release-tag']/@value)" xpath: "//TargetRaylibTag"
- name: echo tag - name: echo tag
run: echo ${{ steps.get-tag.outputs.results }} run: echo ${{ steps.get-tag.outputs.info }}
- name: Download raylib Release - name: Download raylib Release
uses: robinraju/release-downloader@v1.2 uses: robinraju/release-downloader@v1.2
with: with:
repository: "raysan5/raylib" repository: "raysan5/raylib"
tag: ${{ steps.get-tag.outputs.results }} tag: ${{ steps.get-tag.outputs.info }}
fileName: "*" fileName: "*"
- name: output directory - name: output directory

View file

@ -7,9 +7,11 @@
<AllowUnsafeBlocks>true</AllowUnsafeBlocks> <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo> <GenerateAssemblyInfo>false</GenerateAssemblyInfo>
<NoWarn>$(NoWarn);1591</NoWarn> <NoWarn>$(NoWarn);1591</NoWarn>
</PropertyGroup> </PropertyGroup>
<PropertyGroup> <PropertyGroup>
<TargetRaylibTag>3.7.0</TargetRaylibTag>
<Version>3.7.0</Version> <Version>3.7.0</Version>
<PackageVersion>3.7.0</PackageVersion> <PackageVersion>3.7.0</PackageVersion>
<Authors>Chris Dill, Raysan5 &amp; Others</Authors> <Authors>Chris Dill, Raysan5 &amp; Others</Authors>

View file

@ -3,8 +3,4 @@
<dllmap dll="raylib" os="windows" target="raylib.dll"/> <dllmap dll="raylib" os="windows" target="raylib.dll"/>
<dllmap dll="raylib" os="osx" target="libraylib.dylib"/> <dllmap dll="raylib" os="osx" target="libraylib.dylib"/>
<dllmap dll="raylib" os="linux" target="libraylib.so.0"/> <dllmap dll="raylib" os="linux" target="libraylib.so.0"/>
<appSettings>
<add key="raylib-release-tag"
value="3.7.0"/>
</appSettings>
</configuration> </configuration>