-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild-linux.sh
More file actions
executable file
·38 lines (30 loc) · 1.13 KB
/
Copy pathbuild-linux.sh
File metadata and controls
executable file
·38 lines (30 loc) · 1.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/usr/bin/env bash
# -------------------------------------------
# Suppress printing of error messages
# exec 2>/dev/null
# Stop on first error
set -o errexit
# Set trap on ERR to be inherited by shell functions
set -o errtrace
# Trap errors
trap 'echo Error at line: $LINENO' ERR
# -------------------------------------------
# Arch
# paru -S vulkan-intel vulkan-mesa-layers
# -------------------------------------------
./build.sh
# -------------------------------------------
# -------------------------------------------
cargo install cargo-bundle 2>/dev/null
cargo-bundle bundle --profile release --package treehouse --bin treehouse
# -------------------------------------------
mkdir -p release
cp target/release/treehouse release/treehouse_linux
cp target/release/bundle/deb/treehouse_*.deb release/
cp target/release/bundle/appimage/treehouse_*.AppImage release/
# -------------------------------------------
# cargo install --locked cargo-zigbuild 2>/dev/null
# RUSTFLAGS="-L/usr/lib64"
# export RUSTFLAGS
# cargo zigbuild --profile release --bin treehouse --target x86_64-unknown-linux-gnu.2.32
# -------------------------------------------