Merge remote-tracking branch 'tdesktop/dev' into dev

This commit is contained in:
Eric Kotato 2019-11-06 20:50:07 +03:00
commit 6a0280f9f0
17 changed files with 130 additions and 45 deletions

View file

@ -50,8 +50,8 @@ GOTO:EOF
git submodule init git submodule init
git submodule update git submodule update
cd %SRC_DIR%\Telegram cd %SRC_DIR%\Telegram
call gyp\refresh.bat --api-id 17349 --api-hash 344583e45741c457fe1862106095a5eb call gyp\refresh.bat --api-id 17349 --api-hash 344583e45741c457fe1862106095a5eb --ci-build
GOTO:EOF GOTO:EOF
:configureBuild :configureBuild
call:logInfo "Configuring build" call:logInfo "Configuring build"

View file

@ -11,21 +11,21 @@ CACHE="$HOME/travisCacheDir"
QT_WAS_BUILT="0" QT_WAS_BUILT="0"
QT_VERSION=5.6.2 QT_VERSION=5.12.5
XKB_PATH="$BUILD/libxkbcommon" XKB_PATH="$BUILD/libxkbcommon"
XKB_CACHE_VERSION="3" XKB_CACHE_VERSION="3"
QT_PATH="$BUILD/qt" QT_PATH="$BUILD/qt"
QT_CACHE_VERSION="4" QT_CACHE_VERSION="4"
QT_PATCH="$UPSTREAM/Telegram/Patches/qtbase_${QT_VERSION//\./_}.diff" QT_PATCH="$EXTERNAL/patches/qtbase_${QT_VERSION//\./_}.diff"
BREAKPAD_PATH="$BUILD/breakpad" BREAKPAD_PATH="$BUILD/breakpad"
BREAKPAD_CACHE_VERSION="3" BREAKPAD_CACHE_VERSION="3"
GYP_PATH="$BUILD/gyp" GYP_PATH="$BUILD/gyp"
GYP_CACHE_VERSION="3" GYP_CACHE_VERSION="3"
GYP_PATCH="$UPSTREAM/Telegram/Patches/gyp.diff" GYP_PATCH="$EXTERNAL/patches/gyp.diff"
RANGE_PATH="$BUILD/range-v3" RANGE_PATH="$BUILD/range-v3"
RANGE_CACHE_VERSION="3" RANGE_CACHE_VERSION="3"
@ -64,6 +64,8 @@ build() {
BUILD_VERSION_DATA=$(echo $BUILD_VERSION | cut -d'-' -f 1) BUILD_VERSION_DATA=$(echo $BUILD_VERSION | cut -d'-' -f 1)
getPatches
# libxkbcommon # libxkbcommon
getXkbCommon getXkbCommon
@ -127,6 +129,11 @@ build() {
travisEndFold travisEndFold
} }
getPatches() {
cd "$EXTERNAL"
git clone --depth 1 https://github.com/desktop-app/patches
}
getXkbCommon() { getXkbCommon() {
travisStartFold "Getting xkbcommon" travisStartFold "Getting xkbcommon"
@ -580,8 +587,8 @@ buildCustomQt() {
QT_WAS_BUILT="1" QT_WAS_BUILT="1"
info_msg "Downloading and building patched qt" info_msg "Downloading and building patched qt"
if [ -d "$EXTERNAL/qt${QT_VERSION}" ]; then if [ -d "$EXTERNAL/qt_${QT_VERSION}" ]; then
sudo rm -rf "$EXTERNAL/qt${QT_VERSION}" sudo rm -rf "$EXTERNAL/qt_${QT_VERSION}"
fi fi
cd $QT_PATH cd $QT_PATH
sudo rm -rf * sudo rm -rf *
@ -592,8 +599,8 @@ buildCustomQt() {
cd "$EXTERNAL/qt${QT_VERSION}" cd "$EXTERNAL/qt${QT_VERSION}"
perl init-repository --branch --module-subset=qtbase,qtimageformats perl init-repository --branch --module-subset=qtbase,qtimageformats
git checkout v${QT_VERSION} git checkout v${QT_VERSION}
cd qtbase && git checkout v${QT_VERSION} && cd .. git submodule update qtbase
cd qtimageformats && git checkout v${QT_VERSION} && cd .. git submodule update qtimageformats
cd "$EXTERNAL/qt${QT_VERSION}/qtbase" cd "$EXTERNAL/qt${QT_VERSION}/qtbase"
git apply "$QT_PATCH" git apply "$QT_PATCH"
@ -606,10 +613,10 @@ buildCustomQt() {
cd ../../../.. cd ../../../..
./configure -prefix $QT_PATH -release -opensource -confirm-license -qt-zlib \ ./configure -prefix $QT_PATH -release -opensource -confirm-license -qt-zlib \
-qt-libpng -qt-libjpeg -qt-freetype -qt-harfbuzz -qt-pcre -qt-xcb \ -qt-libpng -qt-libjpeg -qt-harfbuzz -qt-pcre -qt-xcb \
-qt-xkbcommon-x11 -no-opengl -no-gtkstyle -static \ -system-freetype -fontconfig -no-opengl -no-gtk -static \
-nomake examples -nomake tests -no-mirclient \ -nomake examples -nomake tests -no-mirclient \
-dbus-runtime -no-gstreamer -no-mtdev # <- Not sure about these -dbus-runtime -no-mtdev # <- Not sure about these
make $MAKE_ARGS make $MAKE_ARGS
sudo make install sudo make install
} }
@ -664,7 +671,7 @@ buildGYP() {
git clone https://chromium.googlesource.com/external/gyp git clone https://chromium.googlesource.com/external/gyp
cd "$EXTERNAL/gyp" cd "$EXTERNAL/gyp"
git checkout 702ac58e47 git checkout 9f2a7bb1
git apply "$GYP_PATCH" git apply "$GYP_PATCH"
cp -r * "$GYP_PATH/" cp -r * "$GYP_PATH/"
} }
@ -676,6 +683,7 @@ buildTelegram() {
"$GYP_PATH/gyp" \ "$GYP_PATH/gyp" \
-Dapi_id=17349 \ -Dapi_id=17349 \
-Dapi_hash=344583e45741c457fe1862106095a5eb \ -Dapi_hash=344583e45741c457fe1862106095a5eb \
-Dspecial_build_target= \
-Dbuild_defines=${GYP_DEFINES:1} \ -Dbuild_defines=${GYP_DEFINES:1} \
-Dlinux_path_xkbcommon=$XKB_PATH \ -Dlinux_path_xkbcommon=$XKB_PATH \
-Dlinux_path_va=$VA_PATH \ -Dlinux_path_va=$VA_PATH \

View file

@ -9,7 +9,7 @@
<Identity Name="TelegramMessengerLLP.TelegramDesktop" <Identity Name="TelegramMessengerLLP.TelegramDesktop"
ProcessorArchitecture="ARCHITECTURE" ProcessorArchitecture="ARCHITECTURE"
Publisher="CN=536BC709-8EE1-4478-AF22-F0F0F26FF64A" Publisher="CN=536BC709-8EE1-4478-AF22-F0F0F26FF64A"
Version="1.9.0.0" /> Version="1.9.1.0" />
<Properties> <Properties>
<DisplayName>Telegram Desktop</DisplayName> <DisplayName>Telegram Desktop</DisplayName>
<PublisherDisplayName>Telegram FZ-LLC</PublisherDisplayName> <PublisherDisplayName>Telegram FZ-LLC</PublisherDisplayName>

View file

@ -279,9 +279,8 @@ void InitSpellchecker(
not_null<Ui::InputField*> field) { not_null<Ui::InputField*> field) {
#ifndef TDESKTOP_DISABLE_SPELLCHECK #ifndef TDESKTOP_DISABLE_SPELLCHECK
const auto s = Ui::CreateChild<Spellchecker::SpellingHighlighter>( const auto s = Ui::CreateChild<Spellchecker::SpellingHighlighter>(
field->rawTextEdit().get(), field.get(),
session->settings().spellcheckerEnabledValue(), session->settings().spellcheckerEnabledValue());
field->documentContentsChanges());
Spellchecker::SetPhrases({ { Spellchecker::SetPhrases({ {
{ &ph::lng_spellchecker_add, tr::lng_spellchecker_add() }, { &ph::lng_spellchecker_add, tr::lng_spellchecker_add() },
{ &ph::lng_spellchecker_remove, tr::lng_spellchecker_remove() }, { &ph::lng_spellchecker_remove, tr::lng_spellchecker_remove() },

View file

@ -15,8 +15,8 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#define TDESKTOP_ALPHA_VERSION (0ULL) #define TDESKTOP_ALPHA_VERSION (0ULL)
#endif // TDESKTOP_OFFICIAL_TARGET #endif // TDESKTOP_OFFICIAL_TARGET
constexpr auto AppVersion = 1009000; constexpr auto AppVersion = 1009001;
constexpr auto AppVersionStr = "1.9"; constexpr auto AppVersionStr = "1.9.1";
constexpr auto AppBetaVersion = true; constexpr auto AppBetaVersion = true;
constexpr auto AppAlphaVersion = TDESKTOP_ALPHA_VERSION; constexpr auto AppAlphaVersion = TDESKTOP_ALPHA_VERSION;
constexpr auto AppKotatoVersion = 1001000; constexpr auto AppKotatoVersion = 1001000;

View file

@ -244,6 +244,9 @@ void SetupUpdate(not_null<Ui::VerticalLayout*> container) {
} }
bool HasSystemSpellchecker() { bool HasSystemSpellchecker() {
#ifdef TDESKTOP_DISABLE_SPELLCHECK
return false;
#endif // TDESKTOP_DISABLE_SPELLCHECK
return (Platform::IsWindows() && Platform::IsWindows8OrGreater()) return (Platform::IsWindows() && Platform::IsWindows8OrGreater())
|| Platform::IsMac(); || Platform::IsMac();
} }

View file

@ -57,7 +57,7 @@ set "DeployPath=%ReleasePath%\deploy\%AppVersionStrMajor%\%AppVersionStrFull%"
set "SignPath=%HomePath%\..\..\DesktopPrivate\Sign.bat" set "SignPath=%HomePath%\..\..\DesktopPrivate\Sign.bat"
set "BinaryName=Telegram" set "BinaryName=Telegram"
set "DropboxSymbolsPath=Y:\Telegram\symbols" set "DropboxSymbolsPath=Y:\Telegram\symbols"
set "FinalReleasePath=Z:\Telegram\backup" set "FinalReleasePath=Z:\Projects\backup\tdesktop"
if not exist %DropboxSymbolsPath% ( if not exist %DropboxSymbolsPath% (
echo Dropbox path %DropboxSymbolsPath% not found! echo Dropbox path %DropboxSymbolsPath% not found!

View file

@ -118,8 +118,8 @@ if [ "$BuildTarget" == "linux" ] || [ "$BuildTarget" == "linux32" ]; then
Error "Dropbox path not found!" Error "Dropbox path not found!"
fi fi
BackupPath="/media/psf/backup/$AppVersionStrMajor/$AppVersionStrFull/t$BuildTarget" BackupPath="/media/psf/backup/tdesktop/$AppVersionStrMajor/$AppVersionStrFull/t$BuildTarget"
if [ ! -d "/media/psf/backup" ]; then if [ ! -d "/media/psf/backup/tdesktop" ]; then
Error "Backup folder not found!" Error "Backup folder not found!"
fi fi
@ -248,8 +248,8 @@ if [ "$BuildTarget" == "mac" ] || [ "$BuildTarget" == "osx" ] || [ "$BuildTarget
Error "Dropbox path not found!" Error "Dropbox path not found!"
fi fi
BackupPath="$HOME/Telegram/backup/$AppVersionStrMajor/$AppVersionStrFull" BackupPath="$HOME/Projects/backup/tdesktop/$AppVersionStrMajor/$AppVersionStrFull"
if [ ! -d "$HOME/Telegram/backup" ]; then if [ ! -d "$HOME/Projects/backup/tdesktop" ]; then
Error "Backup path not found!" Error "Backup path not found!"
fi fi

View file

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

View file

@ -1,6 +1,6 @@
import os, sys, requests, pprint, re, json import os, sys, requests, pprint, re, json
from uritemplate import URITemplate, expand from uritemplate import URITemplate, expand
from subprocess import call from subprocess import call, Popen, PIPE
from os.path import expanduser from os.path import expanduser
changelog_file = '../../changelog.txt' changelog_file = '../../changelog.txt'
@ -53,6 +53,59 @@ def checkResponseCode(result, right_code):
print('Wrong result code: ' + str(result.status_code) + ', should be ' + str(right_code)) print('Wrong result code: ' + str(result.status_code) + ', should be ' + str(right_code))
sys.exit(1) sys.exit(1)
def getOutput(command):
p = Popen(command.split(), stdout=PIPE)
output, err = p.communicate()
if err != None or p.returncode != 0:
print('ERROR!')
print(err)
print(p.returncode)
sys.exit(1)
return output.decode('utf-8')
def prepareSources():
workpath = os.getcwd()
os.chdir('../..')
rootpath = os.getcwd()
finalpath = rootpath + '/out/Release/sources.tar'
if os.path.exists(finalpath):
os.remove(finalpath)
if os.path.exists(finalpath + '.gz'):
os.remove(finalpath + '.gz')
tmppath = rootpath + '/out/Release/tmp.tar'
print('Preparing source tarball...')
if (call(('git archive --prefix=tdesktop-' + version + '-full/ -o ' + finalpath + ' v' + version).split()) != 0):
os.remove(finalpath)
sys.exit(1)
lines = getOutput('git submodule foreach').split('\n')
for line in lines:
if len(line) == 0:
continue
match = re.match(r"^Entering '([^']+)'$", line)
if not match:
print('Bad line: ' + line)
sys.exit(1)
path = match.group(1)
revision = getOutput('git rev-parse v' + version + ':' + path).split('\n')[0]
print('Adding submodule ' + path + '...')
os.chdir(path)
if (call(('git archive --prefix=tdesktop-' + version + '-full/' + path + '/ ' + revision + ' -o ' + tmppath).split()) != 0):
os.remove(finalpath)
os.remove(tmppath)
sys.exit(1)
if (call(('gtar --concatenate --file=' + finalpath + ' ' + tmppath).split()) != 0):
os.remove(finalpath)
os.remove(tmppath)
sys.exit(1)
os.remove(tmppath)
os.chdir(rootpath)
print('Compressing...')
if (call(('gzip -9 ' + finalpath).split()) != 0):
os.remove(finalpath)
sys.exit(1)
os.chdir(workpath)
return finalpath + '.gz'
pp = pprint.PrettyPrinter(indent=2) pp = pprint.PrettyPrinter(indent=2)
url = 'https://api.github.com/' url = 'https://api.github.com/'
@ -152,6 +205,12 @@ files.append({
'mime': 'application/octet-stream', 'mime': 'application/octet-stream',
'label': 'Linux 32 bit: Binary', 'label': 'Linux 32 bit: Binary',
}) })
files.append({
'local': 'sources',
'remote': 'tdesktop-' + version + '-full.tar.gz',
'mime': 'application/x-gzip',
'label': 'Source code (tar.gz, full)',
})
r = requests.get(url + 'repos/telegramdesktop/tdesktop/releases/tags/v' + version) r = requests.get(url + 'repos/telegramdesktop/tdesktop/releases/tags/v' + version)
if r.status_code == 404: if r.status_code == 404:
@ -182,8 +241,8 @@ if r.status_code == 404:
sys.exit(1) sys.exit(1)
changelog = changelog.strip() changelog = changelog.strip()
print('Changelog: '); print('Changelog: ')
print(changelog); print(changelog)
r = requests.post(url + 'repos/telegramdesktop/tdesktop/releases', headers={'Authorization': 'token ' + access_token}, data=json.dumps({ r = requests.post(url + 'repos/telegramdesktop/tdesktop/releases', headers={'Authorization': 'token ' + access_token}, data=json.dumps({
'tag_name': 'v' + version, 'tag_name': 'v' + version,
@ -195,7 +254,7 @@ if r.status_code == 404:
checkResponseCode(r, 201) checkResponseCode(r, 201)
tagname = 'v' + version tagname = 'v' + version
call("git fetch origin".split()); call("git fetch origin".split())
if stable == 1: if stable == 1:
call("git push launchpad {}:master".format(tagname).split()) call("git push launchpad {}:master".format(tagname).split())
else: else:
@ -203,7 +262,7 @@ else:
call("git push --tags launchpad".split()) call("git push --tags launchpad".split())
r = requests.get(url + 'repos/telegramdesktop/tdesktop/releases/tags/v' + version) r = requests.get(url + 'repos/telegramdesktop/tdesktop/releases/tags/v' + version)
checkResponseCode(r, 200); checkResponseCode(r, 200)
release_data = r.json() release_data = r.json()
#pp.pprint(release_data) #pp.pprint(release_data)
@ -211,8 +270,8 @@ release_data = r.json()
release_id = release_data['id'] release_id = release_data['id']
print('Release ID: ' + str(release_id)) print('Release ID: ' + str(release_id))
r = requests.get(url + 'repos/telegramdesktop/tdesktop/releases/' + str(release_id) + '/assets'); r = requests.get(url + 'repos/telegramdesktop/tdesktop/releases/' + str(release_id) + '/assets')
checkResponseCode(r, 200); checkResponseCode(r, 200)
assets = release_data['assets'] assets = release_data['assets']
for asset in assets: for asset in assets:
@ -230,12 +289,15 @@ for asset in assets:
for file in files: for file in files:
if 'already' in file: if 'already' in file:
continue continue
file_path = local_folder + file['backup_folder'] + '/' + file['local'] if file['local'] == 'sources':
file_path = prepareSources()
else:
file_path = local_folder + file['backup_folder'] + '/' + file['local']
if not os.path.isfile(file_path): if not os.path.isfile(file_path):
print('Warning: file not found ' + file['local']) print('Warning: file not found ' + file['local'])
continue continue
upload_url = expand(release_data['upload_url'], {'name': file['remote'], 'label': file['label']}) + '&access_token=' + access_token; upload_url = expand(release_data['upload_url'], {'name': file['remote'], 'label': file['label']}) + '&access_token=' + access_token
content = upload_in_chunks(file_path, 10) content = upload_in_chunks(file_path, 10)

View file

@ -1,6 +1,6 @@
AppVersion 1009000 AppVersion 1009001
AppVersionStrMajor 1.9 AppVersionStrMajor 1.9
AppVersionStrSmall 1.9 AppVersionStrSmall 1.9.1
AppVersionStr 1.9.0 AppVersionStr 1.9.1
BetaChannel 1 BetaChannel 1
AlphaVersion 0 AlphaVersion 0

View file

@ -23,6 +23,7 @@ apiId = ''
apiHash = '' apiHash = ''
nextApiId = False nextApiId = False
nextApiHash = False nextApiHash = False
ciBuild = False
for arg in sys.argv: for arg in sys.argv:
if nextApiId: if nextApiId:
apiId = re.sub(r'[^\d]', '', arg) apiId = re.sub(r'[^\d]', '', arg)
@ -33,6 +34,8 @@ for arg in sys.argv:
else: else:
nextApiId = (arg == '--api-id') nextApiId = (arg == '--api-id')
nextApiHash = (arg == '--api-hash') nextApiHash = (arg == '--api-hash')
if arg == '--ci-build':
ciBuild = True
officialTarget = '' officialTarget = ''
officialTargetFile = scriptPath + '/../build/target' officialTargetFile = scriptPath + '/../build/target'
@ -86,6 +89,9 @@ gypArguments.append('-Dapi_id=' + apiId)
gypArguments.append('-Dapi_hash=' + apiHash) gypArguments.append('-Dapi_hash=' + apiHash)
gypArguments.append('-Dlottie_use_cache=1') gypArguments.append('-Dlottie_use_cache=1')
gypArguments.append('-Dspecial_build_target=' + officialTarget) gypArguments.append('-Dspecial_build_target=' + officialTarget)
if ciBuild:
gypArguments.append('-Dci_build=1')
if 'TDESKTOP_BUILD_DEFINES' in os.environ: if 'TDESKTOP_BUILD_DEFINES' in os.environ:
buildDefines = os.environ['TDESKTOP_BUILD_DEFINES'] buildDefines = os.environ['TDESKTOP_BUILD_DEFINES']
gypArguments.append('-Dbuild_defines=' + buildDefines) gypArguments.append('-Dbuild_defines=' + buildDefines)

@ -1 +1 @@
Subproject commit b12d0dbe9a388d08dc97ac8b164b52b8b6e33ea1 Subproject commit d76b213fc41943ecc1a469b6cd7f8a60318a18be

View file

@ -1,3 +1,7 @@
1.9.1 beta (06.11.19)
- Bug fixes and other minor improvements.
1.9 beta (05.11.19) 1.9 beta (05.11.19)
- System spellchecker on Windows 8+ and macOS 10.12+. - System spellchecker on Windows 8+ and macOS 10.12+.

View file

@ -13,7 +13,7 @@ You will require **api_id** and **api_hash** to access the Telegram API servers.
You will need GCC 8.1 installed. To install them and all the required dependencies run You will need GCC 8.1 installed. To install them and all the required dependencies run
sudo apt-get install software-properties-common -y && \ sudo apt-get install software-properties-common -y && \
sudo apt-get install git libexif-dev liblzma-dev libz-dev libssl-dev libappindicator-dev libicu-dev libdee-dev libdrm-dev dh-autoreconf autoconf automake build-essential libass-dev libfreetype6-dev libgpac-dev libsdl1.2-dev libtheora-dev libtool libva-dev libvdpau-dev libvorbis-dev libxcb1-dev libxcb-image0-dev libxcb-shm0-dev libxcb-xfixes0-dev libxcb-keysyms1-dev libxcb-icccm4-dev libxcb-render-util0-dev libxcb-util0-dev libxrender-dev libasound-dev libpulse-dev libxcb-sync0-dev libxcb-randr0-dev libx11-xcb-dev libffi-dev libncurses5-dev pkg-config texi2html zlib1g-dev yasm xutils-dev bison python-xcbgen chrpath gperf -y && \ sudo apt-get install git libexif-dev liblzma-dev libz-dev libssl-dev libappindicator-dev libicu-dev libdee-dev libdrm-dev dh-autoreconf autoconf automake build-essential libass-dev libfreetype6-dev libgpac-dev libsdl1.2-dev libtheora-dev libtool libva-dev libvdpau-dev libvorbis-dev libxcb1-dev libxcb-image0-dev libxcb-shm0-dev libxcb-xfixes0-dev libxcb-keysyms1-dev libxcb-icccm4-dev libxcb-render-util0-dev libxcb-util0-dev libxcb-xkb-dev libxrender-dev libasound-dev libpulse-dev libxcb-sync0-dev libxcb-randr0-dev libx11-xcb-dev libffi-dev libncurses5-dev pkg-config texi2html zlib1g-dev yasm xutils-dev bison python-xcbgen chrpath gperf -y && \
sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y && \ sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y && \
sudo apt-get update && \ sudo apt-get update && \
sudo apt-get install gcc-8 g++-8 -y && \ sudo apt-get install gcc-8 g++-8 -y && \
@ -218,7 +218,7 @@ Go to ***BuildPath*** and run
git clone https://github.com/xkbcommon/libxkbcommon.git git clone https://github.com/xkbcommon/libxkbcommon.git
cd libxkbcommon cd libxkbcommon
git checkout xkbcommon-0.8.4 git checkout xkbcommon-0.8.4
./autogen.sh --disable-x11 ./autogen.sh
make $MAKE_THREADS_CNT make $MAKE_THREADS_CNT
sudo make install sudo make install
cd .. cd ..
@ -259,7 +259,11 @@ Go to ***BuildPath*** and run
./configure ./configure
make $MAKE_THREADS_CNT make $MAKE_THREADS_CNT
sudo make install sudo make install
cd src/tools cd src
rm -r testing
git clone https://github.com/google/googletest testing
cd tools
sed -i 's/minidump_upload.m/minidump_upload.cc/' linux/tools_linux.gypi
../../../gyp/gyp --depth=. --generator-output=.. -Goutput_dir=../out tools.gyp --format=cmake ../../../gyp/gyp --depth=. --generator-output=.. -Goutput_dir=../out tools.gyp --format=cmake
cd ../../out/Default cd ../../out/Default
cmake . cmake .

View file

@ -32,7 +32,7 @@ Open **x86 Native Tools Command Prompt for VS 2019.bat**, go to ***BuildPath***
cd ThirdParty cd ThirdParty
git clone https://github.com/desktop-app/patches.git git clone https://github.com/desktop-app/patches.git
cd patches cd patches
git checkout b0ec5df4 git checkout b0ec5df
cd ../ cd ../
git clone https://chromium.googlesource.com/external/gyp git clone https://chromium.googlesource.com/external/gyp
cd gyp cd gyp
@ -95,7 +95,6 @@ Open **x86 Native Tools Command Prompt for VS 2019.bat**, go to ***BuildPath***
git clone https://github.com/desktop-app/zlib.git git clone https://github.com/desktop-app/zlib.git
cd zlib cd zlib
git checkout tdesktop
cd contrib\vstudio\vc14 cd contrib\vstudio\vc14
msbuild zlibstat.vcxproj /property:Configuration=Debug msbuild zlibstat.vcxproj /property:Configuration=Debug
msbuild zlibstat.vcxproj /property:Configuration=ReleaseWithoutAsm msbuild zlibstat.vcxproj /property:Configuration=ReleaseWithoutAsm

View file

@ -22,7 +22,7 @@ Go to ***BuildPath*** and run
MACOSX_DEPLOYMENT_TARGET=10.12 MACOSX_DEPLOYMENT_TARGET=10.12
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew install automake cmake fdk-aac git lame libass libtool libvorbis libvpx ninja opus sdl shtool texi2html theora wget x264 xvid yasm pkg-config brew install automake cmake fdk-aac git lame libass libtool libvorbis libvpx ninja opus sdl shtool texi2html theora wget x264 xvid yasm pkg-config gnu-tar
sudo xcode-select -s /Applications/Xcode.app/Contents/Developer sudo xcode-select -s /Applications/Xcode.app/Contents/Developer