@@ -97,27 +97,28 @@ this token in the settings dialog that's available via the 3-dot menu in the upp
9797
9898## Build Linux Flatpak
9999### General
100- We need a special Docker image for building the app and the flatpak version of it. It's best to use the oldest
101- supported Linux OS for this task, to get the widest OS support for our flatpak app. I'm using the LTS version
102- Ubuntu 22.04. The [ Dockerfile] ( ./flatpak/Dockerfile ) takes this as the base image and installs then all the necessary dependencies
103- to be able to compile the source code for Linux. In addition, the flatpak utilities are also installed. It's also
104- important to install all the dependencies that the Linux version of the used Flutter packages needs. You find
105- this information typically on pub.dev at the Linux version of the used package.
100+ The GitHub action executes all necessary steps to build the Linux flatpak (see ` build-flatpak.yml ` for details).
101+ The created file is available under the ** Releases** tab. For a local build of the Flatpak it's best to use a Docker
102+ image. I use an older Linux OS for this task, to get the widest OS support for our flatpak app. I'm using the LTS
103+ version Ubuntu 22.04. The [ Dockerfile] ( ./flatpak/Dockerfile ) takes this as the base image and installs then all the
104+ necessary dependencies to be able to compile the source code for Linux. In addition, the flatpak utilities are also
105+ installed. It's also important to install all the dependencies that the Linux version of the used Flutter packages
106+ needs. You find this information typically on pub.dev at the Linux version of the used package.
106107
107108The build time for this image is approx. 10 minutes on my machine and the resulting image size is around 10GB.
108109
109110### Image for Flutter and Flatpak
110111Build the image:
111112
112113 cd flatpak
113- docker build --platform linux/amd64 -t flutterpack :1.0.0 .
114+ docker build --platform linux/amd64 -t flutterpak :1.0.0 .
114115
115116### Build and pack
116117Execute the following command in the project root folder to compile the Flutter source code and to generate
117- a flatpak version of it (` de.luedtke.shoppinglist .flatpak ` ):
118+ a flatpak version of it (` de.luedtke.dlna_player .flatpak ` ):
118119
119120 docker run --rm --privileged --platform linux/amd64 -u builder -v "$PWD":/home/builder/app \
120- -w /home/builder/app/flatpak flutterpack :1.0.0 "./build-flutter-app.sh"
121+ -w /home/builder/app/flatpak flutterpak :1.0.0 "./build-flutter-app.sh"
121122
122123### Local install
123124To run the flatpak app, you need to have the following runtime installed on your local machine:
0 commit comments