Skip to content

Commit b03fe1c

Browse files
committed
fix: use real macOS SDK version 14.5 from joseluisq repo
1 parent e3eef98 commit b03fe1c

File tree

1 file changed

+12
-17
lines changed

1 file changed

+12
-17
lines changed

v3/internal/setupwizard/docker/Dockerfile.cross

Lines changed: 12 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,23 @@
1-
# Cross-compile Wails v3 apps to any platform
2-
#
3-
# Uses Zig as C compiler + macOS SDK for darwin targets
4-
#
5-
# Usage:
6-
# docker build -t wails-cross -f Dockerfile.cross .
7-
# docker run --rm -v $(pwd):/app wails-cross darwin arm64
8-
# docker run --rm -v $(pwd):/app wails-cross darwin amd64
9-
# docker run --rm -v $(pwd):/app wails-cross linux amd64
10-
# docker run --rm -v $(pwd):/app wails-cross linux arm64
11-
# docker run --rm -v $(pwd):/app wails-cross windows amd64
12-
# docker run --rm -v $(pwd):/app wails-cross windows arm64
13-
141
FROM golang:1.25-alpine
152

3+
ARG ZIG_VERSION=0.14.0
4+
ARG MACOS_SDK_VERSION=14.5
5+
ARG IMAGE_VERSION=1.0.0
6+
7+
LABEL org.opencontainers.image.title="Wails Cross-Compiler"
8+
LABEL org.opencontainers.image.description="Cross-compile Wails v3 apps to macOS, Linux, and Windows"
9+
LABEL org.opencontainers.image.source="https://github.com/wailsapp/wails"
10+
LABEL org.opencontainers.image.vendor="Wails"
11+
LABEL org.opencontainers.image.version="${IMAGE_VERSION}"
12+
LABEL io.wails.sdk.version="${MACOS_SDK_VERSION}"
13+
LABEL io.wails.zig.version="${ZIG_VERSION}"
14+
1615
RUN apk add --no-cache curl xz nodejs npm
1716

18-
# Install Zig
19-
ARG ZIG_VERSION=0.14.0
2017
RUN curl -L "https://ziglang.org/download/${ZIG_VERSION}/zig-linux-x86_64-${ZIG_VERSION}.tar.xz" \
2118
| tar -xJ -C /opt \
2219
&& ln -s /opt/zig-linux-x86_64-${ZIG_VERSION}/zig /usr/local/bin/zig
2320

24-
# Download macOS SDK (required for darwin targets)
25-
ARG MACOS_SDK_VERSION=14.5
2621
RUN curl -L "https://github.com/joseluisq/macosx-sdks/releases/download/${MACOS_SDK_VERSION}/MacOSX${MACOS_SDK_VERSION}.sdk.tar.xz" \
2722
| tar -xJ -C /opt \
2823
&& mv /opt/MacOSX${MACOS_SDK_VERSION}.sdk /opt/macos-sdk

0 commit comments

Comments
 (0)