mirror of
https://github.com/storytold/effectcraft.git
synced 2026-11-28 09:09:39 +01:00
packaging(linux): support co-installable nightly packages (#4154)
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
a12c11ee02
commit
59aed45057
74 files changed
+5469
-87
No files matched your search
@@ -317,6 +317,16 @@ fn main() {
|
||||
Ok(raw) => raw,
|
||||
Err(e) => fail_usage(&e),
|
||||
};
|
||||
// The Launcher's Nightly profile flags belong to the desktop app only. Refuse them before any
|
||||
// argument is parsed, so no script can drive a profile outside the Launcher's control (exit 2).
|
||||
// Written without a leading `--` in the literal so the option table stays the one place that
|
||||
// declares options (`every_option_read_is_declared`).
|
||||
const DESKTOP_PROFILE_FLAGS: [&str; 2] = ["launch-profile", "profile-root"];
|
||||
if let Some(flag) =
|
||||
raw.iter().find(|a| a.starts_with('-') && DESKTOP_PROFILE_FLAGS.iter().any(|name| a.trim_start_matches('-').split('=').next() == Some(*name)))
|
||||
{
|
||||
fail_usage(&format!("`{flag}` selects the desktop Nightly profile; effectcraft-cli has no launch profile"));
|
||||
}
|
||||
if matches!(raw.first().map(String::as_str), Some("--version" | "-V" | "version")) {
|
||||
say!("effectcraft-cli {}", env!("CARGO_PKG_VERSION"));
|
||||
return;
|
||||
|
||||
Reference in new issue
Block a user