mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 19:59:28 +02:00
Merge branch 'master' into fix/other-renamings
This commit is contained in:
commit
3c487106a7
11 changed files with 28 additions and 20 deletions
19
INSTALL.md
19
INSTALL.md
|
@ -15,7 +15,7 @@ To produce an installer, run the `package` target.
|
||||||
|
|
||||||
To produce an executable installer on Windows, the following are required:
|
To produce an executable installer on Windows, the following are required:
|
||||||
|
|
||||||
1. [7-zip](<https://www.7-zip.org/download.html>)
|
1. [7-zip](<https://www.7-zip.org/download.html>)
|
||||||
|
|
||||||
1. [Nullsoft Scriptable Install System](http://nsis.sourceforge.net/Download) - 3.04
|
1. [Nullsoft Scriptable Install System](http://nsis.sourceforge.net/Download) - 3.04
|
||||||
Install using defaults (will install to `C:\Program Files (x86)\NSIS`)
|
Install using defaults (will install to `C:\Program Files (x86)\NSIS`)
|
||||||
|
@ -56,22 +56,23 @@ To produce an executable installer on Windows, the following are required:
|
||||||
1. Copy `Release\ApplicationID.dll` to `C:\Program Files (x86)\NSIS\Plugins\x86-ansi\`
|
1. Copy `Release\ApplicationID.dll` to `C:\Program Files (x86)\NSIS\Plugins\x86-ansi\`
|
||||||
1. Copy `ReleaseUnicode\ApplicationID.dll` to `C:\Program Files (x86)\NSIS\Plugins\x86-unicode\`
|
1. Copy `ReleaseUnicode\ApplicationID.dll` to `C:\Program Files (x86)\NSIS\Plugins\x86-unicode\`
|
||||||
|
|
||||||
1. [npm](<https://www.npmjs.com/get-npm>)
|
1. [Node.JS and NPM](<https://www.npmjs.com/get-npm>)
|
||||||
1. Install version 10.15.0 LTS
|
1. Install version 10.15.0 LTS
|
||||||
|
|
||||||
1. Perform a clean cmake from a new terminal.
|
1. Perform a clean cmake from a new terminal.
|
||||||
1. Open the `vircadia.sln` solution and select the Release configuration.
|
1. Open the `vircadia.sln` solution with elevated (administrator) permissions on Visual Studio and select the **Release** configuration.
|
||||||
1. Build the solution.
|
1. Build the solution.
|
||||||
|
1. Build CMakeTargets->INSTALL
|
||||||
1. Build `packaged-server-console-npm-install` (found under **hidden/Server Console**)
|
1. Build `packaged-server-console-npm-install` (found under **hidden/Server Console**)
|
||||||
1. Build `packaged-server-console` (found under **Server Console**)
|
1. Build `packaged-server-console` (found under **Server Console**)
|
||||||
This will add 2 folders to `build\server-console\` -
|
This will add 2 folders to `build\server-console\` -
|
||||||
`server-console-win32-x64` and `x64`
|
`server-console-win32-x64` and `x64`
|
||||||
1. Build CMakeTargets->PACKAGE
|
1. Build CMakeTargets->PACKAGE
|
||||||
Installer is now available in `build\_CPack_Packages\win64\NSIS`
|
The installer is now available in `build\_CPack_Packages\win64\NSIS`
|
||||||
|
|
||||||
#### OS X
|
#### OS X
|
||||||
1. [npm](<https://www.npmjs.com/get-npm>)
|
1. [npm](<https://www.npmjs.com/get-npm>)
|
||||||
Install version 10.15.0 LTS
|
Install version 12.16.3 LTS
|
||||||
|
|
||||||
1. Perform a clean CMake.
|
1. Perform a clean CMake.
|
||||||
1. Perform a Release build of ALL_BUILD
|
1. Perform a Release build of ALL_BUILD
|
||||||
|
@ -80,3 +81,9 @@ To produce an executable installer on Windows, the following are required:
|
||||||
Sandbox-darwin-x64
|
Sandbox-darwin-x64
|
||||||
1. Perform a Release build of `package`
|
1. Perform a Release build of `package`
|
||||||
Installer is now available in `build/_CPack_Packages/Darwin/DragNDrop
|
Installer is now available in `build/_CPack_Packages/Darwin/DragNDrop
|
||||||
|
|
||||||
|
### FAQ
|
||||||
|
|
||||||
|
1. **Problem:** Failure to open a file. ```File: failed opening file "\FOLDERSHARE\XYZSRelease\...\Credits.rtf" Error in script "C:\TFS\XYZProject\Releases\NullsoftInstaller\XYZWin7Installer.nsi" on line 77 -- aborting creation process```
|
||||||
|
1. **Cause:** The complete path (current directory + relative path) has to be < 260 characters to any of the relevant files.
|
||||||
|
1. **Solution:** Move your build and packaging folder as high up in the drive as possible to prevent an overage.
|
||||||
|
|
|
@ -3,8 +3,8 @@ include(vcpkg_common_functions)
|
||||||
vcpkg_from_github(
|
vcpkg_from_github(
|
||||||
OUT_SOURCE_PATH SOURCE_PATH
|
OUT_SOURCE_PATH SOURCE_PATH
|
||||||
REPO ValveSoftware/openvr
|
REPO ValveSoftware/openvr
|
||||||
REF v1.0.16
|
REF v1.11.11
|
||||||
SHA512 967356563ba4232da5361510c7519d3058e09eced4571aadc00d8a75ab1f299a0aebda2b0b10b0ffb6c6a443fd718634d0c0103964e289961449c93e8d7b9d02
|
SHA512 25bddb0e82eea091fe5101d0d3de1de7bb81b4504adc0c8d8e687d2502c0167bc5a11e68bc343d7563fb4db7c917e9d0e2ea99bc1d8016d479874b0c6bd7f121
|
||||||
HEAD_REF master
|
HEAD_REF master
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -4,10 +4,10 @@
|
||||||
#include <QNetworkAccessManager>
|
#include <QNetworkAccessManager>
|
||||||
|
|
||||||
struct Build {
|
struct Build {
|
||||||
QString tag{ QString::null };
|
QString tag;
|
||||||
int latestVersion{ 0 };
|
int latestVersion{ 0 };
|
||||||
int buildNumber{ 0 };
|
int buildNumber{ 0 };
|
||||||
QString installerZipURL{ QString::null };
|
QString installerZipURL;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct Builds {
|
struct Builds {
|
||||||
|
|
|
@ -244,7 +244,7 @@ void LauncherState::getCurrentClientVersion() {
|
||||||
if (match.hasMatch()) {
|
if (match.hasMatch()) {
|
||||||
_currentClientVersion = match.captured("version");
|
_currentClientVersion = match.captured("version");
|
||||||
} else {
|
} else {
|
||||||
_currentClientVersion = QString::null;
|
_currentClientVersion.clear();
|
||||||
}
|
}
|
||||||
qDebug() << "Current client version is: " << _currentClientVersion;
|
qDebug() << "Current client version is: " << _currentClientVersion;
|
||||||
|
|
||||||
|
|
|
@ -176,7 +176,7 @@ private:
|
||||||
QString _displayName;
|
QString _displayName;
|
||||||
QString _applicationErrorMessage;
|
QString _applicationErrorMessage;
|
||||||
QString _currentClientVersion;
|
QString _currentClientVersion;
|
||||||
QString _buildTag { QString::null };
|
QString _buildTag;
|
||||||
QString _contentCacheURL;
|
QString _contentCacheURL;
|
||||||
QString _loginTokenResponse;
|
QString _loginTokenResponse;
|
||||||
QFile _clientZipFile;
|
QFile _clientZipFile;
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
#include "LoginRequest.h"
|
#include "LoginRequest.h"
|
||||||
|
|
||||||
struct UserSettings {
|
struct UserSettings {
|
||||||
QString homeLocation{ QString::null };
|
QString homeLocation;
|
||||||
};
|
};
|
||||||
|
|
||||||
class UserSettingsRequest : public QObject {
|
class UserSettingsRequest : public QObject {
|
||||||
|
|
|
@ -58,7 +58,7 @@ public:
|
||||||
static QString generateTemporaryDir();
|
static QString generateTemporaryDir();
|
||||||
static bool deleteMyTemporaryDir(QString dirName);
|
static bool deleteMyTemporaryDir(QString dirName);
|
||||||
|
|
||||||
static int removeTemporaryApplicationDirs(QString appName = QString::null);
|
static int removeTemporaryApplicationDirs(QString appName = QString());
|
||||||
|
|
||||||
static Qt::CaseSensitivity getFSCaseSensitivity();
|
static Qt::CaseSensitivity getFSCaseSensitivity();
|
||||||
static QString stripFilename(const QUrl& url);
|
static QString stripFilename(const QUrl& url);
|
||||||
|
|
|
@ -738,26 +738,28 @@ int OpenVrDisplayPlugin::getRequiredThreadCount() const {
|
||||||
}
|
}
|
||||||
|
|
||||||
QString OpenVrDisplayPlugin::getPreferredAudioInDevice() const {
|
QString OpenVrDisplayPlugin::getPreferredAudioInDevice() const {
|
||||||
QString device = getVrSettingString(vr::k_pch_audio_Section, vr::k_pch_audio_OnPlaybackDevice_String);
|
QString device = getVrSettingString(vr::k_pch_audio_Section, vr::k_pch_audio_RecordingDeviceOverride_String);
|
||||||
if (!device.isEmpty()) {
|
if (!device.isEmpty()) {
|
||||||
static const WCHAR INIT = 0;
|
static const WCHAR INIT = 0;
|
||||||
size_t size = device.size() + 1;
|
size_t size = device.size() + 1;
|
||||||
std::vector<WCHAR> deviceW;
|
std::vector<WCHAR> deviceW;
|
||||||
deviceW.assign(size, INIT);
|
deviceW.assign(size, INIT);
|
||||||
device.toWCharArray(deviceW.data());
|
device.toWCharArray(deviceW.data());
|
||||||
|
// FIXME: This may not be necessary if vr::k_pch_audio_RecordingDeviceOverride_StringName is used above.
|
||||||
device = AudioClient::getWinDeviceName(deviceW.data());
|
device = AudioClient::getWinDeviceName(deviceW.data());
|
||||||
}
|
}
|
||||||
return device;
|
return device;
|
||||||
}
|
}
|
||||||
|
|
||||||
QString OpenVrDisplayPlugin::getPreferredAudioOutDevice() const {
|
QString OpenVrDisplayPlugin::getPreferredAudioOutDevice() const {
|
||||||
QString device = getVrSettingString(vr::k_pch_audio_Section, vr::k_pch_audio_OnRecordDevice_String);
|
QString device = getVrSettingString(vr::k_pch_audio_Section, vr::k_pch_audio_PlaybackDeviceOverride_String);
|
||||||
if (!device.isEmpty()) {
|
if (!device.isEmpty()) {
|
||||||
static const WCHAR INIT = 0;
|
static const WCHAR INIT = 0;
|
||||||
size_t size = device.size() + 1;
|
size_t size = device.size() + 1;
|
||||||
std::vector<WCHAR> deviceW;
|
std::vector<WCHAR> deviceW;
|
||||||
deviceW.assign(size, INIT);
|
deviceW.assign(size, INIT);
|
||||||
device.toWCharArray(deviceW.data());
|
device.toWCharArray(deviceW.data());
|
||||||
|
// FIXME: This may not be necessary if vr::k_pch_audio_PlaybackDeviceOverride_StringName is used above.
|
||||||
device = AudioClient::getWinDeviceName(deviceW.data());
|
device = AudioClient::getWinDeviceName(deviceW.data());
|
||||||
}
|
}
|
||||||
return device;
|
return device;
|
||||||
|
|
|
@ -100,7 +100,7 @@ QString getVrSettingString(const char* section, const char* setting) {
|
||||||
vr::IVRSettings * vrSettings = vr::VRSettings();
|
vr::IVRSettings * vrSettings = vr::VRSettings();
|
||||||
if (vrSettings) {
|
if (vrSettings) {
|
||||||
vr::EVRSettingsError error = vr::VRSettingsError_None;
|
vr::EVRSettingsError error = vr::VRSettingsError_None;
|
||||||
vrSettings->GetString(vr::k_pch_audio_Section, vr::k_pch_audio_OnPlaybackDevice_String, BUFFER, BUFFER_SIZE, &error);
|
vrSettings->GetString(vr::k_pch_audio_Section, setting, BUFFER, BUFFER_SIZE, &error);
|
||||||
if (error == vr::VRSettingsError_None) {
|
if (error == vr::VRSettingsError_None) {
|
||||||
result = BUFFER;
|
result = BUFFER;
|
||||||
}
|
}
|
||||||
|
@ -413,7 +413,6 @@ void showMinSpecWarning() {
|
||||||
vrSystem->ResetSeatedZeroPose();
|
vrSystem->ResetSeatedZeroPose();
|
||||||
QString imagePath = PathUtils::resourcesPath() + "/images/steam-min-spec-failed.png";
|
QString imagePath = PathUtils::resourcesPath() + "/images/steam-min-spec-failed.png";
|
||||||
vrOverlay->SetOverlayFromFile(minSpecFailedOverlay, imagePath.toLocal8Bit().toStdString().c_str());
|
vrOverlay->SetOverlayFromFile(minSpecFailedOverlay, imagePath.toLocal8Bit().toStdString().c_str());
|
||||||
vrOverlay->SetHighQualityOverlay(minSpecFailedOverlay);
|
|
||||||
vrOverlay->SetOverlayWidthInMeters(minSpecFailedOverlay, 1.4f);
|
vrOverlay->SetOverlayWidthInMeters(minSpecFailedOverlay, 1.4f);
|
||||||
vrOverlay->SetOverlayInputMethod(minSpecFailedOverlay, vr::VROverlayInputMethod_Mouse);
|
vrOverlay->SetOverlayInputMethod(minSpecFailedOverlay, vr::VROverlayInputMethod_Mouse);
|
||||||
vrOverlay->ShowOverlay(minSpecFailedOverlay);
|
vrOverlay->ShowOverlay(minSpecFailedOverlay);
|
||||||
|
|
|
@ -34,7 +34,7 @@ public:
|
||||||
BakerCLI(OvenCLIApplication* parent);
|
BakerCLI(OvenCLIApplication* parent);
|
||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
void bakeFile(QUrl inputUrl, const QString& outputPath, const QString& type = QString::null);
|
void bakeFile(QUrl inputUrl, const QString& outputPath, const QString& type = QString());
|
||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
void handleFinishedBaker();
|
void handleFinishedBaker();
|
||||||
|
|
|
@ -85,7 +85,7 @@ void OvenCLIApplication::parseCommandLine(int argc, char* argv[]) {
|
||||||
_inputUrlParameter = QDir::fromNativeSeparators(parser.value(CLI_INPUT_PARAMETER));
|
_inputUrlParameter = QDir::fromNativeSeparators(parser.value(CLI_INPUT_PARAMETER));
|
||||||
_outputUrlParameter = QDir::fromNativeSeparators(parser.value(CLI_OUTPUT_PARAMETER));
|
_outputUrlParameter = QDir::fromNativeSeparators(parser.value(CLI_OUTPUT_PARAMETER));
|
||||||
|
|
||||||
_typeParameter = parser.isSet(CLI_TYPE_PARAMETER) ? parser.value(CLI_TYPE_PARAMETER) : QString::null;
|
_typeParameter = parser.isSet(CLI_TYPE_PARAMETER) ? parser.value(CLI_TYPE_PARAMETER) : QString();
|
||||||
|
|
||||||
if (parser.isSet(CLI_DISABLE_TEXTURE_COMPRESSION_PARAMETER)) {
|
if (parser.isSet(CLI_DISABLE_TEXTURE_COMPRESSION_PARAMETER)) {
|
||||||
qDebug() << "Disabling texture compression";
|
qDebug() << "Disabling texture compression";
|
||||||
|
|
Loading…
Reference in a new issue