Skip to content

Commit

Permalink
build framework dependent version as well
Browse files Browse the repository at this point in the history
  • Loading branch information
DubbleClick committed Aug 15, 2024
1 parent 29c4c1b commit bdd5122
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 4 deletions.
23 changes: 19 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,23 +34,37 @@ jobs:
$version = "$($gitVersionObj.Major).$($gitVersionObj.Minor)"
echo "VERSION=$version" >> $env:GITHUB_ENV
- name: Build GW Launcher
- name: Build GW Launcher Self Contained
run: |
MSBuild.exe "GW Launcher\GW Launcher.csproj" `
/target:"Restore;Publish" `
/m /nodeReuse:false `
/property:"PublishProfile=SelfContained" `
/property:GitVersion_NoFetchEnabled=true
- name: Rename Executable
- name: Rename SelfContained Executable
run: |
Move-Item -Path "Publish\GW Launcher.exe" -Destination "Publish\GW_Launcher.exe" -Force
- name: Build GW Launcher Framework Dependent
run: |
MSBuild.exe "GW Launcher\GW Launcher.csproj" `
/target:"Restore;Publish" `
/m /nodeReuse:false `
/property:"PublishProfile=FrameworkDependent" `
/property:GitVersion_NoFetchEnabled=true
- name: Rename FrameworkDependent Executable
run: |
Move-Item -Path "Publish\GW Launcher.exe" -Destination "Publish\GW_Launcher_Framework_Dependent.exe" -Force
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: GW Launcher
path: "Publish\\GW_Launcher.exe"
path: |
Publish\GW_Launcher.exe
Publish\GW_Launcher_Framework_Dependent.exe
if-no-files-found: error

- name: Create Release
Expand All @@ -61,4 +75,5 @@ jobs:
gh release create "r${{ env.VERSION }}" `
--title "Release ${{ env.VERSION }}" `
--notes "Release ${{ env.VERSION }}" `
./Publish/GW_Launcher.exe
./Publish/GW_Launcher.exe `
./Publish/GW_Launcher_Framework_Dependent.exe
17 changes: 17 additions & 0 deletions GW Launcher/Properties/PublishProfiles/FrameworkDependent.pubxml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
https://go.microsoft.com/fwlink/?LinkID=208121.
-->
<Project>
<PropertyGroup>
<Configuration>Release</Configuration>
<Platform>x86</Platform>
<PublishDir>../Publish/</PublishDir>
<PublishProtocol>FileSystem</PublishProtocol>
<TargetFramework>net8.0-windows</TargetFramework>
<SelfContained>false</SelfContained>
<RuntimeIdentifier>win-x86</RuntimeIdentifier>
<PublishSingleFile>true</PublishSingleFile>
<PublishReadyToRun>false</PublishReadyToRun>
</PropertyGroup>
</Project>

0 comments on commit bdd5122

Please sign in to comment.