initial scaffold
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
[package]
|
||||
name = "bytesize"
|
||||
version = "0.1.0"
|
||||
description = "Portable Windows screen-to-clip recorder"
|
||||
authors = ["lashman <lashman@robotbrush.com>"]
|
||||
edition = "2021"
|
||||
rust-version = "1.95"
|
||||
|
||||
[lib]
|
||||
name = "bytesize_lib"
|
||||
crate-type = ["staticlib", "cdylib", "rlib"]
|
||||
|
||||
[build-dependencies]
|
||||
tauri-build = { version = "2.11", features = [] }
|
||||
|
||||
[dependencies]
|
||||
tauri = { version = "2.11", features = [] }
|
||||
tauri-plugin-dialog = "2.11"
|
||||
windows-capture = "1.5"
|
||||
tokio = { version = "1.47", features = ["full"] }
|
||||
serde = { version = "1.0", features = ["derive"] }
|
||||
serde_json = "1.0"
|
||||
toml = "0.9"
|
||||
anyhow = "1.0"
|
||||
thiserror = "2.0"
|
||||
reqwest = { version = "0.13", default-features = false, features = ["rustls-tls", "stream"] }
|
||||
image = "0.25"
|
||||
tracing = "0.1"
|
||||
tracing-subscriber = { version = "0.3", features = ["fmt"] }
|
||||
sha2 = "0.10"
|
||||
|
||||
[features]
|
||||
default = ["custom-protocol"]
|
||||
custom-protocol = ["tauri/custom-protocol"]
|
||||
|
||||
[profile.release]
|
||||
panic = "abort"
|
||||
codegen-units = 1
|
||||
lto = true
|
||||
opt-level = "s"
|
||||
strip = true
|
||||
@@ -0,0 +1,3 @@
|
||||
fn main() {
|
||||
tauri_build::build()
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"$schema": "../gen/schemas/desktop-schema.json",
|
||||
"identifier": "default",
|
||||
"description": "default capabilities for ByteSize",
|
||||
"windows": ["main"],
|
||||
"permissions": [
|
||||
"core:default",
|
||||
"dialog:default"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
// first-run ffmpeg download, sha256 verification, extraction into ./bin/
|
||||
@@ -0,0 +1 @@
|
||||
// screen capture via windows-capture (Windows Graphics Capture API)
|
||||
@@ -0,0 +1 @@
|
||||
// TOML config load/save - state lives in ./config.toml next to the exe
|
||||
@@ -0,0 +1 @@
|
||||
// ffmpeg invocation, target-size encoding logic, codec selection
|
||||
@@ -0,0 +1,12 @@
|
||||
mod bootstrap;
|
||||
mod capture;
|
||||
mod config;
|
||||
mod encode;
|
||||
|
||||
pub fn run() {
|
||||
tauri::Builder::default()
|
||||
.plugin(tauri_plugin_dialog::init())
|
||||
.invoke_handler(tauri::generate_handler![])
|
||||
.run(tauri::generate_context!())
|
||||
.expect("error while running ByteSize")
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]
|
||||
|
||||
fn main() {
|
||||
bytesize_lib::run()
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
{
|
||||
"$schema": "https://schema.tauri.app/config/2",
|
||||
"productName": "ByteSize",
|
||||
"version": "0.1.0",
|
||||
"identifier": "live.lashman.bytesize",
|
||||
"build": {
|
||||
"beforeDevCommand": "npm run dev",
|
||||
"devUrl": "http://localhost:1420",
|
||||
"beforeBuildCommand": "npm run build",
|
||||
"frontendDist": "../dist"
|
||||
},
|
||||
"app": {
|
||||
"windows": [
|
||||
{
|
||||
"label": "main",
|
||||
"title": "ByteSize",
|
||||
"width": 900,
|
||||
"height": 600,
|
||||
"minWidth": 600,
|
||||
"minHeight": 400,
|
||||
"resizable": true,
|
||||
"fullscreen": false
|
||||
}
|
||||
],
|
||||
"security": {
|
||||
"csp": null
|
||||
}
|
||||
},
|
||||
"bundle": {
|
||||
"active": true,
|
||||
"targets": "none",
|
||||
"icon": [
|
||||
"icons/icon.ico"
|
||||
]
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user