-
Notifications
You must be signed in to change notification settings - Fork 0
/
melange.yaml
34 lines (32 loc) · 951 Bytes
/
melange.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
package:
name: studio
version: 0.1.0
epoch: 0
description: "CLI system manager for Atomic Studio distributions"
copyright:
- license: Apache-2.0
paths: ["*"]
dependencies:
runtime:
- podman
- nushell
target-architecture:
- x86_64
environment:
contents:
repositories:
- https://dl-cdn.alpinelinux.org/alpine/edge/main
- https://dl-cdn.alpinelinux.org/alpine/edge/community
packages:
- bash
pipeline:
- name: Build Studio CLI
runs: |
set -euo pipefail
mkdir -p build "${{targets.destdir}}/usr/bin" "${{targets.destdir}}/usr/libexec"
cp src/studio build/studio
cp -r src/libexec build/libexec
sed -i 's~\.\/libexec~\/usr\/libexec/~' build/studio
find . -type f -not -path '*/\.*' -exec sed -i 's/pkexec/sudo/g' {} +
cp build/studio "${{targets.destdir}}/usr/bin/studio"
cp -r build/libexec/* "${{targets.destdir}}/usr/libexec"