{
"$type": "site.standard.document",
"bskyPostRef": {
"cid": "bafyreibnnrn5rfxwtsogps7y4bcpypsvjt6mhpisspgbvr7buumlrdkgei",
"uri": "at://did:plc:yrn4rbgwenb6lfhhzjegbtnc/app.bsky.feed.post/3mm5kqgqlokc2"
},
"path": "/t/l4-help-dusklight-build-for-flathub/12220#post_1",
"publishedAt": "2026-05-16T11:54:02.000Z",
"site": "https://discourse.flathub.org",
"tags": [
"dusklight",
"googles-dawn"
],
"textContent": "Hi there.\n\nI’m about to build a flatpak for dusklight, a zelda twilight princess port for PC. I already am at a point where is builds, with metadata, for local builds. The problem is that it requires networking at build time to pull in a precompiled googles-dawn.\n\nI honestly don’t know how to deal with it. It doesn’t seem that there is a prebuild flatpak of dawn, and self build is out of the question, since this is a HUGE project that will probably need days to build on my hardware.\n\nMy current source is (metainfo commented out, because not required here). Now this works, locally.\n\n\n app-id: dev.twilitrealm.dusklight\n runtime: org.freedesktop.Platform\n runtime-version: \"25.08\"\n sdk: org.freedesktop.Sdk\n sdk-extensions:\n - org.freedesktop.Sdk.Extension.llvm22\n\n command: dusklight\n\n finish-args:\n # Graphical output\n - --socket=wayland\n - --socket=fallback-x11\n # Audio Support\n - --socket=pulseaudio\n - --filesystem=xdg-run/pipewire-0\n # GPU Support\n - --device=dri\n # Read ISO from downloads\n - --filesystem=xdg-download:ro\n # Controller Support\n - --device=input\n\n modules:\n - name: org.libsdl.SDL3\n buildsystem: cmake\n build-options:\n cflags: \"-O3\"\n cxxflags: \"-O3\"\n prepend-path: /usr/lib/sdk/llvm22/bin\n env:\n CC: clang\n CXX: clang++\n sources:\n - type: archive\n url: https://libsdl.org/release/SDL3-3.4.8.tar.gz\n sha256: e9fff7467fb60f037e6708da18b25560649e4c63edc2a69bb871b960d9cbfbba\n\n - name: dusklight\n buildsystem: simple\n build-options:\n build-args:\n # Network access at buildtime\n - --share=network\n cflags: \"-O3\"\n cxxflags: \"-O3\"\n prepend-path: /usr/lib/sdk/llvm22/bin\n env:\n CC: clang\n CXX: clang++\n build-commands:\n - cmake -S . -B build -DDUSK_ENABLE_UPDATE_CHECKER=OFF -DCMAKE_BUILD_TYPE=RelWithDebInfo -DSDL3_DIR=/app -DCMAKE_INSTALL_PREFIX=/app\n - cmake --build build -- -j$(nproc)\n - cmake --install build --prefix /app\n post-install:\n # Correct the binary path\n ## Dusklight needs to run from /app, but flatpak wants it to be in /app/bin.\n ## Create a little helper to do this, while keeping the working directory in /app\n - mkdir -p /app/bin\n - printf '%s\\n' '#!/usr/bin/env sh' 'cd /app' 'exec /app/dusklight \"$@\"' > /app/bin/dusklight\n - chmod +x /app/bin/dusklight\n # Install Desktop file\n - install -Dm644 platforms/freedesktop/dusklight.desktop /app/share/applications/dev.twilitrealm.dusklight.desktop\n ## Fix up icon naming\n - sed -i 's/Icon=dusklight/Icon=dev.twilitrealm.dusklight/' /app/share/applications/dev.twilitrealm.dusklight.desktop\n # Install Icons\n - install -Dm644 platforms/freedesktop/16x16/apps/dusklight.png /app/share/icons/hicolor/16x16/apps/dev.twilitrealm.dusklight.png\n - install -Dm644 platforms/freedesktop/32x32/apps/dusklight.png /app/share/icons/hicolor/32x32/apps/dev.twilitrealm.dusklight.png\n - install -Dm644 platforms/freedesktop/48x48/apps/dusklight.png /app/share/icons/hicolor/48x48/apps/dev.twilitrealm.dusklight.png\n - install -Dm644 platforms/freedesktop/64x64/apps/dusklight.png /app/share/icons/hicolor/64x64/apps/dev.twilitrealm.dusklight.png\n - install -Dm644 platforms/freedesktop/128x128/apps/dusklight.png /app/share/icons/hicolor/128x128/apps/dev.twilitrealm.dusklight.png\n - install -Dm644 platforms/freedesktop/256x256/apps/dusklight.png /app/share/icons/hicolor/256x256/apps/dev.twilitrealm.dusklight.png\n - install -Dm644 platforms/freedesktop/512x512/apps/dusklight.png /app/share/icons/hicolor/512x512/apps/dev.twilitrealm.dusklight.png\n # Install metainfo\n ##- install -Dm644 dev.twilitrealm.dusklight.metainfo.xml /app/share/metainfo/dev.twilitrealm.dusklight.metainfo.xml\n sources:\n - type: git\n url: https://github.com/TwilitRealm/dusklight.git\n tag: v1.1.1\n commit: 7a77d48954847330a5ab55f5c7f2e64cdd25d846\n disable-shallow-clone: true\n # - type: file\n # path: dev.twilitrealm.dusklight.metainfo.xml\n # dest: .\n\n\n\nBut the moment I take away\n\n\n build-args:\n # Network access at buildtime\n - --share=network\n\n\nIt fails at:\n\n\n -- aurora: Fetching prebuilt Dawn package from https://github.com/encounter/dawn-build/releases/download/v20260423.175430/dawn-linux-x86_64.tar.gz\n\n\n\n --- LOG END ---\n error: downloading 'https://github.com/encounter/dawn-build/releases/download/v20260423.175430/dawn-linux-x86_64.tar.gz' failed\n status_code: 6\n status_string: \"Could not resolve hostname\"\n log:\n --- LOG BEGIN ---\n Could not resolve host: github.com\n\n shutting down connection #0\n\n\nThat is completely expected\n\nAs I said, I can’t think of anything the workaround this.",
"title": "L4 help: dusklight build for flathub"
}