Build Linux packages
This commit is contained in:
@@ -2,6 +2,8 @@
|
||||
name = "lightningbeam-editor"
|
||||
version = "0.1.0"
|
||||
edition = "2021"
|
||||
description = "Multimedia editor for audio, video and 2D animation"
|
||||
license = "GPL-3.0-or-later"
|
||||
|
||||
[dependencies]
|
||||
lightningbeam-core = { path = "../lightningbeam-core" }
|
||||
@@ -60,3 +62,62 @@ notify-rust = { workspace = true }
|
||||
|
||||
# Debug overlay - memory tracking
|
||||
memory-stats = "1.1"
|
||||
|
||||
[package.metadata.deb]
|
||||
name = "lightningbeam-editor"
|
||||
maintainer = "Skyler"
|
||||
copyright = "2025-2026"
|
||||
extended-description = "GPU-accelerated multimedia editor for audio, video and 2D animation"
|
||||
license-file = ["../../LICENSE", "0"]
|
||||
section = "video"
|
||||
priority = "optional"
|
||||
depends = "libasound2, libwayland-client0, libx11-6, libvulkan1"
|
||||
assets = [
|
||||
["target/release/lightningbeam-editor", "usr/bin/", "755"],
|
||||
["assets/com.lightningbeam.editor.desktop", "usr/share/applications/", "644"],
|
||||
["assets/com.lightningbeam.editor.appdata.xml", "usr/share/metainfo/", "644"],
|
||||
["assets/icons/32x32.png", "usr/share/icons/hicolor/32x32/apps/lightningbeam-editor.png", "644"],
|
||||
["assets/icons/128x128.png", "usr/share/icons/hicolor/128x128/apps/lightningbeam-editor.png", "644"],
|
||||
["assets/icons/256x256.png", "usr/share/icons/hicolor/256x256/apps/lightningbeam-editor.png", "644"],
|
||||
]
|
||||
|
||||
[package.metadata.generate-rpm]
|
||||
name = "lightningbeam-editor"
|
||||
license = "GPL-3.0-or-later"
|
||||
summary = "Multimedia editor for audio, video and 2D animation"
|
||||
|
||||
[package.metadata.generate-rpm.requires]
|
||||
alsa-lib = "*"
|
||||
wayland = "*"
|
||||
libX11 = "*"
|
||||
vulkan-loader = "*"
|
||||
|
||||
[[package.metadata.generate-rpm.assets]]
|
||||
source = "target/release/lightningbeam-editor"
|
||||
dest = "/usr/bin/lightningbeam-editor"
|
||||
mode = "755"
|
||||
|
||||
[[package.metadata.generate-rpm.assets]]
|
||||
source = "assets/com.lightningbeam.editor.desktop"
|
||||
dest = "/usr/share/applications/com.lightningbeam.editor.desktop"
|
||||
mode = "644"
|
||||
|
||||
[[package.metadata.generate-rpm.assets]]
|
||||
source = "assets/com.lightningbeam.editor.appdata.xml"
|
||||
dest = "/usr/share/metainfo/com.lightningbeam.editor.appdata.xml"
|
||||
mode = "644"
|
||||
|
||||
[[package.metadata.generate-rpm.assets]]
|
||||
source = "assets/icons/32x32.png"
|
||||
dest = "/usr/share/icons/hicolor/32x32/apps/lightningbeam-editor.png"
|
||||
mode = "644"
|
||||
|
||||
[[package.metadata.generate-rpm.assets]]
|
||||
source = "assets/icons/128x128.png"
|
||||
dest = "/usr/share/icons/hicolor/128x128/apps/lightningbeam-editor.png"
|
||||
mode = "644"
|
||||
|
||||
[[package.metadata.generate-rpm.assets]]
|
||||
source = "assets/icons/256x256.png"
|
||||
dest = "/usr/share/icons/hicolor/256x256/apps/lightningbeam-editor.png"
|
||||
mode = "644"
|
||||
|
||||
@@ -0,0 +1,24 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<component type="desktop-application">
|
||||
<id>com.lightningbeam.editor</id>
|
||||
<metadata_license>CC0-1.0</metadata_license>
|
||||
<project_license>GPL-3.0-or-later</project_license>
|
||||
<name>Lightningbeam Editor</name>
|
||||
<summary>Multimedia editor for audio, video and 2D animation</summary>
|
||||
|
||||
<description>
|
||||
<p>
|
||||
Lightningbeam is a GPU-accelerated multimedia editor for audio, video and
|
||||
2D animation. It features timeline-based editing, audio mixing with a
|
||||
node-based effects system, and a scriptable DSP engine.
|
||||
</p>
|
||||
</description>
|
||||
|
||||
<launchable type="desktop-id">com.lightningbeam.editor.desktop</launchable>
|
||||
|
||||
<provides>
|
||||
<binary>lightningbeam-editor</binary>
|
||||
</provides>
|
||||
|
||||
<content_rating type="oars-1.1" />
|
||||
</component>
|
||||
@@ -2,7 +2,7 @@
|
||||
Version=1.0
|
||||
Type=Application
|
||||
Name=Lightningbeam Editor
|
||||
Comment=Animation and video editing software
|
||||
Comment=Multimedia editor for audio, video and 2D animation
|
||||
Exec=lightningbeam-editor
|
||||
Icon=lightningbeam-editor
|
||||
Terminal=false
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 23 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 196 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 2.8 KiB |
@@ -65,12 +65,26 @@ impl PresetBrowserPane {
|
||||
self.presets.clear();
|
||||
self.categories.clear();
|
||||
|
||||
// Factory presets: resolve from CARGO_MANIFEST_DIR (lightningbeam-editor crate)
|
||||
let manifest_dir = PathBuf::from(env!("CARGO_MANIFEST_DIR"));
|
||||
let factory_dir = manifest_dir.join("../../src/assets/instruments");
|
||||
// Factory presets: check installed location first, fall back to dev source tree
|
||||
let factory_dirs = [
|
||||
// Installed location (Linux packages / AppImage)
|
||||
PathBuf::from("/usr/share/lightningbeam-editor/presets"),
|
||||
// Next to the binary (AppImage / portable)
|
||||
std::env::current_exe()
|
||||
.ok()
|
||||
.and_then(|p| p.parent().map(|d| d.join("presets")))
|
||||
.unwrap_or_default(),
|
||||
// Development: relative to CARGO_MANIFEST_DIR
|
||||
PathBuf::from(env!("CARGO_MANIFEST_DIR")).join("../../src/assets/instruments"),
|
||||
];
|
||||
|
||||
if let Ok(factory_dir) = factory_dir.canonicalize() {
|
||||
self.scan_directory(&factory_dir, &factory_dir, true);
|
||||
for dir in &factory_dirs {
|
||||
if let Ok(factory_dir) = dir.canonicalize() {
|
||||
if factory_dir.is_dir() {
|
||||
self.scan_directory(&factory_dir, &factory_dir, true);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// User presets
|
||||
|
||||
Reference in New Issue
Block a user