Skip to content

Commit d57bfb2

Browse files
Merge pull request #371 from dhruveshb-mecha/pre-release-next
chore(shell): remove duplicate line in launcher Cargo.toml
2 parents ca321a9 + 6a0d6f7 commit d57bfb2

File tree

2 files changed

+65
-14
lines changed

2 files changed

+65
-14
lines changed

.github/workflows/build-shell-aarch64.yml

Lines changed: 24 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,9 @@ jobs:
3030
fail-fast: false
3131
matrix:
3232
include:
33-
- name: Notification
34-
package: mechanix-notification
3533
- name: Launcher
36-
package: mechanix-launcher
37-
- name: Keyboard
38-
package: mechanix-keyboard
34+
package: launcher
35+
3936

4037
runs-on: ubicloud-standard-2-arm
4138
environment: pre-release
@@ -44,10 +41,10 @@ jobs:
4441
- name: Setup | Checkout
4542
uses: actions/checkout@v4
4643

47-
- name: Install Rust 1.86.0
44+
- name: Install Rust 1.91.1
4845
uses: dtolnay/rust-toolchain@master
4946
with:
50-
toolchain: 1.86.0
47+
toolchain: 1.91.1
5148

5249
- name: Install cargo-deb
5350
run: cargo install cargo-deb
@@ -79,7 +76,11 @@ jobs:
7976
curl \
8077
librust-alsa-sys-dev \
8178
libpulse-dev \
82-
libasound2-dev
79+
libasound2-dev \
80+
libxkbfile-dev \
81+
libxkbcommon-x11-dev \
82+
wayland-protocols \
83+
libxkbcommon-tools \
8384
8485
# Pulp CLI setup
8586
- name: Setup | Pulp CLI
@@ -147,21 +148,30 @@ jobs:
147148
- name: Publish to Pulp [${{ matrix.package }}]
148149
run: |
149150
set -euo pipefail
150-
DEB_FILE=$(ls target/debian/${{ matrix.package }}_*.deb | head -n1)
151-
echo "[INFO] Uploading: $DEB_FILE"
151+
152+
DEB_FILE=$(find ./build/deb -name "${{ matrix.package }}*.deb" -type f | head -n1)
153+
154+
if [ -z "$DEB_FILE" ]; then
155+
echo "[ERROR] No .deb file found for ${{ matrix.package }}"
156+
exit 1
157+
fi
158+
159+
echo "[INFO] 📦 Publishing: $DEB_FILE"
160+
152161
pulp deb content upload \
153162
--repository="${{ vars.MECHA_PULP_DEBS_REPOSITORY_NAME }}" \
154163
--file="$DEB_FILE"
155-
164+
156165
echo "[INFO] Creating publication..."
157166
PUB_HREF=$(pulp deb publication create \
158167
--repository="${{ vars.MECHA_PULP_DEBS_REPOSITORY_NAME }}" \
168+
--signing-service=mecha-pkg-sign \
159169
| jq -r '.pulp_href')
160-
170+
161171
echo "[INFO] Updating distribution..."
162172
pulp deb distribution update \
163173
--name="${{ vars.MECHA_PULP_DEBS_REPOSITORY_NAME }}" \
164174
--base-path="${{ vars.MECHA_PULP_DEBS_REPOSITORY_NAME }}" \
165175
--repository="${{ vars.MECHA_PULP_DEBS_REPOSITORY_NAME }}"
166-
167-
echo "[INFO] ✅ Package ${{ matrix.package }} published."
176+
177+
echo "[INFO] ✅ Package ${{ matrix.package }} published successfully!"

shell/crates/launcher/Cargo.toml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,44 @@ settings_drawer = { path = "../settings_drawer" }
2121
universal_search = { path = "../universal_search" }
2222
running_apps = { path = "../running_apps" }
2323
types = { path = "../types" }
24+
25+
[package.metadata.deb]
26+
maintainer = "Akshay Raina <[email protected]>"
27+
extended-description = """\
28+
Launcher application."""
29+
depends = "$auto"
30+
section = "utility"
31+
priority = "optional"
32+
assets = [
33+
# target/release path is special, and gets replaced by cargo-deb with the actual target dir path.
34+
[
35+
"../../../target/release/launcher",
36+
"usr/bin/",
37+
"755",
38+
],
39+
[
40+
"../../../assets/icons/app-drawer/*",
41+
"usr/share/mechanix/shell/launcher/assets/icons/app-drawer/",
42+
"755",
43+
],
44+
[
45+
"../../../assets/icons/running-apps/*",
46+
"usr/share/mechanix/shell/launcher/assets/icons/running-apps/",
47+
"755",
48+
],
49+
[
50+
"../../../assets/icons/settings-drawer/*",
51+
"usr/share/mechanix/shell/launcher/assets/icons/icons/settings-drawer/",
52+
"755",
53+
],
54+
[
55+
"../../../assets/icons/status-bar/*",
56+
"usr/share/mechanix/shell/launcher/assets/icons/icons/status-bar/",
57+
"755",
58+
],
59+
[
60+
"../../../assets/icons/universal-search/*",
61+
"usr/share/mechanix/shell/launcher/assets/icons/universal-search/",
62+
"755",
63+
],
64+
]

0 commit comments

Comments
 (0)