mirror of
https://github.com/arabianq/pipewire-soundpad.git
synced 2026-06-19 20:23:33 +00:00
Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| b824c88d01 | |||
| a36a82a276 | |||
| 426056e85e |
@@ -45,9 +45,6 @@ jobs:
|
||||
with:
|
||||
toolchain: 1.96.0
|
||||
|
||||
- name: Rust Cache
|
||||
uses: swatinem/rust-cache@v2
|
||||
|
||||
- name: Run tests
|
||||
run: cargo test --locked
|
||||
|
||||
@@ -138,9 +135,6 @@ jobs:
|
||||
with:
|
||||
toolchain: 1.96.0
|
||||
|
||||
- name: Rust Cache
|
||||
uses: swatinem/rust-cache@v2
|
||||
|
||||
- name: Build all binaries (debug-speed compilation into target/release)
|
||||
env:
|
||||
CARGO_PROFILE_RELEASE_OPT_LEVEL: 0
|
||||
|
||||
@@ -60,9 +60,9 @@ jobs:
|
||||
echo "default-branch: ${{ steps.set_branch.outputs.branch }}" >> packages/flatpak/ru.arabianq.pwsp.yaml
|
||||
|
||||
- name: Install SDK Extensions
|
||||
run: |
|
||||
run:
|
||||
flatpak install -y flathub org.freedesktop.Sdk.Extension.rust-stable//25.08
|
||||
flatpak install -y flathub org.freedesktop.Sdk.Extension.llvm20//25.08
|
||||
org.freedesktop.Sdk.Extension.llvm20//25.08
|
||||
|
||||
- name: Build Flatpak
|
||||
uses: andyholmes/flatter@main
|
||||
@@ -72,7 +72,6 @@ jobs:
|
||||
upload-bundles: false
|
||||
upload-pages-artifact: false
|
||||
arch: x86_64
|
||||
cache: true
|
||||
|
||||
flatter-arm64:
|
||||
name: Flatter (aarch64)
|
||||
@@ -114,9 +113,9 @@ jobs:
|
||||
echo "default-branch: ${{ steps.set_branch.outputs.branch }}" >> packages/flatpak/ru.arabianq.pwsp.yaml
|
||||
|
||||
- name: Install SDK Extensions
|
||||
run: |
|
||||
run:
|
||||
flatpak install -y flathub org.freedesktop.Sdk.Extension.rust-stable//25.08
|
||||
flatpak install -y flathub org.freedesktop.Sdk.Extension.llvm20//25.08
|
||||
org.freedesktop.Sdk.Extension.llvm20//25.08
|
||||
|
||||
- name: Build Flatpak
|
||||
uses: andyholmes/flatter@main
|
||||
@@ -126,7 +125,6 @@ jobs:
|
||||
upload-bundles: false
|
||||
upload-pages-artifact: true
|
||||
arch: aarch64
|
||||
cache: true
|
||||
|
||||
deploy:
|
||||
name: Deploy to GitHub Pages
|
||||
|
||||
@@ -97,9 +97,6 @@ jobs:
|
||||
with:
|
||||
toolchain: 1.96.0
|
||||
|
||||
- name: Rust Cache
|
||||
uses: swatinem/rust-cache@v2
|
||||
|
||||
- name: Extract all binary names
|
||||
id: cargo-meta
|
||||
run: |
|
||||
@@ -183,9 +180,6 @@ jobs:
|
||||
with:
|
||||
toolchain: 1.96.0
|
||||
|
||||
- name: Rust Cache
|
||||
uses: swatinem/rust-cache@v2
|
||||
|
||||
- name: Build all release binaries
|
||||
run: cargo build --release --locked
|
||||
|
||||
@@ -260,8 +254,8 @@ jobs:
|
||||
run: |
|
||||
mkdir -p ~/.config
|
||||
echo "$COPR_CONFIG" > ~/.config/copr
|
||||
copr-cli buildscm --nowait \
|
||||
--clone-url https://github.com/arabianq/pipewire-soundpad.git \
|
||||
copr-cli buildscm --clone-url https://github.com/arabianq/pipewire-soundpad.git \
|
||||
--commit ${{ needs.prepare.outputs.tag }} \
|
||||
--spec packages/rpm/pwsp.spec \
|
||||
arabianq/pwsp
|
||||
|
||||
|
||||
Generated
+306
-112
File diff suppressed because it is too large
Load Diff
+343
-109
File diff suppressed because one or more lines are too long
@@ -308,7 +308,18 @@ impl SoundpadGui {
|
||||
let mut read = Vec::new();
|
||||
if let Ok(entries) = std::fs::read_dir(&path) {
|
||||
for entry in entries.filter_map(|e| e.ok()) {
|
||||
read.push(entry.path());
|
||||
let child_path = entry.path();
|
||||
if !child_path.is_dir()
|
||||
&& !crate::gui::SUPPORTED_EXTENSIONS.contains(
|
||||
&child_path
|
||||
.extension()
|
||||
.unwrap_or_default()
|
||||
.to_str()
|
||||
.unwrap_or_default(),
|
||||
) {
|
||||
continue;
|
||||
}
|
||||
read.push(child_path);
|
||||
}
|
||||
}
|
||||
let sort_order = config.get_sort_order(&path);
|
||||
@@ -331,17 +342,8 @@ impl SoundpadGui {
|
||||
let search_query = search_query.trim();
|
||||
|
||||
for child in children {
|
||||
if !child.is_dir() {
|
||||
if !crate::gui::SUPPORTED_EXTENSIONS.contains(
|
||||
&child
|
||||
.extension()
|
||||
.unwrap_or_default()
|
||||
.to_str()
|
||||
.unwrap_or_default(),
|
||||
) {
|
||||
continue;
|
||||
}
|
||||
if !search_query.is_empty() {
|
||||
if !child.is_dir()
|
||||
&& !search_query.is_empty() {
|
||||
let file_name = child
|
||||
.file_name()
|
||||
.unwrap_or_default()
|
||||
@@ -351,7 +353,6 @@ impl SoundpadGui {
|
||||
continue;
|
||||
}
|
||||
}
|
||||
}
|
||||
Self::draw_tree_node(ui, child, config, app_state, audio_player_state, actions);
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user