The only downloader you need. 下载器的集大成者。
TypeScript asyncasynciobittorentbtcross-platformdownload-managerdownloaderfluent-designftphttp3magnetpyqtpyside6pythonqtquicreactsoftwarestreaming
修复 GitHub Action 打包脚本
XiaoYouChRbef9ba215461
diff --git a/.github/workflows/deploy-application.yml b/.github/workflows/build.ymlsimilarity index 85%rename from .github/workflows/deploy-application.ymlrename to .github/workflows/build.ymlindex d252c96d..d6f443b4 100644--- a/.github/workflows/deploy-application.yml+++ b/.github/workflows/build.yml@@ -66,8 +66,11 @@ jobs:echo "VERSION=${version}" >> "$GITHUB_ENV"rm -rf version.txtpython3 deploy.py-# chmod u+x "dist/Ghost Downloader.app/Contents/MacOS/Ghost Downloader"-# rm -rf "dist/Ghost Downloader.build"+ chmod u+x "dist/Ghost-Downloader-3.app/Contents/MacOS/Ghost-Downloader-3"+ rm -rf "dist/Ghost-Downloader-3.build"+ rm -rf "dist/Ghost-Downloader-3.dist"+ mv dist/Ghost-Downloader-3.app dist/Ghost Downloader.app+ mv resources/修复文件损坏 dist/修复文件损坏- name: Create DMGrun: |@@ -78,7 +81,7 @@ jobs:uses: actions/upload-artifact@v4with:name: Ghost-Downloader-v${{ env.VERSION }}-macOS-${{ matrix.architecture }}- path: dist/+ path: Ghost-Downloader-v${{ env.VERSION }}-macOS-${{ matrix.architecture }}.dmgbuild-macos-13-x86_64:strategy:@@ -106,8 +109,11 @@ jobs:echo "VERSION=${version}" >> "$GITHUB_ENV"rm -rf version.txtpython3 deploy.py-# chmod u+x "dist/Ghost Downloader.app/Contents/MacOS/Ghost Downloader"-# rm -rf "dist/Ghost Downloader.build"+ chmod u+x "dist/Ghost-Downloader-3.app/Contents/MacOS/Ghost-Downloader-3"+ rm -rf "dist/Ghost-Downloader-3.build"+ rm -rf "dist/Ghost-Downloader-3.dist"+ mv dist/Ghost-Downloader-3.app dist/Ghost Downloader.app+ mv resources/修复文件损坏 dist/修复文件损坏- name: Create DMGrun: |@@ -118,7 +124,7 @@ jobs:uses: actions/upload-artifact@v4with:name: Ghost-Downloader-v${{ env.VERSION }}-macOS-${{ matrix.architecture }}- path: dist/+ path: Ghost-Downloader-v${{ env.VERSION }}-macOS-${{ matrix.architecture }}.dmgbuild-ubuntu:strategy:diff --git a/deploy.py b/deploy.pyindex 937f86fd..b5379e73 100644--- a/deploy.py+++ b/deploy.py@@ -35,11 +35,9 @@ elif sys.platform == "darwin":"--assume-yes-for-download","--macos-app-mode=gui",f"--macos-app-version={VERSION}",- '--macos-app-name="Ghost Downloader"',"--macos-app-icon=resources/logo.icns",f'--copyright="Copyright(C) {YEAR} {AUTHOR}"','--output-dir=dist',- '--macos-signed-app-name=com.xiaoyouchr.ghostdownloader','Ghost-Downloader-3.py',]else:diff --git "a/resources/\344\277\256\345\244\215\350\275\257\344\273\266\346\215\237\345\235\217" "b/resources/\344\277\256\345\244\215\350\275\257\344\273\266\346\215\237\345\235\217"new file mode 100755index 00000000..d761192f--- /dev/null+++ "b/resources/\344\277\256\345\244\215\350\275\257\344\273\266\346\215\237\345\235\217"@@ -0,0 +1,49 @@+#!/bin/bash+clear+BLACK="\033[0;30m"+DARK_GRAY="\033[1;30m"+BLUE="\033[0;34m"+LIGHT_BLUE="\033[1;34m"+GREEN="\033[0;32m"+LIGHT_GREEN="\033[1;32m"+CYAN="\033[0;36m"+LIGHT_CYAN="\033[1;36m"+RED="\033[0;31m"+LIGHT_RED="\033[1;31m"+PURPLE="\033[0;35m"+LIGHT_PURPLE="\033[1;35m"+BROWN="\033[0;33m"+YELLOW="\033[0;33m"+LIGHT_GRAY="\033[0;37m"+WHITE="\033[1;37m"+NC="\033[0m"++echo ""+echo ""++parentPath=$( cd "$(dirname "${BASH_SOURCE[0]}")" ; pwd -P )+cd "$parentPath"+appPath=$( find "$parentPath" -name '*.app' -maxdepth 1)+appName=${appPath##*/}+appBashName=${appName// /\ }+appDIR="/Applications/${appBashName}"+echo ""+echo ""+echo -e "『${appBashName} 已损坏,无法打开/ 来自身份不明的开发者』等问题修复工具"+echo ""+#未安装APP时提醒安装,已安装绕过公证+if [ ! -d "$appDIR" ];then+ echo ""+ echo -e "执行结果:${RED}您还未安装 ${appBashName} ,请先安装${NC}"+ else+ #绕过公证+ echo -e "${YELLOW}请输入开机密码,输入完成后按下回车键(输入过程中密码是看不见的)${NC}"+ sudo spctl --master-disable+ sudo xattr -rd com.apple.quarantine /Applications/"$appBashName"+ echo ""+ echo ""+ echo -e "执行结果:${GREEN}修复成功!${NC}您现在可以正常运行 ${appBashName} 了。"+fi+echo ""+echo ""+echo -e "本窗口可以关闭啦!"\ No newline at end of file