package: name: dotnet-10-runtime version: 10.0.0 epoch: 0 description: ".NET 10 Runtime from official Microsoft binaries" copyright: - license: MIT environment: contents: keyring: - https://packages.wolfi.dev/os/wolfi-signing.rsa.pub repositories: - https://packages.wolfi.dev/os packages: - wolfi-baselayout - busybox - curl pipeline: - runs: | case "$(uname -m)" in x86_64) ARCH="x64" ;; aarch64) ARCH="arm64" ;; *) echo "Unsupported arch: $(uname -m)" && exit 1 ;; esac DOTNET_VERSION="${{package.version}}" # Download .NET runtime from Microsoft curl -fsSL "https://dotnetcli.azureedge.net/dotnet/Runtime/${DOTNET_VERSION}/dotnet-runtime-${DOTNET_VERSION}-linux-${ARCH}.tar.gz" \ -o /tmp/dotnet-runtime.tar.gz # Install to package destination mkdir -p "${{targets.destdir}}/usr/share/dotnet" tar xf /tmp/dotnet-runtime.tar.gz -C "${{targets.destdir}}/usr/share/dotnet" # Create symlink mkdir -p "${{targets.destdir}}/usr/bin" ln -s /usr/share/dotnet/dotnet "${{targets.destdir}}/usr/bin/dotnet" rm /tmp/dotnet-runtime.tar.gz