Skip to content

Mesh2Motion/mesh2motion-desktop

Repository files navigation

Mesh2Motion Desktop Application (WIP)

This is project that isn't fully functioning yet that allows an offline version application for Mesh2Motion. It uses the "Tauri" framework to build it (https://v2.tauri.app/). It is like electron, but creates much smaller binaries.

The current limitations that need to be addressed are the following:

  • Downloading animations automatically goes to "Downloads" folder. Should change this to a 'save as' dialog
  • Only have tried this on Windows.
  • Need to disable/hide things that break when the internet is not available
  • Currently outputting the development build, so it has dev tools available (Ctrl+Shift+I)
  • probably more things once those issues are taken care of.

Step 1: Prerequisites

Note: If "rustc --version" isn't found, try to run this command to force powershell to refresh environment variables (Windows)

$env:Path = [System.Environment]::GetEnvironmentVariable("Path","Machine") + ";" + [System.Environment]::GetEnvironmentVariable("Path","User")

Step 2: Clone the Mesh2Motion desktop repository with submodule (M2M app)

git clone --recurse-submodules https://github.com/Mesh2Motion/mesh2motion-desktop.git
cd mesh2motion-desktop

2. Install dependencies and build

npm install
npx tauri dev   (not sure if this command is actually needed)

if on windows

npm run build:desktop-windows   

if on linux/MacOS

npm run build:desktop-linux   

Note: The first build will be very slow. This is because Rust needs to download and compile a bunch of components. Take a snack break and come back.

Step 4: Find Your App

The built desktop application will be generated in the folder:

(release build) src-tauri > target > release > tauri-app.exe

(debug build that has developer tools enabled - default for now) src-tauri > target > debug > tauri-app.exe

Other

When generating the application icon, you don't need to create all the versions. Update the "app-icon.png". Then run the following command

npm run tauri icon

About

A desktop application version of Mesh2Motion

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors