14 lines
417 B
Bash
Executable File
14 lines
417 B
Bash
Executable File
#!/usr/bin/bash
|
|
|
|
set -e
|
|
|
|
# Download claude-code binary
|
|
wget -O /app/claude https://artifactapi.k8s.syd1.au.unkin.net/api/v1/remote/claude-ai/claude-code-releases/${PACKAGE_VERSION}/linux-x64/claude
|
|
chmod +x /app/claude
|
|
|
|
# Process the nfpm.yaml template with environment variables
|
|
envsubst < /app/resources/nfpm.yaml > /app/nfpm.yaml
|
|
|
|
# Build the RPM
|
|
nfpm pkg --config /app/nfpm.yaml --target /app/dist --packager rpm
|