Initial template commit
This commit is contained in:
35
src-tauri/Cargo.toml
Normal file
35
src-tauri/Cargo.toml
Normal file
@@ -0,0 +1,35 @@
|
||||
[lib]
|
||||
name = "template_lib"
|
||||
resolver = "2"
|
||||
crate-type = ["staticlib", "cdylib", "rlib"]
|
||||
|
||||
[package]
|
||||
name = "template"
|
||||
version.workspace = true
|
||||
authors.workspace = true
|
||||
categories.workspace = true
|
||||
edition.workspace = true
|
||||
keywords.workspace = true
|
||||
license.workspace = true
|
||||
readme.workspace = true
|
||||
repository.workspace = true
|
||||
description.workspace = true
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
|
||||
[dependencies]
|
||||
either_of = "0.1.5"
|
||||
serde.workspace = true
|
||||
serde_json.workspace = true
|
||||
tauri.workspace = true
|
||||
|
||||
[build-dependencies]
|
||||
tauri-build.workspace = true
|
||||
|
||||
[features]
|
||||
# this feature is used for production builds or when `devPath` points to the filesystem and the built-in dev server is disabled.
|
||||
# If you use cargo directly instead of tauri's cli you can use this feature flag to switch between tauri's `dev` and `build` modes.
|
||||
# DO NOT REMOVE!!
|
||||
default = ["custom-protocol"]
|
||||
custom-protocol = ["tauri/custom-protocol"]
|
||||
96
src-tauri/Tauri.toml
Normal file
96
src-tauri/Tauri.toml
Normal file
@@ -0,0 +1,96 @@
|
||||
product-name = "template"
|
||||
identifier = "gitea.opensourcecheemsburgers.template"
|
||||
|
||||
[build]
|
||||
before-build-command = "trunk build"
|
||||
before-dev-command = "trunk serve"
|
||||
dev-url = "http://localhost:42069"
|
||||
frontend-dist = "../frontend/dist/"
|
||||
|
||||
[bundle]
|
||||
active = false
|
||||
targets = "all"
|
||||
icon = [
|
||||
"icons/128x128@2x.png",
|
||||
"icons/32x32.png",
|
||||
# "icons/icon.icns",
|
||||
# "icons/icon.png",
|
||||
# "icons/Square107x107Logo.png",
|
||||
# "icons/Square150x150Logo.png",
|
||||
# "icons/Square30x30Logo.png",
|
||||
# "icons/Square44x44Logo.png",
|
||||
# "icons/Square89x89Logo.png",
|
||||
"icons/128x128.png",
|
||||
"icons/android/*",
|
||||
"icons/icon.ico",
|
||||
# "icons/ios/*",
|
||||
# "icons/Square142x142Logo.png",
|
||||
# "icons/Square284x284Logo.png",
|
||||
# "icons/Square310x310Logo.png",
|
||||
# "icons/Square71x71Logo.png",
|
||||
# "icons/StoreLogo.png",
|
||||
]
|
||||
# create-updater-artifacts = false
|
||||
use-local-tools-dir = false
|
||||
|
||||
[bundle.linux.appimage]
|
||||
bundle-media-framework = false
|
||||
files = {}
|
||||
|
||||
[bundle.linux.deb]
|
||||
files = {}
|
||||
|
||||
[bundle.linux.rpm]
|
||||
epoch = 0
|
||||
files = {}
|
||||
release = "0"
|
||||
|
||||
[bundle.macOS]
|
||||
files = {}
|
||||
hardened-runtime = true
|
||||
minimum-system-version = "10.13"
|
||||
|
||||
[bundle.macOS.dmg]
|
||||
app-position = { x = 180, y = 170 }
|
||||
application-folder-position = { x = 480, y = 170 }
|
||||
window-size = { height = 400, width = 660 }
|
||||
|
||||
[bundle.android]
|
||||
min-sdk-version = 24
|
||||
|
||||
[bundle.iOS]
|
||||
minimum-system-version = "13.0"
|
||||
|
||||
[bundle.windows]
|
||||
allow-downgrades = true
|
||||
# certificateThumbprint = ""
|
||||
# digestAlgorithm = ""
|
||||
# nsis = ""
|
||||
# signCommand = ""
|
||||
# timestampUrl = ""
|
||||
# wix = ""
|
||||
tsp = false
|
||||
|
||||
[bundle.windows.webviewInstallMode]
|
||||
silent = true
|
||||
type = "downloadBootstrapper"
|
||||
|
||||
[app]
|
||||
with-global-tauri = true
|
||||
enable-gtk-app-id = false
|
||||
macos-private-api = false
|
||||
windows = [
|
||||
{ url = "http::127.0.0.1:42069" },
|
||||
]
|
||||
|
||||
[app.security]
|
||||
capabilities = []
|
||||
dangerous-disable-asset-csp-modification = false
|
||||
freeze-prototype = false
|
||||
|
||||
[app.security.assetProtocol]
|
||||
enable = false
|
||||
scope = []
|
||||
|
||||
[app.security.pattern]
|
||||
use = "brownfield"
|
||||
3
src-tauri/build.rs
Normal file
3
src-tauri/build.rs
Normal file
@@ -0,0 +1,3 @@
|
||||
fn main() {
|
||||
tauri_build::build();
|
||||
}
|
||||
9
src-tauri/src/lib.rs
Normal file
9
src-tauri/src/lib.rs
Normal file
@@ -0,0 +1,9 @@
|
||||
use tauri::generate_context;
|
||||
|
||||
#[cfg_attr(mobile, tauri::mobile_entry_point)]
|
||||
pub fn run() {
|
||||
#![allow(clippy::missing_panics_doc)]
|
||||
tauri::Builder::default()
|
||||
.run(generate_context!())
|
||||
.expect("Error");
|
||||
}
|
||||
13
src-tauri/src/main.rs
Normal file
13
src-tauri/src/main.rs
Normal file
@@ -0,0 +1,13 @@
|
||||
#![forbid(unsafe_code)]
|
||||
#![forbid(clippy::unwrap_used)]
|
||||
#![warn(clippy::all)]
|
||||
#![warn(clippy::pedantic)]
|
||||
#![warn(clippy::nursery)]
|
||||
#![warn(clippy::cargo)]
|
||||
#![allow(clippy::multiple_crate_versions)]
|
||||
#![allow(clippy::module_name_repetitions)]
|
||||
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]
|
||||
|
||||
fn main() {
|
||||
template_lib::run();
|
||||
}
|
||||
Reference in New Issue
Block a user