mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2025-08-04 03:47:57 -04:00
add libarchive as actions dependency
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
parent
a0dc1db285
commit
e651b6698c
@ -9,7 +9,7 @@ runs:
|
||||
run: |
|
||||
sudo apt-get -y update
|
||||
sudo apt-get -y install \
|
||||
dpkg-dev \
|
||||
dpkg-dev libarchive-dev \
|
||||
ninja-build extra-cmake-modules scdoc \
|
||||
appstream libxcb-cursor-dev
|
||||
|
||||
|
@ -14,7 +14,7 @@ runs:
|
||||
shell: bash
|
||||
run: |
|
||||
brew update
|
||||
brew install ninja extra-cmake-modules temurin@17
|
||||
brew install ninja extra-cmake-modules temurin@17 libarchive
|
||||
|
||||
- name: Set JAVA_HOME
|
||||
shell: bash
|
||||
|
@ -639,6 +639,10 @@ set(PRISMUPDATER_SOURCES
|
||||
# Zip
|
||||
MMCZip.h
|
||||
MMCZip.cpp
|
||||
archive/ArchiveReader.cpp
|
||||
archive/ArchiveReader.h
|
||||
archive/ArchiveWriter.cpp
|
||||
archive/ArchiveWriter.h
|
||||
|
||||
# Time
|
||||
MMCTime.h
|
||||
@ -1429,6 +1433,7 @@ if(Launcher_BUILD_UPDATER)
|
||||
Qt${QT_VERSION_MAJOR}::Network
|
||||
${Launcher_QT_LIBS}
|
||||
cmark::cmark
|
||||
PkgConfig::libarchive
|
||||
)
|
||||
|
||||
add_executable("${Launcher_Name}_updater" WIN32 updater/prismupdater/updater_main.cpp)
|
||||
|
@ -38,6 +38,7 @@
|
||||
#include <archive.h>
|
||||
#include "FileSystem.h"
|
||||
#include "archive/ArchiveReader.h"
|
||||
#include "archive/ArchiveWriter.h"
|
||||
|
||||
#include <QCoreApplication>
|
||||
#include <QDebug>
|
||||
@ -45,11 +46,6 @@
|
||||
#include <QUrl>
|
||||
#include <memory>
|
||||
|
||||
#if defined(LAUNCHER_APPLICATION)
|
||||
#include <QtConcurrentRun>
|
||||
#include "archive/ArchiveWriter.h"
|
||||
#endif
|
||||
|
||||
namespace MMCZip {
|
||||
// ours
|
||||
using FilterFunction = std::function<bool(const QString&)>;
|
||||
|
Loading…
x
Reference in New Issue
Block a user