-
-
Notifications
You must be signed in to change notification settings - Fork 222
How To Build
Krille-chan edited this page Aug 15, 2023
·
4 revisions
-
Clone the repo:
git clone https://github.com/krille-chan/fluffychat.git
cd fluffychat
- Choose your target platform below and enable support for it.
3.1 If you want, enable Googles Firebase Cloud Messaging:
git apply ./scripts/enable-android-google-services.patch
- Debug with:
flutter run
-
Install CMake from the SDK Manager
-
Build with:
flutter build apk
- Have a Mac with Xcode installed, and set up for Xcode-managed app signing
- If you want automatic app installation to connected devices, make sure you have Apple Configurator installed, with the Automation Tools (
cfgutil
) enabled - Set a few environment variables
- FLUFFYCHAT_NEW_TEAM: the Apple Developer team that your certificates should live under
- FLUFFYCHAT_NEW_GROUP: the group you want App IDs and such to live under (ie: com.example.fluffychat)
- FLUFFYCHAT_INSTALL_IPA: set to
1
if you want the IPA to be deployed to connected devices after building, otherwise unset
- Run
./scripts/build-ios.sh
-
Enable web support in Flutter: https://flutter.dev/docs/get-started/web
-
Build with:
./scripts/prepare-web.sh # To install libolm
flutter build web --release
- Optionally configure by serving a
config.json
at the same path as fluffychat. An example can be found atconfig.sample.json
. None of these values have to exist, the ones stated here are the default ones. If you e.g. only want to change the default homeserver, then only modify thedefault_homeserver
key.
- Enable Desktop support in Flutter: https://flutter.dev/desktop
sudo apt install libjsoncpp1 libsecret-1-dev libsecret-1-0 librhash0 libwebkit2gtk-4.0-dev libolm3
- Build with one of these:
flutter build linux --release
flutter build windows --release
flutter build macos --release
For encryption support you have to install libolm on your system.