mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-04-23 11:36:13 +02:00
db7f4f9a41
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
726 B
726 B
os, os-js
| os | os-js |
|---|---|
| minor | minor |
The os plugin is recieving a few changes to improve consistency and add new features:
- Renamed
Kindenum toOsTypeandkind()function toos_type(). - Added
family(),exe_extension(), andhostname()functions and their equivalents for JS. - Removed
tempdir()function and its equivalent on JS, usestd::env::temp_dirinstead oftemp_dirfromtauri::path::PathResolver::temp_dirandpath.tempDiron JS. - Modified
platform()implementation to returnwindowsinstead ofwin32andmacosinstead ofdarwinto align with Rust'sstd::env::consts::OS EOLconst in JS has been modified into a functioneol()fix import issues in frameworks likenext.js