mirror of
https://github.com/RetroDECK/retrodeck-builder.git
synced 2024-12-12 15:35:40 +00:00
Compare commits
11 commits
59612819a6
...
52bf1bd6ba
Author | SHA1 | Date | |
---|---|---|---|
XargonWan | 52bf1bd6ba | ||
XargonWan | 0e312b1639 | ||
XargonWan | ef210c0721 | ||
XargonWan | 87dcb50dde | ||
XargonWan | 5df7ed0f63 | ||
XargonWan | e7bdf048f3 | ||
XargonWan | 35ae9377b4 | ||
XargonWan | fbc46a3109 | ||
XargonWan | 47479974a5 | ||
XargonWan | 8fa1a5b7e8 | ||
XargonWan | 38c5ba4fa9 |
|
@ -1,5 +1,5 @@
|
|||
# Use Fedora as the base image
|
||||
FROM fedora:latest
|
||||
FROM fedora:41
|
||||
|
||||
# Install the required packages
|
||||
RUN dnf install -y \
|
||||
|
@ -13,8 +13,8 @@ RUN dnf install -y \
|
|||
dnf clean all
|
||||
|
||||
# Add flathub and flathub-beta remotes for flatpak
|
||||
RUN flatpak remote-add --user --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 https://flathub.org/repo/flathub.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)
|
||||
CMD [ "flatpak builder" ]
|
||||
ENTRYPOINT [ "flatpak-builder", "--install-deps-from=flathub", "--install-deps-from=flathub-beta", "--disable-rofiles-fuse" ]
|
15
README.md
15
README.md
|
@ -1,2 +1,17 @@
|
|||
# NOT WORKING
|
||||
Until flapak can solve the issue of bwrap
|
||||
|
||||
# retrodeck-builder
|
||||
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
86
flatpak-build.sh
Normal 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/*
|
Loading…
Reference in a new issue