diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 8b11709..d1cb3eb 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -44,7 +44,11 @@ jobs: $properties = [IO.File]::ReadAllText($file).Replace('-Xmx8G', '-Xmx3G').Replace('MaxMetaspaceSize=4G', 'MaxMetaspaceSize=768m') [IO.File]::WriteAllText($file, $properties + "`norg.gradle.workers.max=4`n") - run: flutter build apk --release --flavor production --target-platform android-arm64,android-x64 - - run: flutter build windows --release --flavor production + - name: Build Windows from the pinned Gitea native release + run: | + Remove-Item Env:CUTDEX_WINDOWS_PATH, Env:CUTDEX_WINDOWS_PACKAGE_PATH -ErrorAction SilentlyContinue + flutter build windows --release --flavor production + if ($LASTEXITCODE -ne 0) { throw 'Windows build failed.' } - name: Prepare isolated packaging tools run: | python -m venv .build/package-tools diff --git a/android/settings.gradle.kts b/android/settings.gradle.kts index cd302e3..b869807 100644 --- a/android/settings.gradle.kts +++ b/android/settings.gradle.kts @@ -25,7 +25,7 @@ plugins { include(":app") -// Native source development is opt-in; default resolution uses GitHub Packages. +// Native source development is opt-in; default resolution uses Gitea Maven packages. providers.gradleProperty("cutdex.android.path").orNull?.let { nativePath -> includeBuild(nativePath) { dependencySubstitution {