From 1b7550061dfd2139cb4c6d242068f1f62ed48e6c Mon Sep 17 00:00:00 2001 From: kalarina Date: Sat, 10 Oct 2026 14:04:04 +0000 Subject: [PATCH] Normalize line endings and drop VCS info from release APKs .gitattributes stores and checks out all text files with LF, so a Windows clone no longer turns assets/openings/*.tsv into CRLF and release APKs built on Windows match F-Droid's Linux build. Batch files keep CRLF so gradlew.bat still runs under cmd. vcsInfo.include = false stops AGP from writing the git revision into META-INF, so builds from a zip and from a git clone match. Takes effect from the next release; v1.0.43 is unchanged. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01K8GS1YNyjzkkhpGz368nGD --- .gitattributes | 7 +++++++ app/build.gradle.kts | 2 ++ 2 files changed, 9 insertions(+) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..64cab5f --- /dev/null +++ b/.gitattributes @@ -0,0 +1,7 @@ +* text=auto eol=lf +*.bat text eol=crlf +*.jar binary +*.png binary +*.webp binary +*.ogg binary +*.jks binary diff --git a/app/build.gradle.kts b/app/build.gradle.kts index 4788bfd..8666b9d 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -25,6 +25,8 @@ android { getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro" ) + // Keeps release builds reproducible (F-Droid). + vcsInfo.include = false } }