-
Notifications
You must be signed in to change notification settings - Fork 136
Add prebuilt Docker image #233
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| * | ||
| !/Package.swift | ||
| !/Package.resolved | ||
| !/Sources | ||
| !/Tests | ||
| !/Linux | ||
| /Linux/packages | ||
| /Linux/staging |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -79,11 +79,15 @@ RUN cd xadi \ | |
| && cp -r bin/libxadi.so /prefix/usr/lib/libxadi.so | ||
|
|
||
|
|
||
| FROM build-base | ||
| FROM build-base AS build-xtool-base | ||
|
|
||
| COPY --from=build-limd /prefix/usr /usr | ||
| COPY --from=build-xadi /prefix/usr /usr | ||
|
|
||
| WORKDIR /xtool | ||
|
|
||
| FROM build-xtool-base AS dev | ||
|
|
||
| # Docker doesn't support FUSE | ||
| ENV APPIMAGE_EXTRACT_AND_RUN=1 | ||
|
|
||
|
|
@@ -92,6 +96,20 @@ ENV APPIMAGE_EXTRACT_AND_RUN=1 | |
| # socat -dd TCP-LISTEN:27015,range=127.0.0.1/32,reuseaddr,fork UNIX-CLIENT:/var/run/usbmuxd | ||
| ENV USBMUXD_SOCKET_ADDRESS=host.docker.internal:27015 | ||
|
|
||
| WORKDIR /xtool | ||
|
|
||
| CMD [ "/bin/bash" ] | ||
|
|
||
| FROM build-xtool-base AS build-xtool | ||
|
|
||
| ADD Package.swift Package.resolved /xtool/ | ||
| RUN swift package resolve | ||
|
|
||
| ADD . /xtool | ||
| RUN ./Linux/build.sh | ||
|
|
||
| FROM swift:6.3 AS xtool | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Device access regresses for the published image because this final stage starts over from Useful? React with 👍 / 👎. |
||
|
|
||
| COPY --from=build-xtool /xtool/Linux/packages/xtool-*.AppImage /xtool/xtool.AppImage | ||
| RUN (cd /xtool && ./xtool.AppImage --appimage-extract) \ | ||
| && mv /xtool/squashfs-root /usr/local/xtool \ | ||
| && rm -rf /xtool \ | ||
| && ln -s /usr/local/xtool/AppRun /usr/local/bin/xtool | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These semver tags get pushed without passing the tag into the build. The github-builder workflow only forwards explicit
build-args, and its Git context does not provide.gitto SwiftPM by default; sincePackage.swiftderivesXTOOL_VERSIONonly from the environment or Git info andxtl_version()falls back tounversioned, everyghcr.io/xtool-org/xtool:<version>image produced here will reportxtool unversionedinstead of the release version.Useful? React with 👍 / 👎.