PikaOS version 1.0.0
This commit is contained in:
parent
e9a1168bec
commit
1a1d64805e
2
debian/changelog
vendored
2
debian/changelog
vendored
@ -1,4 +1,4 @@
|
||||
pika-drivers (0.4.4-100pika2) pikauwu; urgency=medium
|
||||
pika-drivers (1.0.0-100pika1) pikauwu; urgency=medium
|
||||
|
||||
* initial release
|
||||
|
||||
|
4
debian/control
vendored
4
debian/control
vendored
@ -20,8 +20,8 @@ Depends: libadwaita-1-0,
|
||||
gir1.2-gtk-4.0,
|
||||
gir1.2-adw-1,
|
||||
gir1.2-vte-3.91,
|
||||
ubuntu-drivers-common,
|
||||
zenity,
|
||||
inxi,
|
||||
coreutils
|
||||
coreutils,
|
||||
${shlibs:Depends}
|
||||
Description: This utility is meant to be used in PikaOS to manage drivers.
|
||||
|
15
debian/rules
vendored
15
debian/rules
vendored
@ -3,3 +3,18 @@
|
||||
%:
|
||||
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/
|
@ -9,5 +9,12 @@
|
||||
"driver_install_button_tooltip_text": "Install the driver package.",
|
||||
"driver_remove_button_label": "Uninstall",
|
||||
"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."
|
||||
}
|
2
main.sh
2
main.sh
@ -5,6 +5,8 @@ cd ./pika-drivers/
|
||||
|
||||
# Get build deps
|
||||
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
|
||||
dpkg-buildpackage --no-sign
|
||||
|
@ -360,7 +360,7 @@ fn get_drivers(
|
||||
.unwrap();
|
||||
if command_installed_status.status.success() {
|
||||
driver_install_button.set_sensitive(false);
|
||||
if driver.clone().removeble == false {
|
||||
if driver.clone().removeble == true {
|
||||
driver_remove_button.set_sensitive(true);
|
||||
}
|
||||
} else {
|
||||
@ -391,13 +391,13 @@ fn get_drivers(
|
||||
.extra_child(&driver_install_log_terminal_scroll)
|
||||
.width_request(400)
|
||||
.height_request(200)
|
||||
.heading("driver_install_dialog_heading")
|
||||
.heading(t!("driver_install_dialog_heading"))
|
||||
.build();
|
||||
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_reboot",
|
||||
"driver_install_dialog_reboot_label",
|
||||
&t!("driver_install_dialog_reboot_label").to_string(),
|
||||
);
|
||||
driver_install_dialog.set_response_appearance(
|
||||
"driver_install_dialog_reboot",
|
||||
@ -501,8 +501,8 @@ fn get_drivers(
|
||||
} else {
|
||||
let window_no_drivers_box_text = adw::StatusPage::builder()
|
||||
.icon_name("face-cool")
|
||||
.title(t!("first_setup_gameutils_box_text_title"))
|
||||
.description(t!("first_setup_gameutils_box_text_description"))
|
||||
.title(t!("window_no_drivers_box_text_title"))
|
||||
.description(t!("window_no_drivers_box_text_description"))
|
||||
.build();
|
||||
window_no_drivers_box_text.add_css_class("compact");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user