Compare commits

...

11 commits

3 changed files with 105 additions and 4 deletions

View file

@ -1,5 +1,5 @@
# Use Fedora as the base image # Use Fedora as the base image
FROM fedora:latest FROM fedora:41
# Install the required packages # Install the required packages
RUN dnf install -y \ RUN dnf install -y \
@ -13,8 +13,8 @@ RUN dnf install -y \
dnf clean all dnf clean all
# Add flathub and flathub-beta remotes for flatpak # Add flathub and flathub-beta remotes for flatpak
RUN flatpak remote-add --user --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo && \ RUN flatpak remote-add --system --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
flatpak remote-add --user --if-not-exists flathub-beta https://flathub.org/beta-repo/flathub-beta.flatpakrepo RUN flatpak remote-add --system --if-not-exists flathub-beta https://flathub.org/beta-repo/flathub-beta.flatpakrepo
# Set default command (optional, for testing purposes) # Set default command (optional, for testing purposes)
CMD [ "flatpak builder" ] ENTRYPOINT [ "flatpak-builder", "--install-deps-from=flathub", "--install-deps-from=flathub-beta", "--disable-rofiles-fuse" ]

View file

@ -1,2 +1,17 @@
# NOT WORKING
Until flapak can solve the issue of bwrap
# retrodeck-builder # retrodeck-builder
A docker container to ease RetroDECK's build A docker container to ease RetroDECK's build
Example usage:
```bash
docker run --rm \
-v "$PWD:/workspace" \
-w /workspace \
ghcr.io/retrodeck/retrodeck-builder:latest \
--force-clean \
--repo="/workspace/repo" \
"/workspace/build-dir" \
"net.retrodeck.retrodeck.yml"
```

86
flatpak-build.sh Normal file
View file

@ -0,0 +1,86 @@
#!/bin/bash
apt-get build-dep -qq -y --no-install-recommends \
ostree \
flatpak
git clone --recursive https://github.com/ostreedev/ostree /root/ostree && \
cd /root/ostree && \
./autogen.sh \
--prefix /usr \
--sysconfdir /etc \
--libdir /usr/lib/x86_64-linux-gnu \
--libexecdir /usr/bin \
--localstatedir /var \
--disable-silent-rules \
--disable-gtk-doc \
--disable-man \
--with-dracut \
--with-grub2 \
--with-grub2-mkconfig-path=/usr/sbin/grub-mkconfig \
--with-systemdsystemunitdir=/lib/systemd/system && \
make && make install && \
rm -f /usr/lib/*/*.la && \
cd /root && \
rm -rf /root/ostree
git clone --recursive https://github.com/flatpak/flatpak /root/flatpak && \
cd /root/flatpak && \
./autogen.sh \
--prefix /usr \
--sysconfdir /etc \
--libdir /usr/lib/x86_64-linux-gnu \
--libexecdir /usr/bin \
--localstatedir /var \
--disable-silent-rules \
--disable-docbook-docs \
--disable-gtk-doc \
--disable-installed-tests \
--disable-documentation \
--with-priv-mode=none \
--with-privileged-group=sudo \
--with-systemdsystemunitdir=/lib/systemd/system && \
make && make install && \
rm -f /usr/lib/*/*.la && \
cd /root && \
rm -rf /root/flatpak
apt-get remove -y --purge \
adwaita-icon-theme \
autotools-dev \
bison \
build-essential \
debhelper \
docbook \
docbook-to-man \
docbook-xml \
docbook-xsl \
fontconfig \
hicolor-icon-theme \
highlight \
highlight-common \
intltool-debian \
libcairo-gobject2 \
libcairo2 \
libepoxy0 \
libfontconfig1 \
libharfbuzz0b \
libgtk-3-0 \
libicu-dev \
man-db \
python \
python2.7 \
python2.7-minimal \
python3 \
python3.5 \
python3.5-minimal \
sgml-base \
sgml-data \
xml-core \
xmlto \
xorg-sgml-doctools \
xsltproc
apt autoremove -y
rm -rf /usr/share/doc/* /usr/share/man/*