mirror of
https://github.com/ayufan/steam-deck-tools.git
synced 2026-01-24 09:20:27 +01:00
Use PRODUCTION_BUILD define
This commit is contained in:
parent
998bf9506e
commit
727d4b82de
4
.github/workflows/build_release.yaml
vendored
4
.github/workflows/build_release.yaml
vendored
|
|
@ -42,9 +42,9 @@ jobs:
|
|||
echo "MajorVer=$majorVer LastVer=$lastVer NextVer=$nextVer"
|
||||
echo "RELEASE_VERSION=$nextVer" >> $GITHUB_ENV
|
||||
- name: Build Release
|
||||
run: dotnet build --configuration Release --output "${{ env.RELEASE_NAME }}-${{ env.RELEASE_VERSION }}/" "/property:Version=${{ env.RELEASE_VERSION }}"
|
||||
run: dotnet build --configuration Release --output "${{ env.RELEASE_NAME }}-${{ env.RELEASE_VERSION }}/" "/property:Version=${{ env.RELEASE_VERSION }}" "/property:ExtraDefineConstants=PRODUCTION_BUILD"
|
||||
- name: Build Debug
|
||||
run: dotnet build --configuration Debug --output "${{ env.RELEASE_NAME }}-${{ env.RELEASE_VERSION }}-debug/" "/property:Version=${{ env.RELEASE_VERSION }}"
|
||||
run: dotnet build --configuration Debug --output "${{ env.RELEASE_NAME }}-${{ env.RELEASE_VERSION }}-debug/" "/property:Version=${{ env.RELEASE_VERSION }}" "/property:ExtraDefineConstants=PRODUCTION_BUILD"
|
||||
- name: Test
|
||||
run: dotnet test --no-restore --verbosity normal
|
||||
- uses: vimtor/action-zip@v1
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@
|
|||
<Nullable>enable</Nullable>
|
||||
<UseWindowsForms>true</UseWindowsForms>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<DefineConstants Condition=" '$(ExtraDefineConstants)' != '' ">$(DefineConstants);$(ExtraDefineConstants)</DefineConstants>
|
||||
</PropertyGroup>
|
||||
|
||||
<Target Name="SetSourceRevisionId" BeforeTargets="InitializeSourceControlInformation">
|
||||
|
|
|
|||
Loading…
Reference in a new issue