2018-08-05 10:19:07 +02:00
|
|
|
#!/usr/bin/env bash
|
2018-08-05 23:52:01 +02:00
|
|
|
|
2018-08-06 23:41:27 +02:00
|
|
|
cd ~
|
2018-08-05 10:19:07 +02:00
|
|
|
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
|
|
|
|
|
2018-08-05 10:19:07 +02:00
|
|
|
cp -r styles dist/main/
|
2018-09-29 15:50:17 +02:00
|
|
|
find . -type f ! -name '*.qss' -delete
|
2018-08-05 10:19:07 +02:00
|
|
|
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/
|
2018-08-05 10:19:07 +02:00
|
|
|
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
|
2018-08-05 10:19:07 +02:00
|
|
|
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
|
|
|
|
2018-08-05 10:19:07 +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
|
2018-08-05 10:19:07 +02:00
|
|
|
cd ..
|
2018-08-05 23:52:01 +02:00
|
|
|
|
|
|
|
tar -zcvf toxygen_linux_64.tar.gz toxygen > /dev/null
|
2018-08-05 10:19:07 +02:00
|
|
|
rm -rf toxygen
|