mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 06:35:14 +00:00
Closed beta 10002002: testin OS X build by GYP.
This commit is contained in:
@@ -138,18 +138,6 @@ QString BetaSignature;
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
QString workDir;
|
||||
#ifdef Q_OS_MAC
|
||||
if (QDir(QString()).absolutePath() == "/") {
|
||||
QString first = argc ? QString::fromLocal8Bit(argv[0]) : QString();
|
||||
if (!first.isEmpty()) {
|
||||
QFileInfo info(first);
|
||||
if (info.exists()) {
|
||||
QDir result(info.absolutePath() + "/../../..");
|
||||
workDir = result.absolutePath() + '/';
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
QString remove;
|
||||
int version = 0;
|
||||
|
@@ -160,6 +160,14 @@ int main(int argc, const char * argv[]) {
|
||||
|
||||
writeLog([@"Starting update files iteration, path: " stringByAppendingString: srcEnum]);
|
||||
|
||||
NSString *contentsPath = [appDirFull stringByAppendingString: @"/Contents"];
|
||||
writeLog([[NSArray arrayWithObjects: @"Clearing dir ", contentsPath, nil] componentsJoinedByString:@""]);
|
||||
if (![fileManager removeItemAtPath:contentsPath error:nil]) {
|
||||
writeLog([@"Failed to clear path for directory " stringByAppendingString:contentsPath]);
|
||||
delFolder();
|
||||
return -1;
|
||||
}
|
||||
|
||||
NSArray *keys = [NSArray arrayWithObject:NSURLIsDirectoryKey];
|
||||
NSDirectoryEnumerator *enumerator = [fileManager
|
||||
enumeratorAtURL:[NSURL fileURLWithPath:srcEnum]
|
||||
|
@@ -24,6 +24,7 @@ Copyright (c) 2014-2016 John Preston, https://desktop.telegram.org
|
||||
#include <vector>
|
||||
#include <QtCore/QString>
|
||||
#include <QtCore/QStringList>
|
||||
#include <QtCore/QtMath>
|
||||
|
||||
namespace codegen {
|
||||
namespace style {
|
||||
@@ -78,7 +79,7 @@ inline int pxAdjust(int value, int scale) {
|
||||
if (value < 0) {
|
||||
return -pxAdjust(-value, scale);
|
||||
}
|
||||
return static_cast<int>(std::floor((value * scale / 4.) + 0.1));
|
||||
return qFloor((value * scale / 4.) + 0.1);
|
||||
}
|
||||
|
||||
struct point {
|
||||
|
@@ -22,7 +22,7 @@ Copyright (c) 2014-2016 John Preston, https://desktop.telegram.org
|
||||
|
||||
#include "core/basic_types.h"
|
||||
|
||||
#define BETA_VERSION_MACRO (10002001ULL)
|
||||
#define BETA_VERSION_MACRO (10002002ULL)
|
||||
|
||||
constexpr int AppVersion = 10002;
|
||||
constexpr str_const AppVersionStr = "0.10.2";
|
||||
|
Reference in New Issue
Block a user