Skip to content

Commit d091acc

Browse files
triallaxsharkdp
authored andcommitted
Includes icons and desktop file in build artifacts
1 parent e85990a commit d091acc

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/ci.yml

+12
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,10 @@ jobs:
213213
# README and LICENSE files
214214
cp "README.md" "LICENSE-MIT" "LICENSE-APACHE" "$ARCHIVE_DIR"
215215
216+
# Desktop file and icons
217+
mkdir "$ARCHIVE_DIR/assets"
218+
cp "assets/numbat.desktop" assets/numbat-*x*.png "assets/numbat.svg" "$ARCHIVE_DIR/assets"
219+
216220
# Numbat prelude
217221
cp -r numbat/modules "$ARCHIVE_DIR"
218222
@@ -262,6 +266,14 @@ jobs:
262266
install -Dm644 "LICENSE-MIT" "${DPKG_DIR}/usr/share/doc/${DPKG_BASENAME}/LICENSE-MIT"
263267
install -Dm644 "LICENSE-APACHE" "${DPKG_DIR}/usr/share/doc/${DPKG_BASENAME}/LICENSE-APACHE"
264268
269+
# Desktop file and icons
270+
install -Dm644 "assets/numbat.desktop" "${DPKG_DIR}/usr/share/applications/numbat.desktop"
271+
install -Dm644 "assets/numbat.svg" "${DPKG_DIR}/usr/share/icons/hicolor/scalable/apps/numbat.svg"
272+
273+
for s in 16 22 24 32 48 64 128 256 512; do
274+
install -Dm644 "assets/numbat-${s}x${s}.png" "${DPKG_DIR}/usr/share/icons/hicolor/${s}x${s}/apps/numbat.png"
275+
done
276+
265277
# Numbat prelude
266278
mkdir -p "${DPKG_DIR}/usr/share/${DPKG_BASENAME}"
267279
cp -r numbat/modules "${DPKG_DIR}/usr/share/${DPKG_BASENAME}"

0 commit comments

Comments
 (0)