toxygen/build/build.sh

34 lines
858 B
Bash
Raw Normal View History

#!/usr/bin/env bash
2018-08-05 23:52:01 +02:00
2018-08-06 23:41:27 +02:00
cd ~
git clone https://github.com/toxygen-project/toxygen.git --branch=next_gen
cd toxygen/toxygen
2018-08-05 23:52:01 +02:00
pyinstaller --windowed --icon=images/icon.ico main.py
cp -r styles dist/main/
2018-09-29 15:50:17 +02:00
find . -type f ! -name '*.qss' -delete
cp -r plugins dist/main/
2018-08-05 23:52:01 +02:00
mkdir -p dist/main/ui/views
cp -r ui/views dist/main/ui/
cp -r sounds dist/main/
cp -r smileys dist/main/
cp -r stickers dist/main/
cp -r bootstrap dist/main/
2018-09-29 15:50:17 +02:00
find . -type f ! -name '*.json' -delete
cp -r images dist/main/
2018-08-05 23:52:01 +02:00
cp -r translations dist/main/
2018-09-29 15:50:17 +02:00
find . -name "*.ts" -type f -delete
2018-08-05 23:52:01 +02:00
cd dist
mv main toxygen
cd toxygen
mv main toxygen
2018-08-05 23:52:01 +02:00
wget -O updater https://github.com/toxygen-project/toxygen_updater/releases/download/v0.1/toxygen_updater_linux_64
echo "[Paths]" >> qt.conf
echo "Prefix = PyQt5/Qt" >> qt.conf
cd ..
2018-08-05 23:52:01 +02:00
tar -zcvf toxygen_linux_64.tar.gz toxygen > /dev/null
rm -rf toxygen