Skip to content

sealdice/sealupd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sealupd

Updater for SealDice, successor of seal-updater.

Usage

The program accepts three principal arguments: --package (short -p, alias --upgrade), --binary-name (short -b, alias --binary), and --pid. It waits for the process with the specified PID to terminate before extracting files from the provided package into the current directory. Finally, it tries to start the executable named by --binary-name unless the --skip-launch flag is set. If --binary-name is omitted, it defaults to sealdice-core or sealdice-core.exe depending on the platform.

For a full definition of acceptable arguments and flags, see src/cli.rs.

Development

Warning

Please use the 2024 Edition of Rust (version 1.85+) when working on this project.

Style Guides

  1. Use cargo fmt with configurations speficied in .rustfmt.toml to format the project. Do not run rustfmt directly as it formats on a per-file basis and may remove disambiguate imports.

  2. Import types directly; prefer File over std::fs::File or fs::File, unless ambiguity forbids (Error and io::Error).

  3. Import functions by their immediate parent module; prefer io::stdin() over std::io::stdin() or stdin().

TODO

  • Implement business logic.
  • Add log information.
  • Add manifest and static build for Windows (via embed_manifest and static_vcruntime).
  • CI/CD & auto-release
  • Tests
  • Make SealDice migrate from the old seal-updater.

Other Notes

  • We might need a graceful way to log and print information rather than littering debug!() and println!() everywhere.

  • The current implementation of proc::wait() is the best we can do, but feedback we got from seal-updater proves it is not always reliable.

About

New updater for SealDice.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages