Skip to content

Commit f89cef2

Browse files
committed
fix(build): 修复资源文件路径配置问题
- 将 build.yml 中的资源文件路径从 resources/修复软件损坏 更新为 app/assets/修复软件损坏 - 将 build_macOS.yml 中的资源文件路径从 resources/修复软件损坏 更新为 app/assets/修复软件损坏 - 将 Ghost-Downloader-3.iss 中的图标文件路径从 resources/logo.ico 更新为 app/assets/logo.ico
1 parent 4314c7e commit f89cef2

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

.github/workflows/build.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ jobs:
124124
125125
- name: Build with Nuitka
126126
run: |
127-
python3 -c "import sys; sys.path.append('./app/common'); import config; print(config.VERSION)" > version.txt
127+
python3 -c "import sys; sys.path.append('./app/supports'); import config; print(config.VERSION)" > version.txt
128128
version=$(sed -n '4p' version.txt)
129129
echo "VERSION=${version}" >> "$GITHUB_ENV"
130130
rm -rf version.txt
@@ -133,7 +133,7 @@ jobs:
133133
rm -rf "dist/Ghost-Downloader-3.build"
134134
rm -rf "dist/Ghost-Downloader-3.dist"
135135
mv "dist/Ghost-Downloader-3.app" "dist/Ghost Downloader.app"
136-
mv "resources/修复软件损坏" "dist/修复软件损坏"
136+
mv "app/assets/修复软件损坏" "dist/修复软件损坏"
137137
138138
- name: Copy FeaturePacks
139139
run: |
@@ -198,7 +198,7 @@ jobs:
198198
199199
- name: Build with Nuitka
200200
run: |
201-
python3 -c "import sys; sys.path.append('./app/common'); import config; print(config.VERSION)" > version.txt
201+
python3 -c "import sys; sys.path.append('./app/supports'); import config; print(config.VERSION)" > version.txt
202202
version=$(sed -n '4p' version.txt)
203203
echo "VERSION=${version}" >> "$GITHUB_ENV"
204204
rm -rf version.txt
@@ -207,7 +207,7 @@ jobs:
207207
rm -rf "dist/Ghost-Downloader-3.build"
208208
rm -rf "dist/Ghost-Downloader-3.dist"
209209
mv "dist/Ghost-Downloader-3.app" "dist/Ghost Downloader.app"
210-
mv "resources/修复软件损坏" "dist/修复软件损坏"
210+
mv "app/assets/修复软件损坏" "dist/修复软件损坏"
211211
212212
- name: Copy FeaturePacks
213213
run: |
@@ -259,7 +259,7 @@ jobs:
259259
260260
- name: Build with Nuitka
261261
run: |
262-
python3 -c "import sys; sys.path.append('./app/common'); import config; print(config.VERSION)" > version.txt
262+
python3 -c "import sys; sys.path.append('./app/supports'); import config; print(config.VERSION)" > version.txt
263263
version=$(sed -n '4p' version.txt)
264264
echo "VERSION=${version}" >> "$GITHUB_ENV"
265265
rm -rf version.txt

.github/workflows/build_macOS.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
rm -rf "dist/Ghost-Downloader-3.build"
3636
rm -rf "dist/Ghost-Downloader-3.dist"
3737
mv "dist/Ghost-Downloader-3.app" "dist/Ghost Downloader.app"
38-
mv "resources/修复软件损坏" "dist/修复软件损坏"
38+
mv "app/assets/修复软件损坏" "dist/修复软件损坏"
3939
4040
- name: Copy FeaturePacks
4141
run: |
@@ -109,7 +109,7 @@ jobs:
109109
rm -rf "dist/Ghost-Downloader-3.build"
110110
rm -rf "dist/Ghost-Downloader-3.dist"
111111
mv "dist/Ghost-Downloader-3.app" "dist/Ghost Downloader.app"
112-
mv "resources/修复软件损坏" "dist/修复软件损坏"
112+
mv "app/assets/修复软件损坏" "dist/修复软件损坏"
113113
114114
- name: Copy FeaturePacks
115115
run: |

Ghost-Downloader-3.iss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ LicenseFile=LICENSE
3434
PrivilegesRequired=lowest
3535
OutputDir=dist
3636
OutputBaseFilename=Ghost-Downloader-v{#MyAppVersion}-Windows-Setup
37-
SetupIconFile=resources/logo.ico
37+
SetupIconFile=app/assets/logo.ico
3838
SolidCompression=yes
3939
WizardStyle=modern
4040

0 commit comments

Comments
 (0)