From 788bfad6abca4c659bab289cbaad79a33599c054 Mon Sep 17 00:00:00 2001 From: Extremesecrecy <10959169+extremesecrecy@users.noreply.github.com> Date: Thu, 24 Jul 2025 08:29:05 -0700 Subject: [PATCH] Housekeepting - Shebangs and permisions (sudo) Added an explicit host setting so Jekyll serves docs on all interfaces in debugDocs.sh Documented the signing command for the release package in signPackage.sh Inserted shebangs for various helper scripts such as makePackage.sh to ensure they run correctly as standalone scripts --- NetworkManagerP2P/src/wpa_init | 1 + debugDocs.sh | 2 +- makePackage.sh | 3 ++- profiler_tools/ToobNam_profile | 2 ++ profiler_tools/nam_profile_web | 1 + provisionLv2 | 2 +- signPackage.sh | 6 +++++- uninstall.sh | 2 +- valgrind.sh | 1 + 9 files changed, 15 insertions(+), 5 deletions(-) diff --git a/NetworkManagerP2P/src/wpa_init b/NetworkManagerP2P/src/wpa_init index faf8e15..d9a3eb3 100755 --- a/NetworkManagerP2P/src/wpa_init +++ b/NetworkManagerP2P/src/wpa_init @@ -1,3 +1,4 @@ +#!/bin/bash wpa_cli -ip2p-dev-wlan0 GET device_name pipedal wpa_cli -ip2p-dev-wlan0 GET country CA wpa_cli -ip2p-dev-wlan0 GET device_type 1-0050F204-1 diff --git a/debugDocs.sh b/debugDocs.sh index 2261a47..bebd254 100755 --- a/debugDocs.sh +++ b/debugDocs.sh @@ -6,4 +6,4 @@ # bundle install # cd docs -bundle exec jekyll serve --host \ No newline at end of file +bundle exec jekyll serve --host 0.0.0.0 \ No newline at end of file diff --git a/makePackage.sh b/makePackage.sh index 617a733..0ede2d0 100755 --- a/makePackage.sh +++ b/makePackage.sh @@ -1,3 +1,4 @@ +#!/bin/bash cd build -cpack -G DEB -C Release -config CPackConfig.cmake +cpack -G DEB -C Release -config CPackConfig.cmake cd .. diff --git a/profiler_tools/ToobNam_profile b/profiler_tools/ToobNam_profile index c616390..db5b384 100755 --- a/profiler_tools/ToobNam_profile +++ b/profiler_tools/ToobNam_profile @@ -1,3 +1,5 @@ +#!/bin/bash SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) ${SCRIPT_DIR}/../build/src/profilePlugin -s 100 -w ToobNam_Profile -o /tmp/ToobNam.perf &&\ google-pprof --text ${SCRIPT_DIR}/../build/src/profilePlugin --add_lib /usr/lib/lv2/ToobAmp.lv2/ToobAmp.so /tmp/ToobNam.perf >./ToobNam.txt + diff --git a/profiler_tools/nam_profile_web b/profiler_tools/nam_profile_web index 70827d4..13b6462 100755 --- a/profiler_tools/nam_profile_web +++ b/profiler_tools/nam_profile_web @@ -1,3 +1,4 @@ +#!/bin/bash SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) ${SCRIPT_DIR}/../build/src/profilePlugin -w Nam_Profile -o /tmp/nam.perf &&\ google-pprof --web ${SCRIPT_DIR}/../build/src/profilePlugin --add_lib /usr/lib/lv2/neural_amp_modeler.lv2/neural_amp_modeler.so /tmp/nam.perf >./nam.txt diff --git a/provisionLv2 b/provisionLv2 index dc8b9ea..29f07b2 100755 --- a/provisionLv2 +++ b/provisionLv2 @@ -1,4 +1,4 @@ - +#!/bin/bash rm -rf ./lv2/aarch64/* cp -R /usr/lib/lv2/ToobAmp.lv2/ ./lv2/aarch64/ diff --git a/signPackage.sh b/signPackage.sh index c26d857..4bfa09a 100755 --- a/signPackage.sh +++ b/signPackage.sh @@ -11,4 +11,8 @@ # to NOT do auto-updating (probably best). The build doesn't currently have a procedure for # knocking out Auto-Update from UpdaterSecurity.hpp. But I would happily accept a pull request # to bring such a feature back into mainline if you do it. -build/src/makeRelease + +# Build the release package and create a detached GPG signature. This +# command assumes you have already run makePackage.sh so the .deb file +# exists in the build directory. +./build/src/makeRelease diff --git a/uninstall.sh b/uninstall.sh index d3b937f..8fb98b8 100755 --- a/uninstall.sh +++ b/uninstall.sh @@ -1,4 +1,4 @@ -#/usr/bin/sudo /usr/bin/bash +#!/usr/bin/sudo /usr/bin/bash # CMake doesn't have an uninstall option, so remove files manually. export PREFIX=/usr diff --git a/valgrind.sh b/valgrind.sh index 58d1723..e721ccb 100755 --- a/valgrind.sh +++ b/valgrind.sh @@ -1 +1,2 @@ +#!/bin/bash valgrind --leak-check=full --log-file=vg.output ./build/src/pipedald /etc/pipedal/config ./vite/dist -port 0.0.0.0:8080 -log-level debug