PikaOS version 1.0.0

This commit is contained in:
Ward from fusion-voyager-3 2024-02-23 22:18:07 +03:00
parent e9a1168bec
commit 1a1d64805e
6 changed files with 35 additions and 11 deletions

2
debian/changelog vendored
View File

@ -1,4 +1,4 @@
pika-drivers (0.4.4-100pika2) pikauwu; urgency=medium pika-drivers (1.0.0-100pika1) pikauwu; urgency=medium
* initial release * initial release

4
debian/control vendored
View File

@ -20,8 +20,8 @@ Depends: libadwaita-1-0,
gir1.2-gtk-4.0, gir1.2-gtk-4.0,
gir1.2-adw-1, gir1.2-adw-1,
gir1.2-vte-3.91, gir1.2-vte-3.91,
ubuntu-drivers-common,
zenity, zenity,
inxi, inxi,
coreutils coreutils,
${shlibs:Depends}
Description: This utility is meant to be used in PikaOS to manage drivers. Description: This utility is meant to be used in PikaOS to manage drivers.

15
debian/rules vendored
View File

@ -3,3 +3,18 @@
%: %:
dh ${@} dh ${@}
override_dh_auto_install:
/root/.cargo/bin/cargo fetch
/root/.cargo/bin/cargo build --release
mkdir -p debian/pika-drivers/usr/bin/
cp -vf target/release/pika-drivers debian/pika-drivers/usr/bin/
chmod 755 debian/pika-drivers/usr/bin/pika-drivers
mkdir -p debian/pika-drivers/usr/lib/pika/drivers/
mkdir -p debian/pika-drivers/usr/share/glib-2.0/schemas/
cp data/*.sh debian/pika-drivers/usr/lib/pika/drivers/
cp data/*.xml debian/pika-drivers/usr/share/glib-2.0/schemas/
chmod 755 debian/pika-drivers/usr/lib/pika/drivers/*.sh
mkdir -p debian/pika-drivers/usr/share/applications
mkdir -p debian/pika-drivers/usr/share/icons/hicolor/scalable/apps
cp -vf data/com.github.pikaos-linux.pikadrivers.svg debian/pika-drivers/usr/share/icons/hicolor/scalable/apps/
cp -vf data/com.github.pikaos-linux.pikadrivers.desktop debian/pika-drivers/usr/share/applications/

View File

@ -9,5 +9,12 @@
"driver_install_button_tooltip_text": "Install the driver package.", "driver_install_button_tooltip_text": "Install the driver package.",
"driver_remove_button_label": "Uninstall", "driver_remove_button_label": "Uninstall",
"driver_remove_button_tooltip_text": "Uninstall the driver package.", "driver_remove_button_tooltip_text": "Uninstall the driver package.",
"driver_expander_row_title_suffix": " (WARNING: THIS DRIVER IS EXPERMINTAL USE AT YOUR OWN RISK!)" "driver_expander_row_title_suffix": " (WARNING: THIS DRIVER IS EXPERIMENTAL USE AT YOUR OWN RISK!)",
"driver_install_dialog_heading": "Driver Processing Log",
"driver_install_dialog_ok_label": "Reboot later",
"driver_install_dialog_reboot_label": "Reboot now",
"driver_install_dialog_success_true": "Driver processed successfully!",
"driver_install_dialog_success_false": "Driver did not process successfully!",
"window_no_drivers_box_text_title": "No Devices require any special drivers",
"window_no_drivers_box_text_description": "No Devices installed on your system, have a special driver in our database."
} }

View File

@ -5,6 +5,8 @@ cd ./pika-drivers/
# Get build deps # Get build deps
apt-get build-dep ./ -y apt-get build-dep ./ -y
apt-get install curl -y
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | CARGO_HOME=/root/.cargo sh -s -- -y
# Build package # Build package
dpkg-buildpackage --no-sign dpkg-buildpackage --no-sign

View File

@ -360,7 +360,7 @@ fn get_drivers(
.unwrap(); .unwrap();
if command_installed_status.status.success() { if command_installed_status.status.success() {
driver_install_button.set_sensitive(false); driver_install_button.set_sensitive(false);
if driver.clone().removeble == false { if driver.clone().removeble == true {
driver_remove_button.set_sensitive(true); driver_remove_button.set_sensitive(true);
} }
} else { } else {
@ -391,13 +391,13 @@ fn get_drivers(
.extra_child(&driver_install_log_terminal_scroll) .extra_child(&driver_install_log_terminal_scroll)
.width_request(400) .width_request(400)
.height_request(200) .height_request(200)
.heading("driver_install_dialog_heading") .heading(t!("driver_install_dialog_heading"))
.build(); .build();
driver_install_dialog driver_install_dialog
.add_response("driver_install_dialog_ok", "driver_install_dialog_ok_label"); .add_response("driver_install_dialog_ok", &t!("driver_install_dialog_ok_label").to_string());
driver_install_dialog.add_response( driver_install_dialog.add_response(
"driver_install_dialog_reboot", "driver_install_dialog_reboot",
"driver_install_dialog_reboot_label", &t!("driver_install_dialog_reboot_label").to_string(),
); );
driver_install_dialog.set_response_appearance( driver_install_dialog.set_response_appearance(
"driver_install_dialog_reboot", "driver_install_dialog_reboot",
@ -501,8 +501,8 @@ fn get_drivers(
} else { } else {
let window_no_drivers_box_text = adw::StatusPage::builder() let window_no_drivers_box_text = adw::StatusPage::builder()
.icon_name("face-cool") .icon_name("face-cool")
.title(t!("first_setup_gameutils_box_text_title")) .title(t!("window_no_drivers_box_text_title"))
.description(t!("first_setup_gameutils_box_text_description")) .description(t!("window_no_drivers_box_text_description"))
.build(); .build();
window_no_drivers_box_text.add_css_class("compact"); window_no_drivers_box_text.add_css_class("compact");