mirror of
https://github.com/vale981/tdesktop
synced 2025-03-06 02:01:40 -05:00
Move private folder.
This commit is contained in:
parent
25b6dea5e3
commit
e757e6f67b
14 changed files with 20 additions and 20 deletions
|
@ -5,7 +5,7 @@ pushd `dirname $0` > /dev/null
|
||||||
FullScriptPath=`pwd`
|
FullScriptPath=`pwd`
|
||||||
popd > /dev/null
|
popd > /dev/null
|
||||||
|
|
||||||
if [ ! -d "$FullScriptPath/../../../../TelegramPrivate" ]; then
|
if [ ! -d "$FullScriptPath/../../../../DesktopPrivate" ]; then
|
||||||
echo ""
|
echo ""
|
||||||
echo "This script is for building the production version of Telegram Desktop."
|
echo "This script is for building the production version of Telegram Desktop."
|
||||||
echo ""
|
echo ""
|
||||||
|
|
|
@ -6,7 +6,7 @@ popd > /dev/null
|
||||||
|
|
||||||
FileName="$1"
|
FileName="$1"
|
||||||
|
|
||||||
if [ ! -d "$FullScriptPath/../../../../TelegramPrivate" ]; then
|
if [ ! -d "$FullScriptPath/../../../../DesktopPrivate" ]; then
|
||||||
echo ""
|
echo ""
|
||||||
echo "This script is for building the production version of Telegram Desktop."
|
echo "This script is for building the production version of Telegram Desktop."
|
||||||
echo ""
|
echo ""
|
||||||
|
|
|
@ -5,7 +5,7 @@ pushd `dirname $0` > /dev/null
|
||||||
FullScriptPath=`pwd`
|
FullScriptPath=`pwd`
|
||||||
popd > /dev/null
|
popd > /dev/null
|
||||||
|
|
||||||
if [ ! -d "$FullScriptPath/../../../../TelegramPrivate" ]; then
|
if [ ! -d "$FullScriptPath/../../../../DesktopPrivate" ]; then
|
||||||
echo ""
|
echo ""
|
||||||
echo "This script is for building the production version of Telegram Desktop."
|
echo "This script is for building the production version of Telegram Desktop."
|
||||||
echo ""
|
echo ""
|
||||||
|
|
|
@ -35,8 +35,8 @@ w/CVnbwQOw0g5GBwwFV3r0uTTvy44xx8XXxk+Qknu4eBCsmrAFNnAgMBAAE=\n\
|
||||||
|
|
||||||
extern const char *PrivateKey;
|
extern const char *PrivateKey;
|
||||||
extern const char *PrivateBetaKey;
|
extern const char *PrivateBetaKey;
|
||||||
#include "../../../../TelegramPrivate/packer_private.h" // RSA PRIVATE KEYS for update signing
|
#include "../../../../DesktopPrivate/packer_private.h" // RSA PRIVATE KEYS for update signing
|
||||||
#include "../../../../TelegramPrivate/alpha_private.h" // private key for alpha version file generation
|
#include "../../../../DesktopPrivate/alpha_private.h" // private key for alpha version file generation
|
||||||
|
|
||||||
QString countAlphaVersionSignature(quint64 version);
|
QString countAlphaVersionSignature(quint64 version);
|
||||||
|
|
||||||
|
|
|
@ -183,7 +183,7 @@ constexpr auto ApiHash = "344583e45741c457fe1862106095a5eb";
|
||||||
#if (TDESKTOP_ALPHA_VERSION != 0)
|
#if (TDESKTOP_ALPHA_VERSION != 0)
|
||||||
|
|
||||||
// Private key for downloading closed alphas.
|
// Private key for downloading closed alphas.
|
||||||
#include "../../../TelegramPrivate/alpha_private.h"
|
#include "../../../DesktopPrivate/alpha_private.h"
|
||||||
|
|
||||||
#else
|
#else
|
||||||
static const char *AlphaPrivateKey = "";
|
static const char *AlphaPrivateKey = "";
|
||||||
|
|
|
@ -3,7 +3,7 @@ setlocal enabledelayedexpansion
|
||||||
set "FullScriptPath=%~dp0"
|
set "FullScriptPath=%~dp0"
|
||||||
set "FullExecPath=%cd%"
|
set "FullExecPath=%cd%"
|
||||||
|
|
||||||
if not exist "%FullScriptPath%..\..\..\TelegramPrivate" (
|
if not exist "%FullScriptPath%..\..\..\DesktopPrivate" (
|
||||||
echo.
|
echo.
|
||||||
echo This script is for building the production version of Telegram Desktop.
|
echo This script is for building the production version of Telegram Desktop.
|
||||||
echo.
|
echo.
|
||||||
|
@ -54,7 +54,7 @@ set "SetupFile=tsetup.%AppVersionStrFull%.exe"
|
||||||
set "PortableFile=tportable.%AppVersionStrFull%.zip"
|
set "PortableFile=tportable.%AppVersionStrFull%.zip"
|
||||||
set "ReleasePath=%HomePath%\..\out\Release"
|
set "ReleasePath=%HomePath%\..\out\Release"
|
||||||
set "DeployPath=%ReleasePath%\deploy\%AppVersionStrMajor%\%AppVersionStrFull%"
|
set "DeployPath=%ReleasePath%\deploy\%AppVersionStrMajor%\%AppVersionStrFull%"
|
||||||
set "SignPath=%HomePath%\..\..\TelegramPrivate\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:\Telegram\backup"
|
||||||
|
|
|
@ -4,7 +4,7 @@ pushd `dirname $0` > /dev/null
|
||||||
FullScriptPath=`pwd`
|
FullScriptPath=`pwd`
|
||||||
popd > /dev/null
|
popd > /dev/null
|
||||||
|
|
||||||
if [ ! -d "$FullScriptPath/../../../TelegramPrivate" ]; then
|
if [ ! -d "$FullScriptPath/../../../DesktopPrivate" ]; then
|
||||||
echo ""
|
echo ""
|
||||||
echo "This script is for building the production version of Telegram Desktop."
|
echo "This script is for building the production version of Telegram Desktop."
|
||||||
echo ""
|
echo ""
|
||||||
|
|
|
@ -4,7 +4,7 @@ pushd `dirname $0` > /dev/null
|
||||||
FullScriptPath=`pwd`
|
FullScriptPath=`pwd`
|
||||||
popd > /dev/null
|
popd > /dev/null
|
||||||
|
|
||||||
if [ ! -d "$FullScriptPath/../../../TelegramPrivate" ]; then
|
if [ ! -d "$FullScriptPath/../../../DesktopPrivate" ]; then
|
||||||
echo ""
|
echo ""
|
||||||
echo "This script is for building the production version of Telegram Desktop."
|
echo "This script is for building the production version of Telegram Desktop."
|
||||||
echo ""
|
echo ""
|
||||||
|
@ -186,7 +186,7 @@ if [ "$DeployLinux32" == "1" ]; then
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
$FullScriptPath/../../../TelegramPrivate/mount.sh
|
$FullScriptPath/../../../DesktopPrivate/mount.sh
|
||||||
|
|
||||||
declare -a Files
|
declare -a Files
|
||||||
if [ "$DeployMac" == "1" ]; then
|
if [ "$DeployMac" == "1" ]; then
|
||||||
|
@ -208,7 +208,7 @@ if [ "$DeployLinux32" == "1" ]; then
|
||||||
Files+=("tlinux32/$Linux32UpdateFile" "tlinux32/$Linux32SetupFile")
|
Files+=("tlinux32/$Linux32UpdateFile" "tlinux32/$Linux32SetupFile")
|
||||||
fi
|
fi
|
||||||
cd $DeployPath
|
cd $DeployPath
|
||||||
rsync -avR --progress ${Files[@]} "$FullScriptPath/../../../TelegramPrivate/remote/files"
|
rsync -avR --progress ${Files[@]} "$FullScriptPath/../../../DesktopPrivate/remote/files"
|
||||||
|
|
||||||
echo "Version $AppVersionStrFull was deployed!"
|
echo "Version $AppVersionStrFull was deployed!"
|
||||||
cd $FullExecPath
|
cd $FullExecPath
|
||||||
|
|
|
@ -4,7 +4,7 @@ from subprocess import call
|
||||||
from os.path import expanduser
|
from os.path import expanduser
|
||||||
|
|
||||||
changelog_file = '../../changelog.txt'
|
changelog_file = '../../changelog.txt'
|
||||||
token_file = '../../../TelegramPrivate/github-releases-token.txt'
|
token_file = '../../../DesktopPrivate/github-releases-token.txt'
|
||||||
|
|
||||||
version = ''
|
version = ''
|
||||||
commit = ''
|
commit = ''
|
||||||
|
|
|
@ -9,7 +9,7 @@ Param2="$2"
|
||||||
Param3="$3"
|
Param3="$3"
|
||||||
Param4="$4"
|
Param4="$4"
|
||||||
|
|
||||||
if [ ! -d "$FullScriptPath/../../../TelegramPrivate" ]; then
|
if [ ! -d "$FullScriptPath/../../../DesktopPrivate" ]; then
|
||||||
echo ""
|
echo ""
|
||||||
echo "This script is for building the production version of Telegram Desktop."
|
echo "This script is for building the production version of Telegram Desktop."
|
||||||
echo ""
|
echo ""
|
||||||
|
|
|
@ -3,7 +3,7 @@ setlocal enabledelayedexpansion
|
||||||
set "FullScriptPath=%~dp0"
|
set "FullScriptPath=%~dp0"
|
||||||
set "FullExecPath=%cd%"
|
set "FullExecPath=%cd%"
|
||||||
|
|
||||||
if not exist "%FullScriptPath%..\..\..\TelegramPrivate" (
|
if not exist "%FullScriptPath%..\..\..\DesktopPrivate" (
|
||||||
echo.
|
echo.
|
||||||
echo This script is for building the production version of Telegram Desktop.
|
echo This script is for building the production version of Telegram Desktop.
|
||||||
echo.
|
echo.
|
||||||
|
@ -13,7 +13,7 @@ if not exist "%FullScriptPath%..\..\..\TelegramPrivate" (
|
||||||
)
|
)
|
||||||
|
|
||||||
set "HomePath=%FullScriptPath%.."
|
set "HomePath=%FullScriptPath%.."
|
||||||
set "SignAppxPath=%HomePath%\..\..\TelegramPrivate\AppxSign.bat"
|
set "SignAppxPath=%HomePath%\..\..\DesktopPrivate\AppxSign.bat"
|
||||||
set "ResourcesPath=%HomePath%\Resources"
|
set "ResourcesPath=%HomePath%\Resources"
|
||||||
set "SolutionPath=%HomePath%\.."
|
set "SolutionPath=%HomePath%\.."
|
||||||
set "ReleasePath=%HomePath%\..\out\Debug"
|
set "ReleasePath=%HomePath%\..\out\Debug"
|
||||||
|
|
|
@ -183,7 +183,7 @@ if building:
|
||||||
commandPath = scriptPath + '/../../out/Debug/' + outputFolder + '/command.txt'
|
commandPath = scriptPath + '/../../out/Debug/' + outputFolder + '/command.txt'
|
||||||
|
|
||||||
if composing:
|
if composing:
|
||||||
templatePath = scriptPath + '/../../../TelegramPrivate/updates_template.txt'
|
templatePath = scriptPath + '/../../../DesktopPrivate/updates_template.txt'
|
||||||
if not os.path.exists(templatePath):
|
if not os.path.exists(templatePath):
|
||||||
finish(1, 'Template file "' + templatePath + '" not found.')
|
finish(1, 'Template file "' + templatePath + '" not found.')
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@ pushd `dirname $0` > /dev/null
|
||||||
FullScriptPath=`pwd`
|
FullScriptPath=`pwd`
|
||||||
popd > /dev/null
|
popd > /dev/null
|
||||||
|
|
||||||
if [ ! -d "$FullScriptPath/../../../TelegramPrivate" ]; then
|
if [ ! -d "$FullScriptPath/../../../DesktopPrivate" ]; then
|
||||||
echo ""
|
echo ""
|
||||||
echo "This script is for building the production version of Telegram Desktop."
|
echo "This script is for building the production version of Telegram Desktop."
|
||||||
echo ""
|
echo ""
|
||||||
|
|
|
@ -42,9 +42,9 @@ if os.path.isfile(officialTargetFile):
|
||||||
officialTarget = line.strip()
|
officialTarget = line.strip()
|
||||||
|
|
||||||
if officialTarget != '':
|
if officialTarget != '':
|
||||||
officialApiIdFile = scriptPath + '/../../../TelegramPrivate/custom_api_id.h'
|
officialApiIdFile = scriptPath + '/../../../DesktopPrivate/custom_api_id.h'
|
||||||
if not os.path.isfile(officialApiIdFile):
|
if not os.path.isfile(officialApiIdFile):
|
||||||
print("[ERROR] TelegramPrivate/custom_api_id.h not found.")
|
print("[ERROR] DesktopPrivate/custom_api_id.h not found.")
|
||||||
finish(1)
|
finish(1)
|
||||||
with open(officialApiIdFile, 'r') as f:
|
with open(officialApiIdFile, 'r') as f:
|
||||||
for line in f:
|
for line in f:
|
||||||
|
|
Loading…
Add table
Reference in a new issue