Compare commits
No commits in common. "5addcb5563dbfc50af66d2f45a10714f8197a8ef" and "ad8e8b44924d6366cd72fa29a5b5262b25f95655" have entirely different histories.
5addcb5563
...
ad8e8b4492
1 changed files with 3 additions and 8 deletions
|
@ -1,7 +1,7 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|
||||||
program_name="wluma"
|
program_name="librewolf-allow-dark"
|
||||||
SCRIPT_DIR=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &>/dev/null && pwd)
|
SCRIPT_DIR=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &>/dev/null && pwd)
|
||||||
|
|
||||||
# prep
|
# prep
|
||||||
|
@ -22,7 +22,6 @@ fi
|
||||||
|
|
||||||
## get source and build
|
## get source and build
|
||||||
# get build deps
|
# get build deps
|
||||||
# note: npm/npx is also required, but this just assumes it's already installed since i'll be running it in docker with the node image - and doing that's faster than installing it manually
|
|
||||||
apt install gcc libclang-dev v4l-utils libv4l-dev libudev-dev libvulkan-dev libdbus-1-dev zstd -y # zstd is for archive creation
|
apt install gcc libclang-dev v4l-utils libv4l-dev libudev-dev libvulkan-dev libdbus-1-dev zstd -y # zstd is for archive creation
|
||||||
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
|
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
|
||||||
. ~/.cargo/env
|
. ~/.cargo/env
|
||||||
|
@ -36,14 +35,10 @@ cargo install --path .
|
||||||
|
|
||||||
## create .tar.zst archive
|
## create .tar.zst archive
|
||||||
# prep
|
# prep
|
||||||
cd $src_dir
|
|
||||||
wluma_archive=$(mktemp -d)
|
wluma_archive=$(mktemp -d)
|
||||||
cp $(which wluma) $wluma_archive
|
cp $(which wluma) $wluma_archive
|
||||||
sed -i 's/\/usr\/bin\/wluma/\/usr\/bin\/env wluma/g' ./wluma.service
|
sed -i 's/\/usr\/bin\/wluma/\/usr\/bin\/env wluma/g' $src_dir/wluma.service
|
||||||
npx -y marked-man README.md | gzip > $wluma_archive/wluma.7.gz
|
cp $src_dir/wluma.service $wluma_archive
|
||||||
cp README.md $wluma_archive
|
|
||||||
cp config.toml $wluma_archive
|
|
||||||
cp wluma.service $wluma_archive
|
|
||||||
|
|
||||||
# actually create it and finish up
|
# actually create it and finish up
|
||||||
cd $wluma_archive
|
cd $wluma_archive
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue