MacOS MVP Requirements
This commit is contained in:
4
src-tauri/Cargo.lock
generated
4
src-tauri/Cargo.lock
generated
@@ -27,8 +27,8 @@ dependencies = [
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "allenwrench-app"
|
||||
version = "0.0.0"
|
||||
name = "allenwrench"
|
||||
version = "0.1.1"
|
||||
dependencies = [
|
||||
"arboard",
|
||||
"enigo",
|
||||
|
@@ -1,10 +1,10 @@
|
||||
[package]
|
||||
name = "allenwrench-app"
|
||||
version = "0.0.0"
|
||||
description = "A Tauri App"
|
||||
authors = ["you"]
|
||||
license = ""
|
||||
repository = ""
|
||||
name = "allenwrench"
|
||||
version = "0.1.1"
|
||||
description = "Hexcorp Drone Input Tool"
|
||||
authors = ["Liz Cray", "4661"]
|
||||
license = "Apache-2.0"
|
||||
repository = "git@git.corrupt.link:liz/AllenWrench.git"
|
||||
edition = "2021"
|
||||
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
@@ -1,6 +1,7 @@
|
||||
// Prevents additional console window on Windows in release, DO NOT REMOVE!!
|
||||
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]
|
||||
|
||||
use tauri::{Manager, Size, LogicalSize};
|
||||
use enigo::{Enigo, Key, KeyboardControllable, MouseControllable};
|
||||
use std::thread;
|
||||
use std::time::Duration;
|
||||
@@ -73,8 +74,18 @@ fn type_str(input: String) {
|
||||
|
||||
fn main() {
|
||||
tauri::Builder::default()
|
||||
.setup(|app| {
|
||||
let main_window = app.get_window("main").unwrap();
|
||||
|
||||
#[cfg(target_os = "macos")] {
|
||||
let _ = main_window.set_size(Size::Logical(LogicalSize {width: 400.0, height: 352.0}));
|
||||
}
|
||||
|
||||
Ok(())
|
||||
})
|
||||
.plugin(tauri_plugin_positioner::init())
|
||||
.invoke_handler(tauri::generate_handler![type_str, get_mouse_pos])
|
||||
.run(tauri::generate_context!())
|
||||
.expect("error while running tauri application");
|
||||
|
||||
}
|
||||
|
@@ -7,7 +7,7 @@
|
||||
"withGlobalTauri": false
|
||||
},
|
||||
"package": {
|
||||
"productName": "allenwrench-app",
|
||||
"productName": "allenwrench",
|
||||
"version": "0.1.1"
|
||||
},
|
||||
"tauri": {
|
||||
@@ -48,7 +48,9 @@
|
||||
}
|
||||
},
|
||||
"bundle": {
|
||||
"category": "Utility",
|
||||
"active": true,
|
||||
"copyright": "Copyright 2023 Elizabeth Cray",
|
||||
"targets": "all",
|
||||
"identifier": "lgbt.cray.allenwrench",
|
||||
"icon": [
|
||||
@@ -59,7 +61,12 @@
|
||||
],
|
||||
"resources": [
|
||||
"resources/*"
|
||||
]
|
||||
],
|
||||
"macOS": {
|
||||
"minimumSystemVersion": "10.11",
|
||||
"license": "../LICENSE.txt",
|
||||
"entitlements": "../entitlements.plist"
|
||||
}
|
||||
},
|
||||
"security": {
|
||||
"csp": null
|
||||
@@ -67,7 +74,7 @@
|
||||
"windows": [
|
||||
{
|
||||
"fullscreen": false,
|
||||
"resizable": false,
|
||||
"resizable": true,
|
||||
"maximizable": false,
|
||||
"minimizable": false,
|
||||
"alwaysOnTop": true,
|
||||
|
Reference in New Issue
Block a user