Linux: AppImage, deb, rpm and Arch packages from one AppDir, installed to /opt/ely-office (L1.5)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
e3bfe8ade4
commit
15106b641f
15 files changed
+251
-21
No files matched your search
@@ -25,6 +25,10 @@ fn beside(exe: &Path, app: AppId) -> Vec<PathBuf> {
|
||||
if let Some(suite) = dir.parent() {
|
||||
places.push(suite.join(app.name()).join(&file));
|
||||
}
|
||||
// Linux packages: /opt/ely-office/<slug>/bin.
|
||||
if let Some(opt) = dir.parent().and_then(Path::parent) {
|
||||
places.push(opt.join(app.slug()).join("bin").join(&file));
|
||||
}
|
||||
places
|
||||
}
|
||||
|
||||
@@ -160,6 +164,10 @@ mod tests {
|
||||
assert!(places.contains(&PathBuf::from(format!(
|
||||
"/Ely Office/ElyMark/ely-mark{suffix}"
|
||||
))));
|
||||
let places = super::beside(Path::new("/opt/ely-office/ely-tree/bin/ely-tree"), AppId::Mark);
|
||||
assert!(places.contains(&PathBuf::from(format!(
|
||||
"/opt/ely-office/ely-mark/bin/ely-mark{suffix}"
|
||||
))));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user