Compare commits
No commits in common. "b1b86fd74b660949b5e262d98fd54c0f102c3f9f" and "1ff18e0fbf69ddc355a1c400d3e8a8202e6e8e45" have entirely different histories.
b1b86fd74b
...
1ff18e0fbf
8 changed files with 4 additions and 53 deletions
2
Cargo.lock
generated
2
Cargo.lock
generated
|
@ -1456,7 +1456,7 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "timeurs"
|
name = "timeurs"
|
||||||
version = "1.0.0"
|
version = "0.1.0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"async-channel",
|
"async-channel",
|
||||||
"gtk4",
|
"gtk4",
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "timeurs"
|
name = "timeurs"
|
||||||
version = "1.0.0"
|
version = "0.1.0"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
|
|
||||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||||
|
|
|
@ -1,4 +0,0 @@
|
||||||
Timeurs
|
|
||||||
=======
|
|
||||||
|
|
||||||
minimal GUI for timing.
|
|
1
packaging/.gitignore
vendored
1
packaging/.gitignore
vendored
|
@ -1 +0,0 @@
|
||||||
/root
|
|
|
@ -1,30 +0,0 @@
|
||||||
# Maintainer: Matthieu Jolimaitre <matthieu@imagevo.fr>
|
|
||||||
pkgname=timeurs
|
|
||||||
pkgver=1.0.0
|
|
||||||
pkgrel=1
|
|
||||||
pkgdesc=""
|
|
||||||
arch=('i686' 'x86_64')
|
|
||||||
url=""
|
|
||||||
license=('GPL')
|
|
||||||
depends=('gtk4')
|
|
||||||
makedepends=()
|
|
||||||
source=("$pkgname-$pkgver.tar.gz")
|
|
||||||
md5sums=()
|
|
||||||
validpgpkeys=()
|
|
||||||
|
|
||||||
prepare() {
|
|
||||||
cd $pkgname-$pkgver
|
|
||||||
export RUSTUP_TOOLCHAIN=stable
|
|
||||||
cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
|
|
||||||
}
|
|
||||||
|
|
||||||
build() {
|
|
||||||
cd "$pkgname-$pkgver"
|
|
||||||
./configure --prefix=/usr
|
|
||||||
make
|
|
||||||
}
|
|
||||||
|
|
||||||
package() {
|
|
||||||
cd "$pkgname-$pkgver"
|
|
||||||
make DESTDIR="$pkgdir/" install
|
|
||||||
}
|
|
|
@ -1,6 +0,0 @@
|
||||||
#!/bin/sh
|
|
||||||
|
|
||||||
cargo
|
|
||||||
|
|
||||||
rm -fr target
|
|
||||||
mkdir -p target
|
|
|
@ -1,8 +0,0 @@
|
||||||
[Desktop Entry]
|
|
||||||
Type=Application
|
|
||||||
Encoding=UTF-8
|
|
||||||
Name=Timeurs
|
|
||||||
Comment=Timer app
|
|
||||||
Exec=/usr/bin/timeurs
|
|
||||||
Terminal=false
|
|
||||||
Categories=Tags;Describing;Application
|
|
|
@ -11,7 +11,7 @@ use state::{Cmd, State};
|
||||||
fn main() -> glib::ExitCode {
|
fn main() -> glib::ExitCode {
|
||||||
// Create a new application
|
// Create a new application
|
||||||
let app = Application::builder()
|
let app = Application::builder()
|
||||||
.application_id("org.gtk_rs.timeurs")
|
.application_id("org.gtk_rs.HelloWorld2")
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
let (send, rec) = mpsc::channel();
|
let (send, rec) = mpsc::channel();
|
||||||
|
@ -99,7 +99,7 @@ fn build_ui(app: &Application, cmd: Sender<Cmd>) {
|
||||||
|
|
||||||
let window = ApplicationWindow::builder()
|
let window = ApplicationWindow::builder()
|
||||||
.application(app)
|
.application(app)
|
||||||
.title("Timeu.rs")
|
.title("My GTK App")
|
||||||
.child(&container)
|
.child(&container)
|
||||||
.build();
|
.build();
|
||||||
window.present();
|
window.present();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue