Merge branch 'develop' of https://github.com/PrismLauncher/PrismLauncher into concurrent
This commit is contained in:
commit
8d4f508cc6
2
.github/workflows/build.yml
vendored
2
.github/workflows/build.yml
vendored
@ -501,7 +501,7 @@ jobs:
|
|||||||
export SIGN=1
|
export SIGN=1
|
||||||
export SIGN_KEY=${{ secrets.GPG_PRIVATE_KEY_ID }}
|
export SIGN_KEY=${{ secrets.GPG_PRIVATE_KEY_ID }}
|
||||||
mkdir -p ~/.gnupg/
|
mkdir -p ~/.gnupg/
|
||||||
printf "$GPG_PRIVATE_KEY" | base64 --decode > ~/.gnupg/private.key
|
echo "$GPG_PRIVATE_KEY" > ~/.gnupg/private.key
|
||||||
gpg --import ~/.gnupg/private.key
|
gpg --import ~/.gnupg/private.key
|
||||||
else
|
else
|
||||||
echo ":warning: Skipped code signing for Linux AppImage, as gpg key was not present." >> $GITHUB_STEP_SUMMARY
|
echo ":warning: Skipped code signing for Linux AppImage, as gpg key was not present." >> $GITHUB_STEP_SUMMARY
|
||||||
|
@ -347,6 +347,11 @@ add_subdirectory(program_info)
|
|||||||
####################################### Install layout #######################################
|
####################################### Install layout #######################################
|
||||||
|
|
||||||
set(Launcher_ENABLE_UPDATER NO)
|
set(Launcher_ENABLE_UPDATER NO)
|
||||||
|
set(Launcher_BUILD_UPDATER NO)
|
||||||
|
|
||||||
|
if (NOT APPLE AND (NOT Launcher_UPDATER_GITHUB_REPO STREQUAL "" AND NOT Launcher_BUILD_ARTIFACT STREQUAL ""))
|
||||||
|
set(Launcher_BUILD_UPDATER YES)
|
||||||
|
endif()
|
||||||
|
|
||||||
if(NOT (UNIX AND APPLE))
|
if(NOT (UNIX AND APPLE))
|
||||||
# Install "portable.txt" if selected component is "portable"
|
# Install "portable.txt" if selected component is "portable"
|
||||||
|
@ -1306,7 +1306,7 @@ install(TARGETS ${Launcher_Name}
|
|||||||
FRAMEWORK DESTINATION ${FRAMEWORK_DEST_DIR} COMPONENT Runtime
|
FRAMEWORK DESTINATION ${FRAMEWORK_DEST_DIR} COMPONENT Runtime
|
||||||
)
|
)
|
||||||
|
|
||||||
if(NOT APPLE OR (DEFINED Launcher_BUILD_UPDATER AND Launcher_BUILD_UPDATER))
|
if(Launcher_BUILD_UPDATER)
|
||||||
# Updater
|
# Updater
|
||||||
add_library(prism_updater_logic STATIC ${PRISMUPDATER_SOURCES} ${TASKS_SOURCES} ${PRISMUPDATER_UI})
|
add_library(prism_updater_logic STATIC ${PRISMUPDATER_SOURCES} ${TASKS_SOURCES} ${PRISMUPDATER_UI})
|
||||||
target_include_directories(prism_updater_logic PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
|
target_include_directories(prism_updater_logic PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
|
||||||
|
@ -85,6 +85,7 @@ QString getCreditsHtml()
|
|||||||
stream << QString("<p>TayouVR %1</p>\n").arg(getGitHub("TayouVR"));
|
stream << QString("<p>TayouVR %1</p>\n").arg(getGitHub("TayouVR"));
|
||||||
stream << QString("<p>TheKodeToad %1</p>\n").arg(getGitHub("TheKodeToad"));
|
stream << QString("<p>TheKodeToad %1</p>\n").arg(getGitHub("TheKodeToad"));
|
||||||
stream << QString("<p>getchoo %1</p>\n").arg(getGitHub("getchoo"));
|
stream << QString("<p>getchoo %1</p>\n").arg(getGitHub("getchoo"));
|
||||||
|
stream << QString("<p>Alexandru Tripon (Trial97) %1</p>\n").arg(getGitHub("Trial97"));
|
||||||
stream << "<br />\n";
|
stream << "<br />\n";
|
||||||
|
|
||||||
// TODO: possibly retrieve from git history at build time?
|
// TODO: possibly retrieve from git history at build time?
|
||||||
|
@ -165,11 +165,15 @@ CustomTheme::CustomTheme(ITheme* baseTheme, QFileInfo& fileInfo, bool isManifest
|
|||||||
QString path = FS::PathCombine("themes", m_id);
|
QString path = FS::PathCombine("themes", m_id);
|
||||||
QString pathResources = FS::PathCombine("themes", m_id, "resources");
|
QString pathResources = FS::PathCombine("themes", m_id, "resources");
|
||||||
|
|
||||||
if (!FS::ensureFolderPathExists(path) || !FS::ensureFolderPathExists(pathResources)) {
|
if (!FS::ensureFolderPathExists(path)) {
|
||||||
themeWarningLog() << "couldn't create folder for theme!";
|
themeWarningLog() << "Theme directory for" << m_id << "could not be created. This theme might be invalid";
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!FS::ensureFolderPathExists(pathResources)) {
|
||||||
|
themeWarningLog() << "Resources directory for" << m_id << "could not be created";
|
||||||
|
}
|
||||||
|
|
||||||
auto themeFilePath = FS::PathCombine(path, themeFile);
|
auto themeFilePath = FS::PathCombine(path, themeFile);
|
||||||
|
|
||||||
bool jsonDataIncomplete = false;
|
bool jsonDataIncomplete = false;
|
||||||
@ -230,7 +234,11 @@ CustomTheme::CustomTheme(ITheme* baseTheme, QFileInfo& fileInfo, bool isManifest
|
|||||||
|
|
||||||
QStringList CustomTheme::searchPaths()
|
QStringList CustomTheme::searchPaths()
|
||||||
{
|
{
|
||||||
return { FS::PathCombine("themes", m_id, "resources") };
|
QString pathResources = FS::PathCombine("themes", m_id, "resources");
|
||||||
|
if (QFileInfo::exists(pathResources))
|
||||||
|
return { pathResources };
|
||||||
|
|
||||||
|
return {};
|
||||||
}
|
}
|
||||||
|
|
||||||
QString CustomTheme::id()
|
QString CustomTheme::id()
|
||||||
|
Loading…
Reference in New Issue
Block a user