CLI self-updater, warn on version mismatch, direct install.sh option, androidmanifest and info.plist customization, bump to 0.7-alpha.0 (#4095)
* wip.... bun installer * - warn on incompatible versions - clean up some logs - add coloring to log levels * add toasts to desktop/mobile * Auto open simulators * auto boot android * preserve url * pull out some of the warnings * add self-updater * wip: mcp * add install.sh and adjust binstall path * add some cuter styling to logs! * update "input.css" * update other input.css * style a bit more * change getting started * add windows installer * move dioxus-mobile into dioxus-desktop add sentry wip to cli * shorten timeout of toast * fix cli display * wire up customization of android manifest * udid is a real word * add 429 to lychee cache * accept all 200-204 and 429
This commit is contained in:
1 parent
53ef78823d
commit
4d3d55a7a3
56 files changed
+1560
-548
No files matched your search
@@ -3,11 +3,6 @@ use std::path::PathBuf;
|
||||
|
||||
#[derive(Debug, Clone, Serialize, Deserialize)]
|
||||
pub(crate) struct ApplicationConfig {
|
||||
pub(crate) asset_dir: Option<PathBuf>,
|
||||
|
||||
#[serde(default)]
|
||||
pub(crate) sub_package: Option<String>,
|
||||
|
||||
#[serde(default)]
|
||||
pub(crate) out_dir: Option<PathBuf>,
|
||||
|
||||
@@ -16,4 +11,27 @@ pub(crate) struct ApplicationConfig {
|
||||
|
||||
#[serde(default)]
|
||||
pub(crate) tailwind_output: Option<PathBuf>,
|
||||
|
||||
/// Use this file for the info.plist associated with the iOS app.
|
||||
/// `dx` will merge any required settings into this file required to build the app
|
||||
#[serde(default)]
|
||||
pub(crate) ios_info_plist: Option<PathBuf>,
|
||||
|
||||
/// Use this file for the info.plist associated with the macOS app.
|
||||
/// `dx` will merge any required settings into this file required to build the app
|
||||
#[serde(default)]
|
||||
pub(crate) macos_info_plist: Option<PathBuf>,
|
||||
|
||||
/// Use this file for the entitlements.plist associated with the iOS app.
|
||||
#[serde(default)]
|
||||
pub(crate) ios_entitlements: Option<PathBuf>,
|
||||
|
||||
/// Use this file for the entitlements.plist associated with the macOS app.
|
||||
#[serde(default)]
|
||||
pub(crate) macos_entitlements: Option<PathBuf>,
|
||||
|
||||
/// Use this file for the AndroidManifest.xml associated with the Android app.
|
||||
/// `dx` will merge any required settings into this file required to build the app
|
||||
#[serde(default)]
|
||||
pub(crate) android_manifest: Option<PathBuf>,
|
||||
}
|
||||
@@ -1,5 +0,0 @@
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
/// Represents configuration items for the desktop platform.
|
||||
#[derive(Debug, Default, Clone, Serialize, Deserialize)]
|
||||
pub(crate) struct DesktopConfig {}
|
||||
@@ -8,9 +8,6 @@ pub(crate) struct DioxusConfig {
|
||||
#[serde(default)]
|
||||
pub(crate) web: WebConfig,
|
||||
|
||||
#[serde(default)]
|
||||
pub(crate) desktop: DesktopConfig,
|
||||
|
||||
#[serde(default)]
|
||||
pub(crate) bundle: BundleConfig,
|
||||
}
|
||||
@@ -19,11 +16,14 @@ impl Default for DioxusConfig {
|
||||
fn default() -> Self {
|
||||
Self {
|
||||
application: ApplicationConfig {
|
||||
asset_dir: None,
|
||||
sub_package: None,
|
||||
out_dir: None,
|
||||
tailwind_input: None,
|
||||
tailwind_output: None,
|
||||
ios_info_plist: None,
|
||||
android_manifest: None,
|
||||
macos_info_plist: None,
|
||||
ios_entitlements: None,
|
||||
macos_entitlements: None,
|
||||
},
|
||||
web: WebConfig {
|
||||
app: WebAppConfig {
|
||||
@@ -49,7 +49,6 @@ impl Default for DioxusConfig {
|
||||
pre_compress: true,
|
||||
wasm_opt: Default::default(),
|
||||
},
|
||||
desktop: DesktopConfig::default(),
|
||||
bundle: BundleConfig::default(),
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,13 +1,11 @@
|
||||
mod app;
|
||||
mod bundle;
|
||||
mod desktop;
|
||||
mod dioxus_config;
|
||||
mod serve;
|
||||
mod web;
|
||||
|
||||
pub(crate) use app::*;
|
||||
pub(crate) use bundle::*;
|
||||
pub(crate) use desktop::*;
|
||||
pub(crate) use dioxus_config::*;
|
||||
pub(crate) use serve::*;
|
||||
pub(crate) use web::*;
|
||||
Reference in new issue
Block a user