Beta version 3.6.3: Support deployment on WSL.

This commit is contained in:
John Preston 2022-04-13 16:55:42 +04:00
parent 866ab2fcc2
commit 2edefbf93c
2 changed files with 11 additions and 2 deletions

View File

@ -141,12 +141,18 @@ if [ "$BuildTarget" == "linux" ]; then
DropboxSymbolsPath="/media/psf/Dropbox/Telegram/symbols"
if [ ! -d "$DropboxSymbolsPath" ]; then
Error "Dropbox path not found!"
DropboxSymbolsPath="/mnt/c/Telegram/Dropbox/Telegram/symbols"
if [ ! -d "$DropboxSymbolsPath" ]; then
Error "Dropbox path not found!"
fi
fi
BackupPath="/media/psf/backup/tdesktop/$AppVersionStrMajor/$AppVersionStrFull/t$BuildTarget"
if [ ! -d "/media/psf/backup/tdesktop" ]; then
Error "Backup folder not found!"
BackupPath="/mnt/c/Telegram/Projects/backup/tdesktop/$AppVersionStrMajor/$AppVersionStrFull/t$BuildTarget"
if [ ! -d "/mnt/c/Telegram/Projects/backup/tdesktop" ]; then
Error "Backup folder not found!"
fi
fi
./build/docker/centos_env/run.sh /usr/src/tdesktop/Telegram/build/docker/build.sh

View File

@ -73,6 +73,9 @@ if [ "$BuildTarget" == "mac" ]; then
BackupPath="$HOME/Projects/backup/tdesktop"
elif [ "$BuildTarget" == "linux" ]; then
BackupPath="/media/psf/Home/Projects/backup/tdesktop"
if [ ! -d "$BackupPath" ]; then
BackupPath="/mnt/c/Telegram/Projects/backup/tdesktop"
fi
else
Error "Can't deploy here"
fi