This commit is contained in:
Christoph Brandau
2026-06-27 13:03:07 +02:00
commit 3b9d636fdb
25 changed files with 9890 additions and 0 deletions
+2
View File
@@ -0,0 +1,2 @@
/target
/gen/schemas
+4389
View File
File diff suppressed because it is too large Load Diff
+14
View File
@@ -0,0 +1,14 @@
[package]
name = "tauri_git_lite"
version = "0.1.0"
description = "Rust backend for a lightweight Git desktop client"
edition = "2021"
rust-version = "1.77"
build = "build.rs"
[dependencies]
serde = { version = "1", features = ["derive"] }
tauri = { version = "2", features = [] }
[build-dependencies]
tauri-build = { version = "2", features = [] }
+3
View File
@@ -0,0 +1,3 @@
fn main() {
tauri_build::build();
}
+7
View File
@@ -0,0 +1,7 @@
{
"$schema": "../gen/schemas/desktop-schema.json",
"identifier": "default",
"description": "Default permissions for the desktop window",
"windows": ["main"],
"permissions": ["core:default"]
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 70 B

+1459
View File
File diff suppressed because it is too large Load Diff
+33
View File
@@ -0,0 +1,33 @@
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]
mod git;
use git::{
checkout_branch, commit, get_status, list_branches, list_commits, list_file_history,
list_repository_files, merge_branch, open_repository, pull, push, restore_file_from_commit,
restore_files, restore_to_commit, stage_files, unstage_files,
};
fn main() {
tauri::Builder::default()
.invoke_handler(tauri::generate_handler![
open_repository,
get_status,
list_branches,
checkout_branch,
stage_files,
unstage_files,
restore_files,
commit,
pull,
push,
list_commits,
restore_to_commit,
restore_file_from_commit,
merge_branch,
list_repository_files,
list_file_history
])
.run(tauri::generate_context!())
.expect("error while running tauri application");
}
+32
View File
@@ -0,0 +1,32 @@
{
"$schema": "https://schema.tauri.app/config/2",
"productName": "Tauri Git Lite",
"version": "0.1.0",
"identifier": "com.example.tauri-git-lite",
"build": {
"beforeDevCommand": "npm run dev",
"devUrl": "http://127.0.0.1:1420",
"beforeBuildCommand": "npm run build",
"frontendDist": "../dist"
},
"app": {
"windows": [
{
"label": "main",
"title": "Tauri Git Lite",
"width": 1200,
"height": 800,
"minWidth": 900,
"minHeight": 600
}
],
"security": {
"csp": null
}
},
"bundle": {
"active": true,
"targets": "all",
"icon": ["icons/icon.ico"]
}
}