add make file
This commit is contained in:
parent
ab2abf6c36
commit
4d923a7516
21
Makefile
Normal file
21
Makefile
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
export PATH := "$(PWD):$(PATH)"
|
||||||
|
|
||||||
|
all:
|
||||||
|
true
|
||||||
|
|
||||||
|
install:
|
||||||
|
cargo fetch
|
||||||
|
cargo build --release
|
||||||
|
mkdir -p $(DESTDIR)/usr/bin/
|
||||||
|
mkdir -p $(DESTDIR)/usr/lib/pika/pikman-update-manager/scripts/
|
||||||
|
mkdir -p $(DESTDIR)/usr/share/glib-2.0/schemas/
|
||||||
|
mkdir -p $(DESTDIR)/usr/share/applications
|
||||||
|
mkdir -p $(DESTDIR)/usr/share/icons/hicolor/scalable/apps
|
||||||
|
cp -vf target/release/pikman-update-manager $(DESTDIR)/usr/bin/
|
||||||
|
cp -vf target/release/apt_update $(DESTDIR)/usr/lib/pika/pikman-update-manager/scripts/
|
||||||
|
cp -vf target/release/apt_full_upgrade $(DESTDIR)/usr/lib/pika/pikman-update-manager/scripts/
|
||||||
|
cp -vf data/*.gschema.xml $(DESTDIR)/usr/share/glib-2.0/schemas/
|
||||||
|
#cp -vf data/com.github.pikaos-linux.pikagnomelayouts.desktop $(DESTDIR)/usr/share/applications/
|
||||||
|
#cp -vfr data/polkit-1 $(DESTDIR)/usr/share/
|
||||||
|
chmod 755 $(DESTDIR)/usr/bin/pika-pikman-update-manager
|
||||||
|
chmod 755 $(DESTDIR)/usr/lib/pika/pikman-update-manager/scripts/*
|
@ -62,7 +62,7 @@ pub fn apt_update_page(
|
|||||||
thread::spawn(move || {
|
thread::spawn(move || {
|
||||||
let apt_update_command = Command::new("pkexec")
|
let apt_update_command = Command::new("pkexec")
|
||||||
.args([
|
.args([
|
||||||
"/home/ward/RustroverProjects/pkg-pikman-update-manager/target/debug/apt_update",
|
"/usr/lib/pika/pikman-update-manager/scripts/apt_update",
|
||||||
])
|
])
|
||||||
.status()
|
.status()
|
||||||
.unwrap();
|
.unwrap();
|
||||||
|
@ -413,7 +413,7 @@ fn apt_full_upgrade_from_socket(
|
|||||||
thread::spawn(move || {
|
thread::spawn(move || {
|
||||||
let apt_upgrade_command = Command::new("pkexec")
|
let apt_upgrade_command = Command::new("pkexec")
|
||||||
.args([
|
.args([
|
||||||
"/home/ward/RustroverProjects/pkg-pikman-update-manager/target/debug/apt_full_upgrade",
|
"/usr/lib/pika/pikman-update-manager/scripts/apt_full_upgrade",
|
||||||
])
|
])
|
||||||
.status()
|
.status()
|
||||||
.unwrap();
|
.unwrap();
|
||||||
|
Loading…
Reference in New Issue
Block a user