furnace/scripts/release-linux.sh

64 lines
1.4 KiB
Bash
Raw Normal View History

2021-12-30 22:31:08 +00:00
#!/bin/bash
# make linux release
# run on an Ubuntu 16.04 machine or VM for best results.
2021-12-30 22:31:08 +00:00
if [ ! -e /tmp/furnace ]; then
ln -s "$PWD" /tmp/furnace || exit 1
fi
cd /tmp/furnace
if [ ! -e linuxbuild ]; then
mkdir linuxbuild || exit 1
fi
cd linuxbuild
# -DWITH_PORTAUDIO=OFF: Ubuntu 16.04 doesn't like it
2024-07-06 00:16:22 +00:00
cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_FLAGS="-O3" -DCMAKE_CXX_FLAGS="-O3 -Wall -Wextra -Wno-unused-parameter -Werror" -DWITH_PORTAUDIO=OFF -DWITH_DEMOS=ON -DWITH_INSTRUMENTS=ON -DWITH_WAVETABLES=ON -DWITH_LOCALE=ON -DUSE_MOMO=ON .. || exit 1
2021-12-30 22:31:08 +00:00
make -j4 || exit 1
cd ..
2023-05-21 00:12:46 +00:00
mkdir -p release/linux/furnace || exit 1
2021-12-30 22:31:08 +00:00
cd linuxbuild
2023-05-21 00:12:46 +00:00
make DESTDIR=/tmp/furnace/release/linux/furnace install || exit 1
2021-12-30 22:31:08 +00:00
2023-05-21 00:12:46 +00:00
cd ../release/linux/furnace
2021-12-30 22:31:08 +00:00
2023-05-21 00:12:46 +00:00
cp -v ../../../res/logo.png .DirIcon || exit 1
#cp -v ../../../res/furnace.desktop . || exit 1
2021-12-30 22:31:08 +00:00
2023-05-21 00:12:46 +00:00
cd usr
2021-12-30 22:31:08 +00:00
2023-05-21 00:12:46 +00:00
mv bin/furnace .. || exit 1
rmdir bin || exit 1
rm -r share/applications
rm -r share/doc
mv share/icons ..
rm -r share/licenses
rm -r share/metainfo
2024-06-13 23:04:21 +00:00
mv share/locale ..
2023-05-21 00:12:46 +00:00
mv share/furnace/demos ..
mv share/furnace/instruments ..
mv share/furnace/wavetables ..
rm -r share/furnace || exit 1
rm -r share || exit 1
2023-05-21 00:12:46 +00:00
cd ..
cp ../../../LICENSE . || exit 1
2023-09-22 01:29:15 +00:00
cp ../../../res/releaseReadme/stable-linux.txt README.md || exit 1
2023-05-21 00:12:46 +00:00
cp -r ../../../papers papers || exit 1
curl "https://tildearrow.org/furnace/doc/latest/manual.pdf" > manual.pdf
2023-05-21 00:12:46 +00:00
rmdir usr || exit 1
2023-05-21 00:12:46 +00:00
strip -s furnace
2021-12-30 22:31:08 +00:00
2023-05-21 00:12:46 +00:00
cd ..
2021-12-30 22:31:08 +00:00
2023-05-21 00:12:46 +00:00
tar -zcv -f furnace.tar.gz furnace