mirror of
https://github.com/nzbget/nzbget.git
synced 2025-12-23 22:27:45 -05:00
Compare commits
11 Commits
v21.1-r232
...
develop
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5e26d52d70 | ||
|
|
ae81c9403d | ||
|
|
b0d35f9a09 | ||
|
|
ce7cd631c2 | ||
|
|
0432cf13d3 | ||
|
|
799de88b3e | ||
|
|
7ff3251dcf | ||
|
|
97ae03bbd3 | ||
|
|
6bbfb6b7b7 | ||
|
|
f02bbbefd7 | ||
|
|
4d19c899bd |
31
ChangeLog
31
ChangeLog
@@ -1,7 +1,36 @@
|
||||
nzbget-21.1:
|
||||
nzbget-21.2-testing:
|
||||
- please see repository change log at
|
||||
https://github.com/nzbget/nzbget/commits/develop
|
||||
|
||||
nzbget-21.1:
|
||||
- fixed crash on systems with 64-bit time;
|
||||
- corrected icon in Windows "uninstall program" list;
|
||||
- allow special characters in URL for username and password;
|
||||
- improved reporting for binding errors on Windows;
|
||||
- fixed unicode space characters in javascript files, which could cause issues
|
||||
with nginx proxy;
|
||||
- fixed negative values for "FileSizeLo" in json-rpc;
|
||||
- corrected url detection in rpc-method "append";
|
||||
- added support for new error messages in unrar 5.80;
|
||||
- now always using snapshots when reading directory contents:
|
||||
- in previous versions snapshots were used on macOS only;
|
||||
- now they are used on all OSes;
|
||||
- this solves issue with leftovers during directory cleanup, which could
|
||||
happen on certain OSes when working with network drives;
|
||||
- fixed file allocating on file systems where sparse files are not supported:
|
||||
- the issue could happen when InterDir was located on a network drive;
|
||||
- fixed crash caused by malformed nzb files;
|
||||
- fixed GROUP command in nserv;
|
||||
- updated url of the global certificate storage file in the build scripts;
|
||||
- fixed: file selector in WebKit based browsers doesn't allow to choose the
|
||||
same file again;
|
||||
- removed outdated links from web interface;
|
||||
- fixed PC sleep mode not working (Windows only);
|
||||
- set "SameSite" attribute for cookies;
|
||||
- corrected typo in about dialog of web interface;
|
||||
- updated license text: changed address of Free Software Foundation and minor
|
||||
formatting changes.
|
||||
|
||||
nzbget-21.0:
|
||||
- reworked duplicate handling to support URLs, especially when using RSS
|
||||
feeds:
|
||||
|
||||
20
configure
vendored
20
configure
vendored
@@ -1,6 +1,6 @@
|
||||
#! /bin/sh
|
||||
# Guess values for system-dependent variables and create Makefiles.
|
||||
# Generated by GNU Autoconf 2.69 for nzbget 21.1-testing.
|
||||
# Generated by GNU Autoconf 2.69 for nzbget 21.2-testing.
|
||||
#
|
||||
# Report bugs to <hugbug@users.sourceforge.net>.
|
||||
#
|
||||
@@ -580,8 +580,8 @@ MAKEFLAGS=
|
||||
# Identity of this package.
|
||||
PACKAGE_NAME='nzbget'
|
||||
PACKAGE_TARNAME='nzbget'
|
||||
PACKAGE_VERSION='21.1-testing'
|
||||
PACKAGE_STRING='nzbget 21.1-testing'
|
||||
PACKAGE_VERSION='21.2-testing'
|
||||
PACKAGE_STRING='nzbget 21.2-testing'
|
||||
PACKAGE_BUGREPORT='hugbug@users.sourceforge.net'
|
||||
PACKAGE_URL=''
|
||||
|
||||
@@ -1348,7 +1348,7 @@ if test "$ac_init_help" = "long"; then
|
||||
# Omit some internal or obsolete options to make the list less imposing.
|
||||
# This message is too long to be a string in the A/UX 3.1 sh.
|
||||
cat <<_ACEOF
|
||||
\`configure' configures nzbget 21.1-testing to adapt to many kinds of systems.
|
||||
\`configure' configures nzbget 21.2-testing to adapt to many kinds of systems.
|
||||
|
||||
Usage: $0 [OPTION]... [VAR=VALUE]...
|
||||
|
||||
@@ -1419,7 +1419,7 @@ fi
|
||||
|
||||
if test -n "$ac_init_help"; then
|
||||
case $ac_init_help in
|
||||
short | recursive ) echo "Configuration of nzbget 21.1-testing:";;
|
||||
short | recursive ) echo "Configuration of nzbget 21.2-testing:";;
|
||||
esac
|
||||
cat <<\_ACEOF
|
||||
|
||||
@@ -1584,7 +1584,7 @@ fi
|
||||
test -n "$ac_init_help" && exit $ac_status
|
||||
if $ac_init_version; then
|
||||
cat <<\_ACEOF
|
||||
nzbget configure 21.1-testing
|
||||
nzbget configure 21.2-testing
|
||||
generated by GNU Autoconf 2.69
|
||||
|
||||
Copyright (C) 2012 Free Software Foundation, Inc.
|
||||
@@ -2053,7 +2053,7 @@ cat >config.log <<_ACEOF
|
||||
This file contains any messages produced by compilers while
|
||||
running configure, to aid debugging if configure makes a mistake.
|
||||
|
||||
It was created by nzbget $as_me 21.1-testing, which was
|
||||
It was created by nzbget $as_me 21.2-testing, which was
|
||||
generated by GNU Autoconf 2.69. Invocation command line was
|
||||
|
||||
$ $0 $@
|
||||
@@ -3026,7 +3026,7 @@ fi
|
||||
|
||||
# Define the identity of the package.
|
||||
PACKAGE='nzbget'
|
||||
VERSION='21.1-testing'
|
||||
VERSION='21.2-testing'
|
||||
|
||||
|
||||
cat >>confdefs.h <<_ACEOF
|
||||
@@ -9163,7 +9163,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
||||
# report actual input values of CONFIG_FILES etc. instead of their
|
||||
# values after options handling.
|
||||
ac_log="
|
||||
This file was extended by nzbget $as_me 21.1-testing, which was
|
||||
This file was extended by nzbget $as_me 21.2-testing, which was
|
||||
generated by GNU Autoconf 2.69. Invocation command line was
|
||||
|
||||
CONFIG_FILES = $CONFIG_FILES
|
||||
@@ -9229,7 +9229,7 @@ _ACEOF
|
||||
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
||||
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
|
||||
ac_cs_version="\\
|
||||
nzbget config.status 21.1-testing
|
||||
nzbget config.status 21.2-testing
|
||||
configured by $0, generated by GNU Autoconf 2.69,
|
||||
with options \\"\$ac_cs_config\\"
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# This file is part of nzbget. See <http://nzbget.net>.
|
||||
#
|
||||
# Copyright (C) 2008-2019 Andrey Prygunkov <hugbug@users.sourceforge.net>
|
||||
# Copyright (C) 2008-2021 Andrey Prygunkov <hugbug@users.sourceforge.net>
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
@@ -21,7 +21,7 @@
|
||||
# Process this file with autoconf to produce a configure script.
|
||||
|
||||
AC_PREREQ(2.65)
|
||||
AC_INIT(nzbget, 21.1-testing, hugbug@users.sourceforge.net)
|
||||
AC_INIT(nzbget, 21.2-testing, hugbug@users.sourceforge.net)
|
||||
AC_CONFIG_AUX_DIR(posix)
|
||||
AC_CANONICAL_TARGET
|
||||
AM_INIT_AUTOMAKE([foreign subdir-objects])
|
||||
|
||||
@@ -209,6 +209,8 @@ bool Connection::Bind()
|
||||
return true;
|
||||
}
|
||||
|
||||
int errcode = 0;
|
||||
|
||||
#ifndef WIN32
|
||||
if (m_host && m_host[0] == '/')
|
||||
{
|
||||
@@ -280,6 +282,7 @@ bool Connection::Bind()
|
||||
break;
|
||||
}
|
||||
// Connection failed
|
||||
errcode = GetLastNetworkError();
|
||||
closesocket(m_socket);
|
||||
m_socket = INVALID_SOCKET;
|
||||
}
|
||||
@@ -320,6 +323,7 @@ bool Connection::Bind()
|
||||
if (res == -1)
|
||||
{
|
||||
// Connection failed
|
||||
errcode = GetLastNetworkError();
|
||||
closesocket(m_socket);
|
||||
m_socket = INVALID_SOCKET;
|
||||
}
|
||||
@@ -328,7 +332,7 @@ bool Connection::Bind()
|
||||
|
||||
if (m_socket == INVALID_SOCKET)
|
||||
{
|
||||
ReportError("Binding socket failed for %s", m_host, true);
|
||||
ReportError("Binding socket failed for %s", m_host, true, errcode);
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -785,18 +789,15 @@ bool Connection::ConnectWithTimeout(void* address, int address_len)
|
||||
ret = connect(m_socket, (struct sockaddr*)address, address_len);
|
||||
if (ret < 0)
|
||||
{
|
||||
int err = GetLastNetworkError();
|
||||
#ifdef WIN32
|
||||
int err = WSAGetLastError();
|
||||
if (err != WSAEWOULDBLOCK)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
#else
|
||||
if (errno != EINPROGRESS)
|
||||
if (err != EINPROGRESS)
|
||||
#endif
|
||||
{
|
||||
return false;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
//connect succeeded right away?
|
||||
@@ -916,7 +917,16 @@ void Connection::Cancel()
|
||||
}
|
||||
}
|
||||
|
||||
void Connection::ReportError(const char* msgPrefix, const char* msgArg, bool PrintErrCode, int herrno, const char* herrMsg)
|
||||
int Connection::GetLastNetworkError()
|
||||
{
|
||||
#ifdef WIN32
|
||||
return WSAGetLastError();
|
||||
#else
|
||||
return errno;
|
||||
#endif
|
||||
}
|
||||
|
||||
void Connection::ReportError(const char* msgPrefix, const char* msgArg, bool printErrCode, int errCode, const char* errMsg)
|
||||
{
|
||||
#ifndef DISABLE_TLS
|
||||
if (m_tlsError)
|
||||
@@ -929,34 +939,34 @@ void Connection::ReportError(const char* msgPrefix, const char* msgArg, bool Pri
|
||||
|
||||
BString<1024> errPrefix(msgPrefix, msgArg);
|
||||
|
||||
if (PrintErrCode)
|
||||
if (printErrCode)
|
||||
{
|
||||
#ifdef WIN32
|
||||
int ErrCode = WSAGetLastError();
|
||||
char errMsg[1024];
|
||||
errMsg[0] = '\0';
|
||||
FormatMessage(FORMAT_MESSAGE_FROM_SYSTEM, nullptr, ErrCode, 0, errMsg, 1024, nullptr);
|
||||
errMsg[1024-1] = '\0';
|
||||
#else
|
||||
const char* errMsg = herrMsg;
|
||||
int ErrCode = herrno;
|
||||
if (herrno == 0)
|
||||
BString<1024> printErrMsg;
|
||||
if (errCode == 0)
|
||||
{
|
||||
ErrCode = errno;
|
||||
errMsg = strerror(ErrCode);
|
||||
errCode = GetLastNetworkError();
|
||||
}
|
||||
else if (!herrMsg)
|
||||
if (errMsg)
|
||||
{
|
||||
errMsg = hstrerror(ErrCode);
|
||||
}
|
||||
#endif
|
||||
if (m_suppressErrors)
|
||||
{
|
||||
debug("%s: ErrNo %i, %s", *errPrefix, ErrCode, errMsg);
|
||||
printErrMsg = errMsg;
|
||||
}
|
||||
else
|
||||
{
|
||||
PrintError(BString<1024>("%s: ErrNo %i, %s", *errPrefix, ErrCode, errMsg));
|
||||
#ifdef WIN32
|
||||
FormatMessage(FORMAT_MESSAGE_FROM_SYSTEM, nullptr, errCode, 0, printErrMsg, printErrMsg.Capacity(), nullptr);
|
||||
printErrMsg[1024-1] = '\0';
|
||||
#else
|
||||
printErrMsg = strerror(errCode);
|
||||
#endif
|
||||
}
|
||||
|
||||
if (m_suppressErrors)
|
||||
{
|
||||
debug("%s: Error %i - %s", *errPrefix, errCode, (const char*)printErrMsg);
|
||||
}
|
||||
else
|
||||
{
|
||||
PrintError(BString<1024>("%s: Error %i - %s", *errPrefix, errCode, (const char*)printErrMsg));
|
||||
}
|
||||
}
|
||||
else
|
||||
@@ -1074,7 +1084,7 @@ in_addr_t Connection::ResolveHostAddr(const char* host)
|
||||
#endif
|
||||
if (err)
|
||||
{
|
||||
ReportError("Could not resolve hostname %s", host, true, h_errnop);
|
||||
ReportError("Could not resolve hostname %s", host, true, h_errnop, hstrerror(h_errnop));
|
||||
return INADDR_NONE;
|
||||
}
|
||||
|
||||
|
||||
@@ -136,9 +136,10 @@ protected:
|
||||
#endif
|
||||
#endif
|
||||
|
||||
void ReportError(const char* msgPrefix, const char* msgArg, bool PrintErrCode, int herrno = 0,
|
||||
const char* herrMsg = nullptr);
|
||||
void ReportError(const char* msgPrefix, const char* msgArg, bool printErrCode, int errCode = 0,
|
||||
const char* errMsg = nullptr);
|
||||
virtual void PrintError(const char* errMsg);
|
||||
int GetLastNetworkError();
|
||||
bool DoConnect();
|
||||
bool DoDisconnect();
|
||||
bool InitSocketOpts(SOCKET socket);
|
||||
|
||||
@@ -222,18 +222,11 @@ void WebProcessor::ParseUrl()
|
||||
if (pauth1 && pauth1 < pauth2)
|
||||
{
|
||||
char* pstart = m_url + 1;
|
||||
int len = 0;
|
||||
char* pend = strchr(pstart + 1, '/');
|
||||
if (pend)
|
||||
{
|
||||
len = (int)(pend - pstart < (int)sizeof(m_authInfo) - 1 ? pend - pstart : (int)sizeof(m_authInfo) - 1);
|
||||
}
|
||||
else
|
||||
{
|
||||
len = strlen(pstart);
|
||||
}
|
||||
char* pend = pauth2;
|
||||
int len = std::min((int)(pend - pstart), (int)sizeof(m_authInfo) - 1);
|
||||
strncpy(m_authInfo, pstart, len);
|
||||
m_authInfo[len] = '\0';
|
||||
WebUtil::UrlDecode(m_authInfo);
|
||||
m_url = CString(pend);
|
||||
}
|
||||
|
||||
@@ -466,8 +459,8 @@ void WebProcessor::SendBodyResponse(const char* body, int bodyLen, const char* c
|
||||
"Access-Control-Allow-Credentials: true\r\n"
|
||||
"Access-Control-Max-Age: 86400\r\n"
|
||||
"Access-Control-Allow-Headers: Content-Type, Authorization\r\n"
|
||||
"Set-Cookie: Auth-Type=%s\r\n"
|
||||
"Set-Cookie: Auth-Token=%s; HttpOnly\r\n"
|
||||
"Set-Cookie: Auth-Type=%s; SameSite=Lax\r\n"
|
||||
"Set-Cookie: Auth-Token=%s; HttpOnly; SameSite=Lax\r\n"
|
||||
"Content-Length: %i\r\n"
|
||||
"%s" // Content-Type: xxx
|
||||
"%s" // Content-Encoding: gzip
|
||||
|
||||
@@ -1443,7 +1443,7 @@ void LogXmlCommand::Execute()
|
||||
|
||||
AppendCondResponse(",\n", IsJson() && index++ > 0);
|
||||
AppendFmtResponse(IsJson() ? JSON_LOG_ITEM : XML_LOG_ITEM,
|
||||
message.GetId(), messageType[message.GetKind()], message.GetTime(),
|
||||
message.GetId(), messageType[message.GetKind()], (int)message.GetTime(),
|
||||
*EncodeStr(message.GetText()));
|
||||
}
|
||||
|
||||
@@ -1550,7 +1550,7 @@ void ListFilesXmlCommand::Execute()
|
||||
AppendCondResponse(",\n", IsJson() && index++ > 0);
|
||||
AppendFmtResponse(IsJson() ? JSON_LIST_ITEM : XML_LIST_ITEM,
|
||||
fileInfo->GetId(), fileSizeLo, fileSizeHi, remainingSizeLo, remainingSizeHi,
|
||||
fileInfo->GetTime(), BoolToStr(fileInfo->GetFilenameConfirmed()),
|
||||
(int)fileInfo->GetTime(), BoolToStr(fileInfo->GetFilenameConfirmed()),
|
||||
BoolToStr(fileInfo->GetPaused()), fileInfo->GetNzbInfo()->GetId(),
|
||||
*xmlNzbNicename, *xmlNzbNicename, *EncodeStr(fileInfo->GetNzbInfo()->GetFilename()),
|
||||
*EncodeStr(fileInfo->GetSubject()), *EncodeStr(fileInfo->GetFilename()),
|
||||
@@ -1748,14 +1748,14 @@ void NzbInfoXmlCommand::AppendNzbInfoFields(NzbInfo* nzbInfo)
|
||||
deleteStatusName[nzbInfo->GetDeleteStatus()], markStatusName[nzbInfo->GetMarkStatus()],
|
||||
urlStatusName[nzbInfo->GetUrlStatus()],
|
||||
fileSizeLo, fileSizeHi, fileSizeMB, nzbInfo->GetFileCount(),
|
||||
nzbInfo->GetMinTime(), nzbInfo->GetMaxTime(),
|
||||
(int)nzbInfo->GetMinTime(), (int)nzbInfo->GetMaxTime(),
|
||||
nzbInfo->GetTotalArticles(), nzbInfo->GetCurrentSuccessArticles(), nzbInfo->GetCurrentFailedArticles(),
|
||||
nzbInfo->CalcHealth(), nzbInfo->CalcCriticalHealth(false),
|
||||
*EncodeStr(nzbInfo->GetDupeKey()), nzbInfo->GetDupeScore(), dupeModeName[nzbInfo->GetDupeMode()],
|
||||
BoolToStr(nzbInfo->GetDeleteStatus() != NzbInfo::dsNone),
|
||||
downloadedSizeLo, downloadedSizeHi, downloadedSizeMB, nzbInfo->GetDownloadSec(),
|
||||
nzbInfo->GetPostTotalSec() + (nzbInfo->GetPostInfo() && nzbInfo->GetPostInfo()->GetStartTime() ?
|
||||
Util::CurrentTime() - nzbInfo->GetPostInfo()->GetStartTime() : 0),
|
||||
(int)(nzbInfo->GetPostTotalSec() + (nzbInfo->GetPostInfo() && nzbInfo->GetPostInfo()->GetStartTime() ?
|
||||
Util::CurrentTime() - nzbInfo->GetPostInfo()->GetStartTime() : 0)),
|
||||
nzbInfo->GetParSec(), nzbInfo->GetRepairSec(), nzbInfo->GetUnpackSec(), messageCount, nzbInfo->GetExtraParBlocks());
|
||||
|
||||
// Post-processing parameters
|
||||
@@ -1856,8 +1856,8 @@ void NzbInfoXmlCommand::AppendPostInfoFields(PostInfo* postInfo, int logEntries,
|
||||
|
||||
AppendFmtResponse(itemStart, *EncodeStr(postInfo->GetProgressLabel()),
|
||||
postInfo->GetStageProgress(),
|
||||
postInfo->GetStageTime() ? curTime - postInfo->GetStageTime() : 0,
|
||||
postInfo->GetStartTime() ? curTime - postInfo->GetStartTime() : 0);
|
||||
(int)(postInfo->GetStageTime() ? curTime - postInfo->GetStageTime() : 0),
|
||||
(int)(postInfo->GetStartTime() ? curTime - postInfo->GetStartTime() : 0));
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -1884,7 +1884,7 @@ void NzbInfoXmlCommand::AppendPostInfoFields(PostInfo* postInfo, int logEntries,
|
||||
|
||||
AppendCondResponse(",\n", IsJson() && index++ > 0);
|
||||
AppendFmtResponse(IsJson() ? JSON_LOG_ITEM : XML_LOG_ITEM,
|
||||
message.GetId(), messageType[message.GetKind()], message.GetTime(),
|
||||
message.GetId(), messageType[message.GetKind()], (int)message.GetTime(),
|
||||
*EncodeStr(message.GetText()));
|
||||
}
|
||||
}
|
||||
@@ -2502,7 +2502,7 @@ void HistoryXmlCommand::Execute()
|
||||
|
||||
AppendFmtResponse(IsJson() ? JSON_HISTORY_ITEM_START : XML_HISTORY_ITEM_START,
|
||||
historyInfo->GetId(), *EncodeStr(historyInfo->GetName()), nzbInfo->GetParkedFileCount(),
|
||||
BoolToStr(nzbInfo->GetCompletedFiles()->size()), historyInfo->GetTime(), status);
|
||||
BoolToStr(nzbInfo->GetCompletedFiles()->size()), (int)historyInfo->GetTime(), status);
|
||||
}
|
||||
else if (historyInfo->GetKind() == HistoryInfo::hkDup)
|
||||
{
|
||||
@@ -2514,7 +2514,7 @@ void HistoryXmlCommand::Execute()
|
||||
|
||||
AppendFmtResponse(IsJson() ? JSON_HISTORY_DUP_ITEM : XML_HISTORY_DUP_ITEM,
|
||||
historyInfo->GetId(), historyInfo->GetId(), "DUP", *EncodeStr(historyInfo->GetName()),
|
||||
historyInfo->GetTime(), fileSizeLo, fileSizeHi, fileSizeMB,
|
||||
(int)historyInfo->GetTime(), fileSizeLo, fileSizeHi, fileSizeMB,
|
||||
*EncodeStr(dupInfo->GetDupeKey()), dupInfo->GetDupeScore(),
|
||||
dupeModeName[dupInfo->GetDupeMode()], dupStatusName[dupInfo->GetStatus()],
|
||||
status);
|
||||
@@ -2893,7 +2893,7 @@ void ViewFeedXmlCommand::Execute()
|
||||
*EncodeStr(feedItemInfo.GetTitle()), *EncodeStr(feedItemInfo.GetFilename()),
|
||||
*EncodeStr(feedItemInfo.GetUrl()), sizeLo, sizeHi, sizeMB,
|
||||
*EncodeStr(feedItemInfo.GetCategory()), *EncodeStr(feedItemInfo.GetAddCategory()),
|
||||
BoolToStr(feedItemInfo.GetPauseNzb()), feedItemInfo.GetPriority(), feedItemInfo.GetTime(),
|
||||
BoolToStr(feedItemInfo.GetPauseNzb()), feedItemInfo.GetPriority(), (int)feedItemInfo.GetTime(),
|
||||
matchStatusType[feedItemInfo.GetMatchStatus()], feedItemInfo.GetMatchRule(),
|
||||
*EncodeStr(feedItemInfo.GetDupeKey()), feedItemInfo.GetDupeScore(),
|
||||
dupeModeType[feedItemInfo.GetDupeMode()], statusType[feedItemInfo.GetStatus()]);
|
||||
|
||||
@@ -91,7 +91,7 @@ public:
|
||||
private:
|
||||
#ifdef WIN32
|
||||
WIN32_FIND_DATAW m_findData;
|
||||
HANDLE m_file;
|
||||
HANDLE m_file = INVALID_HANDLE_VALUE;
|
||||
bool m_first;
|
||||
CString m_filename;
|
||||
#else
|
||||
|
||||
@@ -184,6 +184,8 @@ UpdateFromRepository()
|
||||
echo "Updating root certificates"
|
||||
cd ../setup
|
||||
curl --remote-name --time-cond cacert.pem https://curl.se/ca/cacert.pem
|
||||
# remove expired DST Root CA X3 certificate
|
||||
sed '/^DST Root CA X3$/,/^-----END CERTIFICATE-----$/d;' -i cacert.pem
|
||||
cd $BUILDDIR
|
||||
fi
|
||||
}
|
||||
|
||||
@@ -80,7 +80,7 @@
|
||||
<ClCompile>
|
||||
<Optimization>Disabled</Optimization>
|
||||
<AdditionalIncludeDirectories>.\daemon\connect;.\daemon\extension;.\daemon\feed;.\daemon\frontend;.\daemon\main;.\daemon\nserv;.\daemon\nntp;.\daemon\postprocess;.\daemon\queue;.\daemon\remote;.\daemon\util;.\daemon\windows;.\lib\par2;.\lib\yencode;.\windows\resources;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions>WIN32;PACKAGE="nzbget";VERSION="21.1-testing";_DEBUG;_CONSOLE;DEBUG;_WIN32_WINNT=0x0403;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<PreprocessorDefinitions>WIN32;PACKAGE="nzbget";VERSION="21.2-testing";_DEBUG;_CONSOLE;DEBUG;_WIN32_WINNT=0x0403;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<MinimalRebuild>false</MinimalRebuild>
|
||||
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
|
||||
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
|
||||
@@ -101,7 +101,7 @@
|
||||
<ClCompile>
|
||||
<Optimization>Disabled</Optimization>
|
||||
<AdditionalIncludeDirectories>.\daemon\connect;.\daemon\extension;.\daemon\feed;.\daemon\frontend;.\daemon\main;.\daemon\nserv;.\daemon\nntp;.\daemon\postprocess;.\daemon\queue;.\daemon\remote;.\daemon\util;.\daemon\windows;.\lib\par2;.\lib\yencode;.\windows\resources;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions>WIN32;PACKAGE="nzbget";VERSION="21.1-testing";_DEBUG;_CONSOLE;DEBUG;_WIN32_WINNT=0x0403;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<PreprocessorDefinitions>WIN32;PACKAGE="nzbget";VERSION="21.2-testing";_DEBUG;_CONSOLE;DEBUG;_WIN32_WINNT=0x0403;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<MinimalRebuild>false</MinimalRebuild>
|
||||
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
|
||||
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
|
||||
@@ -120,7 +120,7 @@
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
<ClCompile>
|
||||
<AdditionalIncludeDirectories>.\daemon\connect;.\daemon\extension;.\daemon\feed;.\daemon\frontend;.\daemon\main;.\daemon\nserv;.\daemon\nntp;.\daemon\postprocess;.\daemon\queue;.\daemon\remote;.\daemon\util;.\daemon\windows;.\lib\par2;.\lib\yencode;.\windows\resources;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions>WIN32;PACKAGE="nzbget";VERSION="21.1-testing";NDEBUG;_CONSOLE;_WIN32_WINNT=0x0403;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<PreprocessorDefinitions>WIN32;PACKAGE="nzbget";VERSION="21.2-testing";NDEBUG;_CONSOLE;_WIN32_WINNT=0x0403;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<ExceptionHandling>Sync</ExceptionHandling>
|
||||
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
|
||||
<PrecompiledHeader>Use</PrecompiledHeader>
|
||||
@@ -151,7 +151,7 @@
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||
<ClCompile>
|
||||
<AdditionalIncludeDirectories>.\daemon\connect;.\daemon\extension;.\daemon\feed;.\daemon\frontend;.\daemon\main;.\daemon\nserv;.\daemon\nntp;.\daemon\postprocess;.\daemon\queue;.\daemon\remote;.\daemon\util;.\daemon\windows;.\lib\par2;.\lib\yencode;.\windows\resources;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions>WIN32;PACKAGE="nzbget";VERSION="21.1-testing";NDEBUG;_CONSOLE;_WIN32_WINNT=0x0403;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<PreprocessorDefinitions>WIN32;PACKAGE="nzbget";VERSION="21.2-testing";NDEBUG;_CONSOLE;_WIN32_WINNT=0x0403;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<ExceptionHandling>Sync</ExceptionHandling>
|
||||
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
|
||||
<PrecompiledHeader>Use</PrecompiledHeader>
|
||||
|
||||
@@ -24,8 +24,6 @@
|
||||
<string>10.7</string>
|
||||
<key>LSUIElement</key>
|
||||
<true/>
|
||||
<key>NSHumanReadableCopyright</key>
|
||||
<string>Copyright © 2007-2019 Andrey Prygunkov</string>
|
||||
<key>NSMainNibFile</key>
|
||||
<string>MainApp</string>
|
||||
<key>NSAppTransportSecurity</key>
|
||||
|
||||
@@ -95,6 +95,8 @@ echo Updating root certificates
|
||||
cd image
|
||||
%CURL% --remote-name --time-cond cacert.pem https://curl.se/ca/cacert.pem
|
||||
if errorlevel 1 goto BUILD_FAILED
|
||||
rem remove expired DST Root CA X3 certificate
|
||||
%SED% -e "/^DST Root CA X3$/,/^-----END CERTIFICATE-----$/d;" -i cacert.pem
|
||||
cd ..
|
||||
|
||||
cd tmp\nzbget-%VERSION%
|
||||
|
||||
@@ -176,8 +176,9 @@ CreateShortCut "$SMPROGRAMS\NZBGet\Uninstall.lnk" "$INSTDIR\Uninstall.exe"
|
||||
; Add control panel entry for Uninstall
|
||||
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\NZBGet" "DisplayName" "NZBGet"
|
||||
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\NZBGet" "UninstallString" "$\"$INSTDIR\uninstall.exe$\""
|
||||
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\NZBGet" "Publisher" "Andrey Prygunkov"
|
||||
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\NZBGet" "InstallLocation" "$INSTDIR"
|
||||
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\NZBGet" "Publisher" "nzbget.net"
|
||||
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\NZBGet" "DisplayIcon" "$\"$INSTDIR\nzbget.exe$\",0"
|
||||
|
||||
${GetSize} "$INSTDIR" "/S=0K" $0 $1 $2
|
||||
IntFmt $0 "0x%08X" $0
|
||||
|
||||
@@ -15,17 +15,15 @@
|
||||
// Neutral resources
|
||||
|
||||
#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_NEU)
|
||||
#ifdef _WIN32
|
||||
LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL
|
||||
#pragma code_page(1252)
|
||||
#endif //_WIN32
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Menu
|
||||
//
|
||||
|
||||
IDR_TRAYMENU MENU
|
||||
IDR_TRAYMENU MENU
|
||||
BEGIN
|
||||
POPUP "Menu"
|
||||
BEGIN
|
||||
@@ -81,20 +79,19 @@ IDI_TRAYICON_WORKING ICON "trayicon_working.ico"
|
||||
// Dialog
|
||||
//
|
||||
|
||||
IDD_ABOUTBOX DIALOGEX 0, 0, 176, 194
|
||||
IDD_ABOUTBOX DIALOGEX 0, 0, 177, 182
|
||||
STYLE DS_SETFONT | DS_MODALFRAME | DS_CENTER | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
|
||||
CAPTION "About NZBGet"
|
||||
FONT 8, "Tahoma", 400, 0, 0x0
|
||||
BEGIN
|
||||
DEFPUSHBUTTON "OK",IDOK,63,173,50,14
|
||||
CTEXT "Version 15.0-testing-r1200",IDC_ABOUT_VERSION,16,70,144,8
|
||||
CTEXT "Lightweight usenet downloader",IDC_STATIC,16,83,144,8
|
||||
DEFPUSHBUTTON "OK",IDOK,63,161,50,14
|
||||
CTEXT "Version 15.0-testing-r1200",IDC_ABOUT_VERSION,16,70,145,8
|
||||
CTEXT "Lightweight usenet downloader",IDC_STATIC,16,83,145,8
|
||||
CTEXT "http://nzbget.net",IDC_ABOUT_HOMEPAGE,55,144,64,9,SS_NOTIFY
|
||||
CTEXT "Copyright <20> 2007-2019 Andrey Prygunkov",IDC_STATIC,16,156,144,8
|
||||
ICON "",IDC_ABOUT_ICON,67,7,21,20
|
||||
CTEXT "NZBGet",IDC_ABOUT_NAME,16,51,144,16
|
||||
CTEXT "The package includes other software; see program's folder for licenses.",IDC_STATIC,16,121,144,20
|
||||
CTEXT "NZBGet is free software; use it under the terms of the ",IDC_STATIC,16,99,144,20
|
||||
CTEXT "NZBGet",IDC_ABOUT_NAME,16,51,145,16
|
||||
CTEXT "The package includes other software; see program's folder for licenses.",IDC_STATIC,16,121,145,20
|
||||
CTEXT "NZBGet is free software; use it under the terms of the ",IDC_STATIC,16,99,145,20
|
||||
CTEXT "GNU General Public License",IDC_ABOUT_GPL,62,107,90,8,SS_NOTIFY
|
||||
LTEXT ".",IDC_STATIC,151,107,8,8,SS_NOTIFY
|
||||
END
|
||||
@@ -153,14 +150,14 @@ END
|
||||
//
|
||||
|
||||
#ifdef APSTUDIO_INVOKED
|
||||
GUIDELINES DESIGNINFO
|
||||
GUIDELINES DESIGNINFO
|
||||
BEGIN
|
||||
IDD_ABOUTBOX, DIALOG
|
||||
BEGIN
|
||||
LEFTMARGIN, 16
|
||||
RIGHTMARGIN, 160
|
||||
RIGHTMARGIN, 161
|
||||
TOPMARGIN, 7
|
||||
BOTTOMMARGIN, 187
|
||||
BOTTOMMARGIN, 175
|
||||
END
|
||||
|
||||
IDD_PREFDIALOG, DIALOG
|
||||
@@ -183,6 +180,17 @@ BEGIN
|
||||
END
|
||||
#endif // APSTUDIO_INVOKED
|
||||
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// AFX_DIALOG_LAYOUT
|
||||
//
|
||||
|
||||
IDD_ABOUTBOX AFX_DIALOG_LAYOUT
|
||||
BEGIN
|
||||
0
|
||||
END
|
||||
|
||||
#endif // Neutral resources
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
@@ -191,10 +199,8 @@ END
|
||||
// German (Germany) resources
|
||||
|
||||
#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_DEU)
|
||||
#ifdef _WIN32
|
||||
LANGUAGE LANG_GERMAN, SUBLANG_GERMAN
|
||||
#pragma code_page(1252)
|
||||
#endif //_WIN32
|
||||
|
||||
#ifdef APSTUDIO_INVOKED
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
Reference in New Issue
Block a user