Skip to content

The only downloader you need. 下载器的集大成者。

fix(build): 修复资源文件路径配置问题

XiaoYouChRf89cef20be45
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 17815a02..c33e743f 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -124,7 +124,7 @@ jobs:
- name: Build with Nuitka
run: |
- python3 -c "import sys; sys.path.append('./app/common'); import config; print(config.VERSION)" > version.txt
+ python3 -c "import sys; sys.path.append('./app/supports'); import config; print(config.VERSION)" > version.txt
version=$(sed -n '4p' version.txt)
echo "VERSION=${version}" >> "$GITHUB_ENV"
rm -rf version.txt
@@ -133,7 +133,7 @@ jobs:
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/修复软件损坏"
+ mv "app/assets/修复软件损坏" "dist/修复软件损坏"
- name: Copy FeaturePacks
run: |
@@ -198,7 +198,7 @@ jobs:
- name: Build with Nuitka
run: |
- python3 -c "import sys; sys.path.append('./app/common'); import config; print(config.VERSION)" > version.txt
+ python3 -c "import sys; sys.path.append('./app/supports'); import config; print(config.VERSION)" > version.txt
version=$(sed -n '4p' version.txt)
echo "VERSION=${version}" >> "$GITHUB_ENV"
rm -rf version.txt
@@ -207,7 +207,7 @@ jobs:
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/修复软件损坏"
+ mv "app/assets/修复软件损坏" "dist/修复软件损坏"
- name: Copy FeaturePacks
run: |
@@ -259,7 +259,7 @@ jobs:
- name: Build with Nuitka
run: |
- python3 -c "import sys; sys.path.append('./app/common'); import config; print(config.VERSION)" > version.txt
+ python3 -c "import sys; sys.path.append('./app/supports'); import config; print(config.VERSION)" > version.txt
version=$(sed -n '4p' version.txt)
echo "VERSION=${version}" >> "$GITHUB_ENV"
rm -rf version.txt
diff --git a/.github/workflows/build_macOS.yml b/.github/workflows/build_macOS.yml
index fab5ef0e..07a7cb64 100644
--- a/.github/workflows/build_macOS.yml
+++ b/.github/workflows/build_macOS.yml
@@ -35,7 +35,7 @@ jobs:
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/修复软件损坏"
+ mv "app/assets/修复软件损坏" "dist/修复软件损坏"
- name: Copy FeaturePacks
run: |
@@ -109,7 +109,7 @@ jobs:
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/修复软件损坏"
+ mv "app/assets/修复软件损坏" "dist/修复软件损坏"
- name: Copy FeaturePacks
run: |
diff --git a/Ghost-Downloader-3.iss b/Ghost-Downloader-3.iss
index 9bbc2a41..c013c52d 100644
--- a/Ghost-Downloader-3.iss
+++ b/Ghost-Downloader-3.iss
@@ -34,7 +34,7 @@ LicenseFile=LICENSE
PrivilegesRequired=lowest
OutputDir=dist
OutputBaseFilename=Ghost-Downloader-v{#MyAppVersion}-Windows-Setup
-SetupIconFile=resources/logo.ico
+SetupIconFile=app/assets/logo.ico
SolidCompression=yes
WizardStyle=modern