mirror of
https://github.com/storytold/texturecraft.git
synced 2026-11-28 00:59:29 +01:00
packaging(linux): support co-installable nightly packages (#801)
Linux nightly packaging by @dylanmtaylor, with the per-app Nightly flavor commits stacked on his branch. Co-authored-by: Dylan M. Taylor <dylan@dylanmtaylor.com>
This commit is contained in:
1 parent
2a4ad138d9
commit
56efb48efb
72 files changed
+5488
-80
No files matched your search
@@ -120,8 +120,18 @@ fn version() -> String {
|
||||
}
|
||||
}
|
||||
|
||||
/// The desktop app's Nightly launch options. The CLI never takes them: a Nightly install ships the
|
||||
/// GUI only, and a script that passes them to the CLI has the wrong program.
|
||||
fn is_launch_profile_flag(arg: &str) -> bool {
|
||||
arg == "--launch-profile" || arg == "--profile-root" || arg.starts_with("--launch-profile=") || arg.starts_with("--profile-root=")
|
||||
}
|
||||
|
||||
fn main() {
|
||||
let args: Vec<String> = std::env::args().skip(1).collect();
|
||||
if let Some(flag) = args.iter().find(|arg| is_launch_profile_flag(arg.as_str())) {
|
||||
eprintln!("texturecraft-cli: `{flag}` is a TextureCraft desktop launch option, not a CLI argument");
|
||||
std::process::exit(2);
|
||||
}
|
||||
let code = match args.first().map(String::as_str) {
|
||||
None => {
|
||||
eprint!("{USAGE}");
|
||||
|
||||
Reference in new issue
Block a user