### Linux Installation Source: https://github.com/putyy/res-downloader/blob/master/docs/installation.md Instructions for installing res-downloader on Linux. This includes installing a .deb package using apt or making an executable file runnable. ```shell sudo apt install res-downloader_3.0.2_linux_x64.deb ``` ```shell chmod +x ./res-downloader_3.0.2_linux_x64 sudo ./res-downloader_3.0.2_linux_x64 ``` -------------------------------- ### Build and Install res-downloader Locally on Linux Source: https://github.com/putyy/res-downloader/blob/master/build/README.md Clones the res-downloader repository, sets up Go proxy for faster downloads if needed, builds the application using Wails, and installs it to system directories like /usr/bin and /usr/share/applications. ```bash git clone https://github.com/putyy/res-downloader.git cd res-downloader # -- GO Proxy -- # 如果国内编译时 go 下载慢或报错,可以设置 go 国内代理加速,否则不用设置 export GO111MODULE=on export GOPROXY=https://goproxy.cn,direct # -- Go Proxy -- wails build cd build sudo install -Dvm755 bin/res-downloader -t /usr/bin sudo install -Dvm644 appicon.png /usr/share/icons/hicolor/512x512/apps/res-downloader.png sudo install -Dvm644 build/linux/Arch/res-downloader.desktop /usr/share/applications/res-downloader.desktop ``` -------------------------------- ### Build and Package res-downloader for Windows (arm64) Source: https://github.com/putyy/res-downloader/blob/master/build/README.md Builds the res-downloader application for Windows (arm64) with NSIS installer support and embeds WebView2. It then renames the installer to include the product version and architecture. ```bash wails build -f -nsis -platform "windows/arm64" -webview2 Embed -skipbindings && mv -f "build/bin/res-downloader-arm64-installer.exe" "build/bin/res-downloader_$(jq -r '.info.productVersion' wails.json)_win_arm64.exe" ``` -------------------------------- ### Build and Package res-downloader for Windows (amd64) Source: https://github.com/putyy/res-downloader/blob/master/build/README.md Builds the res-downloader application for Windows (amd64) with NSIS installer support and embeds WebView2. It then renames the installer to include the product version and architecture. ```bash wails build -f -nsis -platform "windows/amd64" -webview2 Embed -skipbindings && mv -f "build/bin/res-downloader-amd64-installer.exe" "build/bin/res-downloader_$(jq -r '.info.productVersion' wails.json)_win_amd64.exe" ``` -------------------------------- ### Res-Downloader Proxy and Certificate Configuration Source: https://github.com/putyy/res-downloader/blob/master/docs/troubleshooting.md Details on how to configure the system and mobile devices to use the res-downloader proxy and ensure certificate trust for network interception. This includes network setup, certificate installation on mobile, and proxy settings. ```APIDOC ResDownloaderProxyConfig: Purpose: Configure network and devices to use res-downloader for traffic interception. Steps: 1. Network Setup: Ensure the mobile device and computer are on the same network. 2. Mobile Certificate Installation: Install the res-downloader certificate on the mobile device. 3. Mobile Proxy Configuration: Set the mobile device's network proxy to point to the res-downloader's IP address and port (e.g., 127.0.0.1:8899). Requirements: - Mobile devices must use HTTP protocol for communication to be intercepted. - Android 7.0+ systems may not trust user CA certificates, requiring alternative solutions. Troubleshooting: - If unable to intercept, check system certificate installation, firewall status, and system proxy settings. - If links appear as 'not private', it usually indicates an improperly installed certificate. ``` -------------------------------- ### Res-Downloader Lock File Creation Source: https://github.com/putyy/res-downloader/blob/master/docs/troubleshooting.md Provides instructions on how to manually create a lock file for res-downloader, which can resolve issues where the application continues to prompt for certificate installation. This involves using a command-line tool to create the file at a specified path. ```shell touch /Users/your_username/Library/Preferences/res-downloader/install.lock ``` -------------------------------- ### Install res-downloader on Arch Linux via AUR Source: https://github.com/putyy/res-downloader/blob/master/build/README.md Installs the res-downloader application on Arch Linux using the AUR helper 'yay'. This command fetches and builds the package from the Arch User Repository. ```bash yay -Syu res-downloader ``` -------------------------------- ### Install Res-Downloader Certificate on Mac Source: https://github.com/putyy/res-downloader/blob/master/docs/troubleshooting.md Installs the res-downloader certificate on macOS using the security command-line tool. This is necessary for the application to intercept HTTPS traffic, especially on newer macOS versions. ```shell sudo security add-trusted-cert -d -r trustRoot -k /Library/Keychains/System.keychain /Users/$(whoami)/Library/Preferences/res-downloader/cert.crt && touch /Users/$(whoami)/Library/Preferences/res-downloader/install.lock && echo "安装完成" ``` -------------------------------- ### Delete Res-Downloader Directory on Linux Source: https://github.com/putyy/res-downloader/blob/master/docs/troubleshooting.md Specifies the directory path to manually delete for the res-downloader application on Linux. This is a troubleshooting step for when the software fails to launch. ```plaintext /home/user/.config/res-downloader ``` -------------------------------- ### Res-Downloader System Proxy Settings Source: https://github.com/putyy/res-downloader/blob/master/docs/troubleshooting.md Instructions for managing system proxy settings after closing the res-downloader application. It's crucial to manually disable the proxy to restore normal internet connectivity. ```APIDOC SystemProxyManagement: Action: Close Res-Downloader Application. Post-Action: - If normal internet browsing fails after closing the application, manually disable the system proxy settings. ProxyDetails: - Default Proxy Address: 127.0.0.1 - Default Proxy Port: 8899 ``` -------------------------------- ### VS Code: Enable Volar Take Over Mode Source: https://github.com/putyy/res-downloader/blob/master/frontend/README.md Steps to enable Volar's Take Over mode in VS Code for enhanced TypeScript type support with Vue 3 SFCs. This involves disabling the built-in TypeScript extension and reloading the window. ```shell 1. Open VS Code Command Palette: `Ctrl+Shift+P` (or `Cmd+Shift+P` on Mac) 2. Run `Extensions: Show Built-in Extensions` 3. Find `TypeScript and JavaScript Language Features`, right-click, and select `Disable (Workspace)` 4. Reload VS Code window: Run `Developer: Reload Window` from the Command Palette ``` -------------------------------- ### Delete Res-Downloader Directory on Windows Source: https://github.com/putyy/res-downloader/blob/master/docs/troubleshooting.md Specifies the directory path to manually delete for the res-downloader application on Windows. This helps resolve issues when the software cannot be opened. ```plaintext C:\Users\Administrator\AppData\Roaming\res-downloader ``` -------------------------------- ### Delete Res-Downloader Preferences on Mac Source: https://github.com/putyy/res-downloader/blob/master/docs/troubleshooting.md Removes the application's preference directory from the user's Library on macOS. This is typically done to reset the application's configuration when it fails to open. ```shell rm -rf /Users/$(whoami)/Library/Preferences/res-downloader ``` -------------------------------- ### Build and Package res-downloader for macOS Source: https://github.com/putyy/res-downloader/blob/master/build/README.md Builds the res-downloader application for macOS using Wails and creates a DMG disk image. It also renames the DMG file to include the product version and platform. ```bash wails build -platform "darwin/universal" create-dmg 'build/bin/res-downloader.app' --overwrite ./build/bin mv -f "build/bin/res-downloader $(jq -r '.info.productVersion' wails.json).dmg" "build/bin/res-downloader_$(jq -r '.info.productVersion' wails.json)_mac.dmg" ``` -------------------------------- ### Build res-downloader for Linux (amd64) via Docker and Package Debian Source: https://github.com/putyy/res-downloader/blob/master/build/README.md Builds the res-downloader for Linux (amd64) using Docker, then packages it into a Debian (.deb) file. This involves building the Docker image, running a container, compiling within the container, and using dpkg-deb to create the package. ```bash docker build --network host -f build/linux/dockerfile -t res-downloader-amd-linux . docker run -it --name res-downloader-amd-build --network host --privileged -v ./:/www/res-downloader res-downloader-amd-linux /bin/bash # 容器内 cd /www/res-downloader wails build -platform "linux/amd64" -s -skipbindings # 打包debian cp build/bin/res-downloader build/linux/Debian/usr/local/bin/ echo "$(cat build/linux/Debian/DEBIAN/.control | sed -e \"s/{{Version}}/$(jq -r '.info.productVersion' wails.json)/g\" -e \"s/{{Architecture}}/amd64/g\")" > build/linux/Debian/DEBIAN/control dpkg-deb --build ./build/linux/Debian build/bin/res-downloader_$(jq -r '.info.productVersion' wails.json)_linux_amd64.deb # 打包AppImage cp build/bin/res-downloader build/linux/AppImage/usr/bin/ # 复制WebKit相关文件 pushd build/linux/AppImage for f in WebKitNetworkProcess WebKitWebProcess libwebkit2gtkinjectedbundle.so; do path=$(find /usr/lib* -name "$f" 2>/dev/null | head -n 1) if [ -n "$path" ]; then mkdir -p ./$(dirname "$path") cp --parents "$path" . else echo "⚠️ $f not found, you may need to install libwebkit2gtk" fi done popd # 下载appimagetool wget -O ./build/bin/appimagetool-x86_64.AppImage https://github.com/AppImage/AppImageKit/releases/download/13/appimagetool-x86_64.AppImage chmod +x ./build/bin/appimagetool-x86_64.AppImage ./build/bin/appimagetool-x86_64.AppImage build/linux/AppImage build/bin/res-downloader_$(jq -r '.info.productVersion' wails.json)_linux_amd64.AppImage mv -f build/bin/res-downloader build/bin/res-downloader_$(jq -r '.info.productVersion' wails.json)_linux_amd64 ``` -------------------------------- ### Build res-downloader for Linux (arm64) via Docker and Package Debian Source: https://github.com/putyy/res-downloader/blob/master/build/README.md Builds the res-downloader for Linux (arm64) using Docker and packages it into a Debian (.deb) file. This involves building the Docker image for arm64, running a container, compiling within it, and creating the .deb package. ```bash docker build --platform linux/arm64 --network host -f build/linux/dockerfile -t res-downloader-arm-linux . docker run --platform linux/arm64 -it --name res-downloader-arm-build --network host --privileged -v ./:/www/res-downloader res-downloader-arm-linux /bin/bash # 容器内 cd /www/res-downloader wails build -platform "linux/arm64" -s -skipbindings # 打包debian cp build/bin/res-downloader build/linux/Debian/usr/local/bin/ echo "$(cat build/linux/Debian/DEBIAN/.control | sed -e \"s/{{Version}}/$(jq -r '.info.productVersion' wails.json)/g\" -e \"s/{{Architecture}}/arm64/g\")" > build/linux/Debian/DEBIAN/control dpkg-deb --build ./build/linux/Debian build/bin/res-downloader_$(jq -r '.info.productVersion' wails.json)_linux_arm64.deb mv -f build/bin/res-downloader build/bin/res-downloader_$(jq -r '.info.productVersion' wails.json)_linux_arm64 ``` -------------------------------- ### Docsify Site Configuration Source: https://github.com/putyy/res-downloader/blob/master/docs/index.html This JavaScript snippet configures the docsify static site generator for the res-downloader project. It sets the site name, repository link, sidebar and navbar loading, cover page, heading levels, search options, and base path. ```javascript window.$docsify = { name: 'res-downloader', repo: 'https://github.com/putyy/res-downloader', // 侧边栏支持,默认加载的是项目根目录下的\_sidebar.md文件 loadSidebar: true, // 导航栏支持,默认加载的是项目根目录下的\_navbar.md文件 loadNavbar: true, // 封面支持,默认加载的是项目根目录下的\_coverpage.md文件 coverpage: true, // 最大支持渲染的标题层级 maxLevel: 5, // 自定义侧边栏后默认不会再生成目录,设置生成目录的最大层级(建议配置为2-4) subMaxLevel: 4, // 小屏设备下合并导航栏到侧边栏 mergeNavbar: true, basePath: '/', homepage: 'readme.md', search: { maxAge: 86400000, // 过期时间,单位毫秒,默认一天 paths: 'auto', // 注意:仅适用于 paths: 'auto' 模式 // 支持本地化 placeholder: '搜索', noData: '找不到结果', depth: 4, hideOtherSidebarContent: false, namespace: 'Docsify-Guide', } }; ``` -------------------------------- ### Disable Isolated Modules in tsconfig.json for Vue Workaround Source: https://github.com/putyy/res-downloader/blob/master/frontend/READ-THIS.md This snippet shows the modification to `tsconfig.json` required to work around a compilation issue in Vue.js. By setting `isolatedModules` to `false`, the project avoids errors related to module isolation. ```TypeScript { "compilerOptions": { "isolatedModules": false } } ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.