This template should help get you started developing with Tauri and React in Vite.
- VS Code + Tauri + rust-analyzer // import { appWindow } from "@tauri-apps/api/window"; // appWindow.listen("my-window-event", ({ event, payload }) => { });
import { appWindow, LogicalSize } from '@tauri-apps/api/window'; document.getElementById('btn-test').addEventListener('click',async()=>{appWindow.setMaxSize(new LogicalSize(1000, 500));})
function setWindowSize(width, height) { window.TAURI.invoke('setWindowSize', { width, height }); }
// Example usage: setWindowSize(800, 600); // Set window size to 800x60
import reactLogo from "./assets/react.svg";
"tasklist /fi \"IMAGENAME eq ZOOM.EXE\" /FO CSV /NH /V"
"tasklist /fi \"IMAGENAME eq ZOOM.EXE\" /FO CSV /NH /V"
# Image Resizer
Electron application that allows you to select an image and easily change the width and/or height.
Install dependencies:
npm install
Run:
npm start
You can also use Electronmon
to constantly run and not have to reload after making changes
npx electronmon .
There are multiple ways to package Electron apps. I would suggest Electron Forge. I did not implement any packaging into this app.
If your NODE_ENV
is set to development
then you will have the dev tools enabled and available in the menu bar. It will also open them by default.
When set to production
, the dev tools will not be available.