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.
- Git
- Node.js (v18 or higher recommended)
- Rust (https://rustup.rs/)
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")
git clone --recurse-submodules https://github.com/Mesh2Motion/mesh2motion-desktop.git
cd mesh2motion-desktop
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.
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
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