
Reddit Desktop은 Reddit의 데스크탑 클라이언트입니다.
OS의 최신 릴리스를 다운로드하려면 릴리스 페이지를 방문하십시오.
Windows의 경우 .msi 실행 파일을 다운로드하여 설치 준비가 된 패키지를 제공합니다.
Linux의 경우 Debian 기반 배포판 또는 Fedora 용 *-fedora.rpm 패키지 용 *-debian.deb 패키지를 다운로드하고 패키지 관리자 ( sudo apt install <deb file> 또는 sudo dnf install <rpm file> )와 함께 설치하십시오.
Fedora의 경우 rpmfusion과 같은 libmpv를 제공하는 저장소를 설치해야합니다. 예를 들어:
dnf install -yq
http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm
http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm &&
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-rpmfusion-free-fedora-latest &&
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-rpmfusion-nonfree-fedora-latest
컨테이너 이미지 (Docker 또는 Podman)를 실행하려면 릴리스 페이지에서 reddit_desktop_runtime.tar.gz 파일을 다운로드하십시오. 컨테이너 (예 : podman load -i reddit_desktop_runtime.tar.gz )에 넣은 다음 실행하십시오.
mkdir -p ~/.config/reddit_desktop
podman run --rm -v ~/.config/reddit_desktop:/root/.config/reddit_desktop
-v /tmp/.X11-unix:/tmp/.X11-unix --security-opt=label=type:container_runtime_t
-e DISPLAY -v /run/user/$(id -u)/:/run/user/0/ -e XDG_RUNTIME_DIR=/run/user/0
-e PULSE_SERVER=/run/user/0/pulse/native
--ipc host
localhost/reddit_desktop_runtime
docker/run_container.sh 스크립트가 예제를 제공합니다.



Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
choco feature enable -n allowGlobalConfirmation
choco install 7zip.install
choco install git.install
choco install cmake.install --installargs 'ADD_CMAKE_TO_PATH=System'
choco install ninja
choco install wixtoolset
choco install powershell-core
E:projectsvcpkg 라고 가정합니다. 원하는대로 변경하십시오.) New-Item -ItemType Directory -Force -Path E:projects
cd E:projects
git clone https://github.com/Microsoft/vcpkg.git
cd vcpkg
.bootstrap-vcpkg.bat
New-Item -ItemType Directory -Force -Path E:projectsmpv
cd E:projectsmpv
#Download latest youtube-dl.exe release
$youtube_dl_latest_uri = "https://api.github.com/repos/ytdl-org/youtube-dl/releases/latest"
$latestYoutubeDlRelease = Invoke-RestMethod $youtube_dl_latest_uri
$latestYoutubeDlReleaseAssets = $latestYoutubeDlRelease.assets
$latestYoutubeExeAsset = $latestYoutubeDlReleaseAssets | where-object {$_.name -EQ "youtube-dl.exe" }
Invoke-WebRequest $latestYoutubeExeAsset.browser_download_url -OutFile "$pwd$($latestYoutubeExeAsset.name)"
# Download the latest release from libmpv folder, manually
Start-Process https://sourceforge.net/projects/mpv-player-windows/files/libmpv/
lib /dev:mpv.def /machine:x64 /out:mpv.lib apt install -y dpkg build-essential cmake gcc g++ git
libmpv-dev ca-certificates curl zip unzip tar libglu1-mesa-dev libgl1-mesa-dev
pkg-config generate-ninja ninja-build libxmu-dev libxi-dev libgl-dev
dnf install -yq
http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm
http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm &&
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-rpmfusion-free-fedora-latest &&
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-rpmfusion-nonfree-fedora-latest
dnf -yq install cmake gcc g++ pkgconf-pkg-config git
tar rpm-build ninja-build perl-FindBin perl-English perl-File-Compare
ibus-devel libXmu-devel libXi-devel mesa-libGL-devel mesa-libGLU-devel
mpv-libs-devel
pkg install llvm clang boost-all glfw glew gumbo libfmt spdlog stb freetype2 openssl
git cmake ninja sqlite3 pkgconf mpv uriparser libvdpau libvdpau-va-gl mesa-gallium-vdpau
libva-vdpau-driver mesa-dri
cd <projects folder>
git clone --recurse-submodules https://github.com/sgiurgiu/reddit_desktop.git
리눅스
mkdir build && cd build
cmake -GNinja -DCMAKE_TOOLCHAIN_FILE=<vcpkg folder>/scripts/buildsystems/vcpkg.cmake -DCMAKE_BUILD_TYPE=Release -DENABLE_TESTS=OFF -DENABLE_M4DC=ON -DENABLE_CMARK=OFF <git cloned folder>
ninja
이제 src/reddit_desktop 사용하여 해당 폴더에서 실행하십시오
창
cmake -B . -S <git cloned folder> -G Ninja -DCMAKE_TOOLCHAIN_FILE=<vcpkg folder>/scripts/buildsystems/vcpkg.cmake -DVCPKG_TARGET_TRIPLET=x64-windows-static -DENABLE_TESTS=False -DCMAKE_BUILD_TYPE=Release -DCPACK_GENERATOR=WIX -DLIBMPV_DIR="<libmpv folder>" -DLIBMPV_INCLUDE="<libmpv include folder>" -DYOUTUBE_DL="<youtube-dl.exe path>"
cmake --build .
Windows 및 Linux에서 빌드하는 스크립트는 docker 폴더에서도 scripts 폴더에서 찾을 수 있습니다. 이러한 스크립트는이 readme가 업데이트되지 않으면 특정 OS에 대한 패키지를 구축하는 과정에서 권한입니다.
freebsd mkdir build && cd build
cmake -DCMAKE_BUILD_TYPE=Release -DENABLE_TESTS=OFF -DENABLE_M4DC=ON -DENABLE_CMARK=OFF <git cloned folder>
make
이 응용 프로그램은 UI에 Dear Imgui 라이브러리를 사용합니다. Ocornut과 그들의 놀라운 작품에 대한 다른 모든 기고자들에게 큰 감사를드립니다.