Some checks are pending
Release Multiplatform Binaries / build (deb,appimage, linux-x86_64, ubuntu-22.04, x86_64-unknown-linux-gnu) (push) Waiting to run
Release Multiplatform Binaries / build (dmg,app, macos-arm64, macos-14, aarch64-apple-darwin) (push) Waiting to run
Release Multiplatform Binaries / build (dmg,app, macos-x86_64, macos-14, x86_64-apple-darwin) (push) Waiting to run
Release Multiplatform Binaries / build (nsis, windows-x86_64, windows-latest, x86_64-pc-windows-msvc) (push) Waiting to run
Release Multiplatform Binaries / create-release (push) Blocked by required conditions
- Rebased onto official Polyfrost OneLauncher v2.3.1 (commit 0e49c691)
- Preserved 100% offline authentication without requiring Microsoft accounts
- Integrated custom 3D offline skin changer with UUID character slot targeting
- Maintained CustomSkinLoader auto-configuration for Ely.by and SkinRestorer
- Maintained direct GitHub Releases auto-updater pointing to oiupoyt/OneLauncher-Cracked
- Maintained mods filter popover fix eliminating text ghosting/duplication
- Configured dev profile to prevent debug symbol bloat
27 lines
751 B
Rust
27 lines
751 B
Rust
|
|
use oneclient_events::{GroupedProgressSession, EventBus};
|
|
use tokio::sync::mpsc;
|
|
use uuid::Uuid;
|
|
|
|
#[tokio::main]
|
|
async fn main() {
|
|
let (tx, mut rx) = mpsc::unbounded_channel();
|
|
let events = EventBus::new(tx);
|
|
|
|
events.notify("Welcome").body("Launcher started").send();
|
|
events.notify("Heads up").body("Example error notification").error().send();
|
|
|
|
let download = Uuid::new_v4();
|
|
for current in (0..=100).step_by(25) {
|
|
events.progress(download, "Downloading assets", current, 100);
|
|
}
|
|
|
|
let session = GroupedProgressSession::start(&events, "Preparing cluster".to_string());
|
|
session.finish();
|
|
|
|
drop(events);
|
|
|
|
while let Some(notification) = rx.recv().await {
|
|
println!("{notification:?}");
|
|
}
|
|
}
|