From 71adb31a313068489c7fbd0c8c6f39f9b16788da Mon Sep 17 00:00:00 2001 From: Martchus Date: Thu, 23 Jan 2025 19:26:17 +0100 Subject: [PATCH] Update README after latest changes --- README.md | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 01c181f0..d4755261 100644 --- a/README.md +++ b/README.md @@ -450,18 +450,13 @@ While Syncthing Tray basically works on Android, there are still some unresolved [FUSE Passthrough](https://source.android.com/docs/core/storage/fuse-passthrough) things have improved but especially if one has many files in one directory the performance is still bad. There is nothing one can do about it except storing the data in app's private directory. While - this is possible it of course doesn't cover all use cases. + this is possible it of course doesn't cover all use cases. A file provider to be able to share + the private app directory also still needs to be implemented. * Opening a directory in the file browser still doesn't work. Not sure what Android APIs need to be used to make this work. The approach taken by [syncthing-android](https://github.com/Catfriend1/syncthing-android) did not work when trying to use it in my app. * Media rescans need to be triggered manually. -* When using Go 1.23 the resulting APK does not run on older Android versions like Android 10. - Use `go install golang.org/dl/go1.22.11@latest && $GOPATH/src/go/bin/go1.22.11 download` to - install an older version of Go. Then conduct the build with `-DGO_BIN=$GOPATH/bin/go1.22.11`. - With this version of Go the resulting APK works Android 10 in my tests. The problem is likely - caused the an [upstream bug](https://github.com/golang/go/issues/70508) (even though it is not - limited to arm64). * The app doesn't use the configured system font. (It does use the configured font size and weight, though.) Not sure what Android APIs need to be used to read the configured system font. * There are probably still many small UI bugs in the Qt Quick based UI used on Android. @@ -603,6 +598,20 @@ To build Syncthing itself as a library Go is required and Syncthing needs to be Checkout the [documentation of Syncthing itself](https://docs.syncthing.net/dev/building#prerequisites) for details. +Sometimes it can be useful to use a different version of Go then what is provided by the packaging one would +normally use. To download and install a different version of Go into `GOPATH` one can invoke the following +command: + +``` +go install golang.org/dl/go1.22.11@latest && $GOPATH/src/go/bin/go1.22.11 download` +``` + +Checkout the [release history of Go](https://go.dev/doc/devel/release) for available versions. + +Then the version can be used by adding `-DGO_BIN=$GOPATH/bin/go1.22.11` to the CMake arguments. It is not +necassary to clean an existing build directly. All relevant parts will be re-built as necassary with the +new version. + --- It is also possible to build only the CLI (`syncthingctl`) by adding `-DNO_MODEL:BOOL=ON` and