mirror of
https://github.com/Drop-OSS/drop-app.git
synced 2025-11-19 03:01:26 +10:00
Compare commits
1 Commits
42ff3b1331
...
fix-cmd-wi
| Author | SHA1 | Date | |
|---|---|---|---|
| 12b39bab68 |
24
README.md
24
README.md
@ -1,21 +1,29 @@
|
|||||||
# Drop Desktop Client
|
# Drop App
|
||||||
|
|
||||||
The Drop Desktop Client is the companion app for [Drop](https://github.com/Drop-OSS/drop). It is the official & intended way to download and play games on your Drop server.
|
Drop app is the companion app for [Drop](https://github.com/Drop-OSS/drop). It uses a Tauri base with Nuxt 3 + TailwindCSS on top of it, so we can re-use components from the web UI.
|
||||||
|
|
||||||
## Internals
|
## Running
|
||||||
|
Before setting up the drop app, be sure that you have a server set up.
|
||||||
|
The instructions for this can be found on the [Drop Docs](https://docs.droposs.org/docs/guides/quickstart)
|
||||||
|
|
||||||
It uses a Tauri base with Nuxt 3 + TailwindCSS on top of it, so we can re-use components from the web UI.
|
## Current features
|
||||||
|
Currently supported are the following features:
|
||||||
|
- Signin (with custom server)
|
||||||
|
- Database registering & recovery
|
||||||
|
- Dynamic library fetching from server
|
||||||
|
- Installing & uninstalling games
|
||||||
|
- Download progress monitoring
|
||||||
|
- Launching / playing games
|
||||||
|
|
||||||
## Development
|
## Development
|
||||||
Before setting up a development environemnt, be sure that you have a server set up. The instructions for this can be found on the [Drop Docs](https://docs.droposs.org/docs/guides/quickstart).
|
|
||||||
|
|
||||||
Then, install dependencies with `yarn`. This'll install the custom builder's dependencies. Then, check everything works properly with `yarn tauri build`.
|
Install dependencies with `yarn`
|
||||||
|
|
||||||
Run the app in development with `yarn tauri dev`. NVIDIA users on Linux, use shell script `./nvidia-prop-dev.sh`
|
Run the app in development with `yarn tauri dev`. NVIDIA users on Linux, use shell script `./nvidia-prop-dev.sh`
|
||||||
|
|
||||||
To manually specify the logging level, add the environment variable `RUST_LOG=[debug, info, warn, error]` to `yarn tauri dev`:
|
To manually specify the logging level, add the environment variable `RUST_LOG=[debug, info, warn, error]` to `yarn tauri dev`:
|
||||||
|
|
||||||
e.g. `RUST_LOG=debug yarn tauri dev`
|
e.g. `RUST_LOG=debug yarn tauri dev`
|
||||||
|
|
||||||
## Contributing
|
## Contributing
|
||||||
Check out the contributing guide on our Developer Docs: [Drop Developer Docs - Contributing](https://developer.droposs.org/contributing).
|
Check the original [Drop repo](https://github.com/Drop-OSS/drop/blob/main/CONTRIBUTING.md) for contributing guidelines.
|
||||||
@ -486,9 +486,6 @@ fn run_on_tray<T: FnOnce()>(f: T) {
|
|||||||
if match std::env::var("NO_TRAY_ICON") {
|
if match std::env::var("NO_TRAY_ICON") {
|
||||||
Ok(s) => s.to_lowercase() != "true",
|
Ok(s) => s.to_lowercase() != "true",
|
||||||
Err(_) => true,
|
Err(_) => true,
|
||||||
} || match option_env!("NO_TRAY_ICON") {
|
|
||||||
Some(s) => s.to_lowercase() != "true",
|
|
||||||
None => true,
|
|
||||||
} {
|
} {
|
||||||
(f)();
|
(f)();
|
||||||
}
|
}
|
||||||
|
|||||||
@ -346,19 +346,24 @@ impl ProcessManager<'_> {
|
|||||||
.to_string();
|
.to_string();
|
||||||
|
|
||||||
#[cfg(target_os = "windows")]
|
#[cfg(target_os = "windows")]
|
||||||
use std::os::windows::process::CommandExt;
|
let mut command = {
|
||||||
#[cfg(target_os = "windows")]
|
use std::os::windows::process::CommandExt;
|
||||||
let mut command = Command::new("cmd");
|
let mut command = Command::new("cmd");
|
||||||
#[cfg(target_os = "windows")]
|
command.raw_arg(format!("/C \"{}\"", &launch_string));
|
||||||
command.raw_arg(format!("/C \"{}\"", &launch_string));
|
command.creation_flags(0x08000000);
|
||||||
|
|
||||||
|
command
|
||||||
|
};
|
||||||
|
#[cfg(unix)]
|
||||||
|
let mut command = {
|
||||||
|
let mut command: Command = Command::new("sh");
|
||||||
|
command.args(vec!["-c", &launch_string]);
|
||||||
|
|
||||||
|
command
|
||||||
|
};
|
||||||
|
|
||||||
info!("launching (in {install_dir}): {launch_string}",);
|
info!("launching (in {install_dir}): {launch_string}",);
|
||||||
|
|
||||||
#[cfg(unix)]
|
|
||||||
let mut command: Command = Command::new("sh");
|
|
||||||
#[cfg(unix)]
|
|
||||||
command.args(vec!["-c", &launch_string]);
|
|
||||||
|
|
||||||
debug!("final launch string:\n\n{launch_string}\n");
|
debug!("final launch string:\n\n{launch_string}\n");
|
||||||
|
|
||||||
command
|
command
|
||||||
|
|||||||
@ -38,14 +38,6 @@
|
|||||||
},
|
},
|
||||||
"wix": null
|
"wix": null
|
||||||
},
|
},
|
||||||
"linux": {
|
|
||||||
"appimage": {
|
|
||||||
"bundleMediaFramework": false,
|
|
||||||
"files": {
|
|
||||||
"/usr/lib/libayatana-appindicator3.so.1": "/usr/lib/libayatana-appindicator3.so.1"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"icon": [
|
"icon": [
|
||||||
"icons/32x32.png",
|
"icons/32x32.png",
|
||||||
"icons/128x128.png",
|
"icons/128x128.png",
|
||||||
|
|||||||
Reference in New Issue
Block a user