Skip to content
This repository was archived by the owner on Aug 30, 2025. It is now read-only.

Commit 94a4858

Browse files
Add dmg tool for compressing DMG images
1 parent 9cfa79a commit 94a4858

File tree

3 files changed

+32
-7
lines changed

3 files changed

+32
-7
lines changed

CHANGELOG.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,14 @@
88
- `naev-steamruntime` (Used for linux steam builds in the steamruntime (soldier) environment)
99
- `naev-windows` (Used to cross compile for Windows.)
1010

11+
### v1.5.11
12+
Update OpenBLAS to 0.3.20 for `naev-windows`
13+
Add `dmg` tool for compressing DMGs for `naev-macos`
14+
1115
### v1.5.10
12-
Fix osxcross-macports script file validation
13-
Remove binutils from macports package list (not used or needed)
14-
Add luajit from macports (is actively maintained.)
16+
Fix osxcross-macports script file validation for `naev-macos`
17+
Remove binutils from macports package list (not used or needed) for `naev-macos`
18+
Add luajit from macports (is actively maintained.) for `naev-macos`
1519

1620
### v1.5.9
1721
Update EndPoint repository URL for `naev-linux-lts`

naev-macos/Dockerfile.aarch64

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ FROM registry.fedoraproject.org/fedora-minimal:latest AS build
33

44
# Install Build dependencies and utilities.
55
RUN microdnf --nodocs --setopt=install_weak_deps=0 -y install bzip2 clang cmake git file findutils patch python3 \
6-
openssl openssl-devel xz-devel libxml2-devel llvm-devel uuid-devel unzip tar xz && \
6+
openssl openssl-devel xz-devel libxml2-devel llvm-devel uuid-devel unzip tar xz zlib-devel && \
77
microdnf clean all && \
88
# Verify tool / language versions versions.
99
echo "Verifying clang install" && \
@@ -16,6 +16,14 @@ RUN microdnf --nodocs --setopt=install_weak_deps=0 -y install bzip2 clang cmake
1616
command -v python3 && \
1717
python3 --version
1818

19+
# Git clone libdmg-hfsplus repo
20+
WORKDIR /usr/local/src
21+
RUN git clone https://github.com/fanquake/libdmg-hfsplus.git
22+
WORKDIR /usr/local/src/libdmg-hfsplus
23+
RUN mkdir build && cd build && \
24+
cmake .. && \
25+
make && make install
26+
1927
# Git clone osxcross repo
2028
WORKDIR /usr/local/src
2129
RUN git clone https://github.com/tpoechtrager/osxcross.git
@@ -50,6 +58,7 @@ FROM registry.fedoraproject.org/fedora-minimal:latest
5058

5159
WORKDIR /
5260
COPY --from=build /usr/lib/osxcross /usr/lib/osxcross
61+
COPY --from=build /usr/local/bin/dmg /usr/bin
5362

5463
LABEL org.opencontainers.image.authors "Naev Dev Team"
5564
LABEL org.opencontainers.image.source "https://github.com/naev/naev-infrastructure"
@@ -74,12 +83,13 @@ ENV HOST "aarch64-apple-darwin20.1"
7483
ENV APPIMAGE_EXTRACT_AND_RUN 1
7584

7685
# Install build tools.
77-
RUN microdnf --nodocs --setopt=install_weak_deps=0 -y install clang cmake gettext genisoimage git llvm meson ninja-build python3-pyyaml unzip tar xz zip && \
86+
RUN microdnf --nodocs --setopt=install_weak_deps=0 -y install clang cmake gettext genisoimage git llvm meson ninja-build python3-pyyaml unzip tar xz zlib zip && \
7887
microdnf clean all && \
7988
# Verify tool version.
8089
echo "Verifying meson install" && \
8190
command -v meson && \
8291
meson --version && \
92+
command -v dmg && \
8393
# Horrible hack: ensure a hardcoded header file path resolves.
8494
rmdir /opt && ln -s /usr/lib/osxcross/macports/pkgs/opt /opt && \
8595
# Set WORKDIR when you spin up the image.

naev-macos/Dockerfile.amd64

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ FROM registry.fedoraproject.org/fedora-minimal:latest AS build
33

44
# Install Build dependencies and utilities.
55
RUN microdnf --nodocs --setopt=install_weak_deps=0 -y install bzip2 clang cmake git file findutils patch python3 \
6-
openssl openssl-devel xz-devel libxml2-devel llvm-devel uuid-devel unzip tar xz && \
6+
openssl openssl-devel xz-devel libxml2-devel llvm-devel uuid-devel unzip tar xz zlib-devel && \
77
microdnf clean all && \
88
# Verify tool / language versions versions.
99
echo "Verifying clang install" && \
@@ -16,6 +16,14 @@ RUN microdnf --nodocs --setopt=install_weak_deps=0 -y install bzip2 clang cmake
1616
command -v python3 && \
1717
python3 --version
1818

19+
# Git clone libdmg-hfsplus repo
20+
WORKDIR /usr/local/src
21+
RUN git clone https://github.com/fanquake/libdmg-hfsplus.git
22+
WORKDIR /usr/local/src/libdmg-hfsplus
23+
RUN mkdir build && cd build && \
24+
cmake .. && \
25+
make && make install
26+
1927
# Git clone osxcross repo
2028
WORKDIR /usr/local/src
2129
RUN git clone https://github.com/tpoechtrager/osxcross.git
@@ -49,6 +57,7 @@ FROM registry.fedoraproject.org/fedora-minimal:latest
4957

5058
WORKDIR /
5159
COPY --from=build /usr/lib/osxcross /usr/lib/osxcross
60+
COPY --from=build /usr/local/bin/dmg /usr/bin
5261

5362
LABEL org.opencontainers.image.authors "Naev Dev Team"
5463
LABEL org.opencontainers.image.source "https://github.com/naev/naev-infrastructure"
@@ -73,12 +82,14 @@ ENV HOST "x86_64-apple-darwin17"
7382
ENV APPIMAGE_EXTRACT_AND_RUN 1
7483

7584
# Install build tools.
76-
RUN microdnf --nodocs --setopt=install_weak_deps=0 -y install clang cmake gettext genisoimage git llvm meson ninja-build python3-pyyaml unzip tar xz zip && \
85+
RUN microdnf --nodocs --setopt=install_weak_deps=0 -y install clang cmake gettext genisoimage git llvm meson ninja-build python3-pyyaml unzip tar xz zlib zip && \
7786
microdnf clean all && \
7887
# Verify tool version.
7988
echo "Verifying meson install" && \
8089
command -v meson && \
8190
meson --version && \
91+
echo "Verifying dmg install" && \
92+
command -v dmg && \
8293
# Horrible hack: ensure a hardcoded header file path resolves.
8394
rmdir /opt && ln -s /usr/lib/osxcross/macports/pkgs/opt /opt && \
8495
# Set WORKDIR when you spin up the image.

0 commit comments

Comments
 (0)