Compare commits
2 Commits
e063993af0
...
dc9c833ad9
Author | SHA1 | Date |
---|---|---|
Mike Yuan | dc9c833ad9 | |
Daan De Meyer | 0e44a351ea |
10
mkosi.clangd
10
mkosi.clangd
|
@ -1,12 +1,18 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# SPDX-License-Identifier: LGPL-2.1-or-later
|
# SPDX-License-Identifier: LGPL-2.1-or-later
|
||||||
|
|
||||||
MKOSI_CONFIG="$(mkosi --json summary | jq -r .Images[-1])"
|
if command -v flatpak-spawn >/dev/null; then
|
||||||
|
SPAWN=(flatpak-spawn --host)
|
||||||
|
else
|
||||||
|
SPAWN=()
|
||||||
|
fi
|
||||||
|
|
||||||
|
MKOSI_CONFIG="$("${SPAWN[@]}" --host mkosi --json summary | jq -r .Images[-1])"
|
||||||
DISTRIBUTION="$(jq -r .Distribution <<< "$MKOSI_CONFIG")"
|
DISTRIBUTION="$(jq -r .Distribution <<< "$MKOSI_CONFIG")"
|
||||||
RELEASE="$(jq -r .Release <<< "$MKOSI_CONFIG")"
|
RELEASE="$(jq -r .Release <<< "$MKOSI_CONFIG")"
|
||||||
ARCH="$(jq -r .Architecture <<< "$MKOSI_CONFIG")"
|
ARCH="$(jq -r .Architecture <<< "$MKOSI_CONFIG")"
|
||||||
|
|
||||||
exec mkosi \
|
exec "${SPAWN[@]}" mkosi \
|
||||||
--incremental=strict \
|
--incremental=strict \
|
||||||
--build-sources-ephemeral=no \
|
--build-sources-ephemeral=no \
|
||||||
--format=none \
|
--format=none \
|
||||||
|
|
Loading…
Reference in New Issue