mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-25 13:36:50 +00:00
Add utility functions and configurations for rustfs-gui (#220)
* Initialize rustfs-gui crate - Set up the `rustfs-gui` package in the workspace. - Add `dioxus` dependency with `router` feature. - Configure workspace settings for edition, license, repository, and rust-version. - Include lints configuration for the workspace. * Add utility functions and configurations for rustfs-gui - Implement `RustFSConfig` struct with default values and methods for loading, saving, and clearing configurations. - Add `ServiceCommand` enum for managing service commands. - Implement `ServiceManager` struct for starting, stopping, and restarting the service. - Include helper functions for checking service status, preparing the service, downloading files, and unzipping files. - Add logging and error handling for service operations.
This commit is contained in:
@@ -0,0 +1,60 @@
|
||||
[application]
|
||||
|
||||
# App (Project) Name
|
||||
name = "rustfs-gui"
|
||||
|
||||
# The static resource path
|
||||
asset_dir = "public"
|
||||
|
||||
[web.app]
|
||||
|
||||
# HTML title tag content
|
||||
title = "rustfs-gui"
|
||||
|
||||
# include `assets` in web platform
|
||||
[web.resource]
|
||||
|
||||
# Additional CSS style files
|
||||
style = []
|
||||
|
||||
# Additional JavaScript files
|
||||
script = []
|
||||
|
||||
[web.resource.dev]
|
||||
|
||||
# Javascript code file
|
||||
# serve: [dev-server] only
|
||||
script = []
|
||||
|
||||
[bundle]
|
||||
identifier = "com.rustfs.cli.gui"
|
||||
|
||||
publisher = "RustFsGUI"
|
||||
|
||||
category = "Utility"
|
||||
|
||||
copyright = "Copyright 2025 rustfs.com"
|
||||
|
||||
icon = [
|
||||
"assets/icons/icon_16x16.png",
|
||||
"assets/icons/icon_16x16@2x.png",
|
||||
"assets/icons/icon_32x32.png",
|
||||
"assets/icons/icon_32x32@2x.png",
|
||||
"assets/icons/icon_128x128.png",
|
||||
"assets/icons/icon_128x128@2x.png",
|
||||
"assets/icons/icon_256x256.png",
|
||||
"assets/icons/icon_256x256@2x.png",
|
||||
"assets/icons/icon_512x512.png",
|
||||
"assets/icons/icon_512x512@2x.png",
|
||||
"assets/icons/icon.icns",
|
||||
"assets/icons/icon.ico"
|
||||
]
|
||||
#[bundle.macos]
|
||||
#provider_short_name = "RustFs"
|
||||
[bundle.windows]
|
||||
tsp = true
|
||||
icon_path = "assets/icons/icon.ico"
|
||||
allow_downgrades = true
|
||||
[bundle.windows.webview_install_mode]
|
||||
[bundle.windows.webview_install_mode.EmbedBootstrapper]
|
||||
silent = true
|
||||
Reference in New Issue
Block a user