Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 5 additions & 17 deletions .github/workflows/buildrelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -118,10 +118,6 @@ jobs:
echo "$ANDROID_KEYSTORE_BASE64" | base64 -d > tfmaudio.keystore
echo "ANDROID_KEYSTORE_PATH=$(pwd)/tfmaudio.keystore" >> $GITHUB_ENV

- name: '📦 Restore Android dependencies'
run: |
dotnet restore TFMAudioApp/TFMAudioApp.csproj /p:TargetFramework=net9.0-android

- name: '🔨 Build Android APK (Signed)'
if: ${{ env.ANDROID_KEYSTORE_PATH != '' }}
env:
Expand All @@ -133,9 +129,9 @@ jobs:
VERSION_CODE=${{ steps.version.outputs.version_code }}

dotnet publish TFMAudioApp/TFMAudioApp.csproj \
--no-restore \
-c Release \
-f net9.0-android \
-p:BuildSingleTarget=android \
-p:ApplicationDisplayVersion=$VERSION \
-p:ApplicationVersion=$VERSION_CODE \
-p:AndroidKeyStore=true \
Expand All @@ -152,9 +148,9 @@ jobs:

echo "⚠️ Building unsigned APK (no keystore configured)"
dotnet publish TFMAudioApp/TFMAudioApp.csproj \
--no-restore \
-c Release \
-f net9.0-android \
-p:BuildSingleTarget=android \
-p:ApplicationDisplayVersion=$VERSION \
-p:ApplicationVersion=$VERSION_CODE

Expand Down Expand Up @@ -214,18 +210,14 @@ jobs:
echo "version=$VERSION" >> $GITHUB_OUTPUT
echo "tag=$TAG" >> $GITHUB_OUTPUT

- name: '📦 Restore Windows dependencies'
run: |
dotnet restore TFMAudioApp/TFMAudioApp.csproj /p:TargetFramework=net9.0-windows10.0.19041.0

- name: '🔨 Build Windows App'
run: |
$VERSION = "${{ steps.version.outputs.version }}"

dotnet publish TFMAudioApp/TFMAudioApp.csproj `
--no-restore `
-c Release `
-f net9.0-windows10.0.19041.0 `
-p:BuildSingleTarget=windows `
-p:ApplicationDisplayVersion=$VERSION `
-p:WindowsPackageType=None `
-p:PublishSingleFile=false `
Expand Down Expand Up @@ -318,19 +310,15 @@ jobs:
echo "version=$VERSION" >> $GITHUB_OUTPUT
echo "tag=$TAG" >> $GITHUB_OUTPUT

- name: '📦 Restore macOS dependencies'
run: |
dotnet restore TFMAudioApp/TFMAudioApp.csproj /p:TargetFramework=net9.0-maccatalyst

- name: '🔨 Build macOS App (Intel x64)'
run: |
VERSION=${{ steps.version.outputs.version }}

dotnet publish TFMAudioApp/TFMAudioApp.csproj \
--no-restore \
-c Release \
-f net9.0-maccatalyst \
-r maccatalyst-x64 \
-p:BuildSingleTarget=maccatalyst \
-p:ApplicationDisplayVersion=$VERSION \
-p:CreatePackage=true \
-o bin/macos-x64
Expand All @@ -340,10 +328,10 @@ jobs:
VERSION=${{ steps.version.outputs.version }}

dotnet publish TFMAudioApp/TFMAudioApp.csproj \
--no-restore \
-c Release \
-f net9.0-maccatalyst \
-r maccatalyst-arm64 \
-p:BuildSingleTarget=maccatalyst \
-p:ApplicationDisplayVersion=$VERSION \
-p:CreatePackage=true \
-o bin/macos-arm64
Expand Down
11 changes: 8 additions & 3 deletions TFMAudioApp/TFMAudioApp.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,15 @@
Workloads needed:
- dotnet workload install android
- dotnet workload install maui (includes maccatalyst on Mac)

For CI builds, use -p:BuildSingleTarget=android|windows|maccatalyst
-->
<TargetFrameworks Condition="$([MSBuild]::IsOSPlatform('windows'))">net9.0-android;net9.0-windows10.0.19041.0</TargetFrameworks>
<TargetFrameworks Condition="$([MSBuild]::IsOSPlatform('osx'))">net9.0-android;net9.0-maccatalyst</TargetFrameworks>
<TargetFrameworks Condition="$([MSBuild]::IsOSPlatform('linux'))">net9.0-android</TargetFrameworks>
<TargetFrameworks Condition="'$(BuildSingleTarget)' == 'android'">net9.0-android</TargetFrameworks>
<TargetFrameworks Condition="'$(BuildSingleTarget)' == 'windows'">net9.0-windows10.0.19041.0</TargetFrameworks>
<TargetFrameworks Condition="'$(BuildSingleTarget)' == 'maccatalyst'">net9.0-maccatalyst</TargetFrameworks>
<TargetFrameworks Condition="'$(BuildSingleTarget)' == '' and $([MSBuild]::IsOSPlatform('windows'))">net9.0-android;net9.0-windows10.0.19041.0</TargetFrameworks>
<TargetFrameworks Condition="'$(BuildSingleTarget)' == '' and $([MSBuild]::IsOSPlatform('osx'))">net9.0-android;net9.0-maccatalyst</TargetFrameworks>
<TargetFrameworks Condition="'$(BuildSingleTarget)' == '' and $([MSBuild]::IsOSPlatform('linux'))">net9.0-android</TargetFrameworks>

<OutputType>Exe</OutputType>
<RootNamespace>TFMAudioApp</RootNamespace>
Expand Down
Loading