Skip to content

Commit 4b7e6f6

Browse files
authored
Merge pull request #194 from winnerspiros/android-revert-9680005098190217648-9223873189138880744
Hard revert to last known good Android build (cccb5b8)
2 parents 0311b45 + 75d29ca commit 4b7e6f6

45 files changed

Lines changed: 628 additions & 802 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,8 @@ jobs:
182182
uses: actions/setup-dotnet@v5
183183
with:
184184
dotnet-version: "10.0.x"
185+
- name: Set Xcode version
186+
run: sudo xcode-select -s /Applications/Xcode_26.3.app
185187

186188
- name: Install .NET Workloads
187189
run: dotnet workload install ios

.github/workflows/release.yml

Lines changed: 23 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ name: Build Android APK
33
on:
44
push:
55
tags:
6-
- "*.*.*"
7-
- "!*-*"
6+
- '*.*.*'
7+
- '!*-*'
88
workflow_dispatch:
99

1010
jobs:
@@ -31,9 +31,6 @@ jobs:
3131
with:
3232
dotnet-version: "10.0.x"
3333

34-
- name: Update .NET workloads
35-
run: dotnet workload update
36-
3734
- name: Install .NET Android workload
3835
run: dotnet workload install android
3936

@@ -91,49 +88,38 @@ jobs:
9188
9289
- name: Build Android APK (signed)
9390
if: steps.keystore.outputs.has_keystore == 'true'
94-
env:
95-
ALIAS: ${{ secrets.ANDROID_SIGNING_KEY_ALIAS }}
96-
KEYPASS: ${{ secrets.ANDROID_SIGNING_KEY_PASSWORD }}
97-
STOREPASS: ${{ secrets.ANDROID_SIGNING_STORE_PASSWORD }}
98-
run: |
99-
dotnet publish -c Release \
100-
osu.Android/osu.Android.csproj \
101-
-f net10.0-android \
102-
-p:Version="${{ steps.version.outputs.version }}" \
103-
-p:ApplicationDisplayVersion="${{ steps.version.outputs.version }}" \
104-
-p:ApplicationVersion="${{ github.run_number }}" \
105-
-p:AndroidKeyStore="true" \
106-
-p:AndroidSigningKeyStore="${{ github.workspace }}/osu.Android/osu.keystore" \
107-
-p:AndroidSigningKeyAlias="${ALIAS}" \
108-
-p:AndroidSigningKeyPass="${KEYPASS}" \
109-
-p:AndroidSigningStorePass="${STOREPASS}"
91+
run: >
92+
dotnet publish -c Release
93+
osu.Android/osu.Android.csproj
94+
-f net10.0-android
95+
-p:Version=${{ steps.version.outputs.version }}
96+
-p:ApplicationDisplayVersion=${{ steps.version.outputs.version }}
97+
-p:ApplicationVersion=${{ github.run_number }}
98+
-p:AndroidKeyStore=true
99+
-p:AndroidSigningKeyStore=${{ github.workspace }}/osu.Android/osu.keystore
100+
-p:AndroidSigningKeyAlias=${{ secrets.ANDROID_SIGNING_KEY_ALIAS }}
101+
-p:AndroidSigningKeyPass=${{ secrets.ANDROID_SIGNING_KEY_PASSWORD }}
102+
-p:AndroidSigningStorePass=${{ secrets.ANDROID_SIGNING_STORE_PASSWORD }}
110103
111104
- name: Build Android APK (unsigned)
112105
if: steps.keystore.outputs.has_keystore != 'true'
113-
run: |
114-
dotnet publish -c Release \
115-
osu.Android/osu.Android.csproj \
116-
-f net10.0-android \
117-
-p:Version="${{ steps.version.outputs.version }}" \
118-
-p:ApplicationDisplayVersion="${{ steps.version.outputs.version }}" \
119-
-p:ApplicationVersion="${{ github.run_number }}" \
120-
-p:AndroidKeyStore="false"
106+
run: >
107+
dotnet publish -c Release
108+
osu.Android/osu.Android.csproj
109+
-f net10.0-android
110+
-p:Version=${{ steps.version.outputs.version }}
111+
-p:ApplicationDisplayVersion=${{ steps.version.outputs.version }}
112+
-p:ApplicationVersion=${{ github.run_number }}
113+
-p:AndroidKeyStore=false
121114
122115
- name: Find APK
123116
id: find_apk
124117
run: |
125-
# Strictly prioritize the publish/ directory where the signed APK resides
126118
PUBLISH_DIR="osu.Android/bin/Release/net10.0-android/publish"
127-
echo "Searching for APK in: $PUBLISH_DIR"
128119
APK=$(find "$PUBLISH_DIR" -maxdepth 1 -name "*.apk" 2>/dev/null | head -1)
129-
130120
if [ -z "$APK" ]; then
131-
echo "::error::Signed APK not found in publish directory ($PUBLISH_DIR)!"
132-
# Use a non-restricted way to fail
133-
sh -c "false"
121+
APK=$(find osu.Android/bin/Release -name "*.apk" | head -1)
134122
fi
135-
136-
echo "Final APK found at: $APK"
137123
echo "apk_path=$APK" >> "$GITHUB_OUTPUT"
138124
139125
- name: Upload APK artifact

0 commit comments

Comments
 (0)