From db247e9733c2c3e43e280b19efb4e9a62934ed3c Mon Sep 17 00:00:00 2001 From: "Ward Nakchbandi (Cosmic Fusion)" <83735213+CosmicFusion@users.noreply.github.com> Date: Tue, 20 Feb 2024 23:30:45 +0300 Subject: [PATCH] Update rules --- debian/rules | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/debian/rules b/debian/rules index 831e453..51a29af 100755 --- a/debian/rules +++ b/debian/rules @@ -9,9 +9,32 @@ # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 +export PATH := "/root/.cargo/bin:$(PWD):$(PATH)" + %: dh $@ +override_dh_auto_install: + /root/.cargo/bin/cargo fetch + /root/.cargo/bin/cargo build --release + #cp -vf target/release/pika-installer-gtk4 debian/pika-installer-gtk4/usr/bin/ + #chmod 755 debian/pika-installer-gtk4/usr/bin/pika-installer-gtk4 + mkdir -p debian/pika-installer-gtk4/usr/lib/pika/pika-installer-gtk4/bin/ + cp -vf target/release/pika-installer-gtk4 debian/pika-installer-gtk4/usr/lib/pika/pika-installer-gtk4/bin/ + chmod 755 debian/pika-installer-gtk4/usr/lib/pika/pika-installer-gtk4/bin/pika-installer-gtk4 + mkdir -p debian/pika-installer-gtk4)/usr/lib/pika/pika-installer-gtk4/scripts/ + mkdir -p debian/pika-installer-gtk4/usr/share/glib-2.0/schemas/ + cp -rvf data/scripts/*.sh debian/pika-installer-gtk4/usr/lib/pika/pika-installer-gtk4/scripts/ + cp -rvf data/scripts/*.py debian/pika-installer-gtk4/usr/lib/pika/pika-installer-gtk4/scripts/ + cp data/*.xml debian/pika-installer-gtk4/usr/share/glib-2.0/schemas/ + chmod 755 debian/pika-installer-gtk4/usr/lib/pika/pika-installer-gtk4/scripts/*.sh + chmod 755 debian/pika-installer-gtk4/usr/lib/pika/pika-installer-gtk4/scripts/*.py + mkdir -p debian/pika-installer-gtk4/usr/share/applications + mkdir -p debian/pika-installer-gtk4/usr/share/icons/hicolor/scalable/apps + #cp -vf data/pika-drivers.svg debian/pika-installer-gtk4/usr/share/icons/hicolor/scalable/apps/ + #cp -vf data/com.pika.drivers.desktop debian/pika-installer-gtk4/usr/share/applications/ + #makepot debian/pika-installer-gtk4/usr/share/locale + override_dh_missing: dh_missing