deb: update includes

This commit is contained in:
DashieTM 2024-06-06 21:54:45 +02:00
parent cc3e6647b4
commit c297717ca6
5 changed files with 26 additions and 16 deletions

View file

@ -1,7 +1,6 @@
on:
release:
types: [ created ]
types: [created]
jobs:
release:
runs-on: [self-hosted, ubuntu]
@ -15,15 +14,12 @@ jobs:
- name: Build rust package
run: cargo build --release --verbose
- name: Build Flatpak
run: |
cd flatpak
python3 flatpak-generator.py ../Cargo.lock -o cargo-sources.json
flatpak-builder build org.Xetibo.ReSet.json --force-clean
flatpak build-export export build
flatpak build-bundle export reset.flatpak org.Xetibo.ReSet
run: "cd flatpak\npython3 flatpak-generator.py ../Cargo.lock -o cargo-sources.json \nflatpak-builder build org.Xetibo.ReSet.json --force-clean \nflatpak build-export export build\nflatpak build-bundle export reset.flatpak org.Xetibo.ReSet\n"
- name: Build Ubuntu package
run: |
cp ./target/release/reset ./debian/.
cp ./target/release/reset ./debian/usr/bin/.
cp ./reset.desktop ./debian/share/applications/.
cp ./src/resources/icons/ReSet.svg ./debian/share/pixmaps/.
dpkg-deb --build debian
mv debian.deb reset.deb
- name: Release

20
Cargo.lock generated
View file

@ -941,6 +941,22 @@ dependencies = [
"xdg",
]
[[package]]
name = "re_set-lib"
version = "5.2.2"
source = "git+https://github.com/Xetibo/ReSet-Lib?branch=dev#52c193abbe75b79d7b54c823ecdb6d272a6f9405"
dependencies = [
"dbus",
"dbus-crossroads",
"gtk4",
"libloading",
"libpulse-binding",
"once_cell",
"serial_test",
"toml",
"xdg",
]
[[package]]
name = "redox_syscall"
version = "0.4.1"
@ -961,7 +977,7 @@ dependencies = [
"gtk4",
"ipnetwork",
"libadwaita",
"re_set-lib",
"re_set-lib 5.2.2 (git+https://github.com/Xetibo/ReSet-Lib?branch=dev)",
"reset_daemon",
"tokio",
]
@ -979,7 +995,7 @@ dependencies = [
"libloading",
"libpulse-binding",
"once_cell",
"re_set-lib",
"re_set-lib 5.2.2 (registry+https://github.com/rust-lang/crates.io-index)",
"serial_test",
"tokio",
"toml",

View file

@ -9,8 +9,8 @@ license = "GPL-3.0-or-later"
[dependencies]
reset_daemon = "2.1.1"
# reset_daemon = { git = "https://github.com/Xetibo/ReSet-Daemon", branch = "dev" }
re_set-lib = "5.2.2"
# re_set-lib = { git = "https://github.com/Xetibo/ReSet-Lib" }
# re_set-lib = "5.2.2"
re_set-lib = { git = "https://github.com/Xetibo/ReSet-Lib", branch = "dev" }
adw = { version = "0.6.0", package = "libadwaita", features = ["v1_4"] }
dbus = "0.9.7"
gtk = { version = "0.8.1", package = "gtk4", features = ["v4_12"] }

View file

@ -18,3 +18,4 @@ package() {
install -Dm644 "$pkgname.desktop" "$pkgdir/usr/share/applications/$pkgname.desktop"
install -Dm644 "src/resources/icons/ReSet.svg" "$pkgdir/usr/share/pixmaps/ReSet.svg"
}

View file

@ -1,3 +0,0 @@
install -Dm755 target/release/reset /usr/bin/reset
install -Dm644 reset.desktop /usr/share/applications/reset.desktop
install -Dm644 src/resources/icons/ReSet.svg /usr/share/pixmaps/ReSet.svg