Skip to content

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

build(workflow): 更新构建脚本中的配置模块路径

XiaoYouChR4314c7e62d93
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 14ea51aa..17815a02 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -30,7 +30,7 @@ jobs:
- name: Build with Nuitka
run: |
- python -c "from app.common.config import VERSION; f = open('version.txt', 'w'); f.write(VERSION); f.close(); f = open('Ghost-Downloader-3.iss', 'r+'); _ = f.read().replace('APPLICATION_VERSION', VERSION); f.seek(0); f.write(_); f.truncate(); f.close();"
+ python -c "from app.supports.config import VERSION; f = open('version.txt', 'w'); f.write(VERSION); f.close(); f = open('Ghost-Downloader-3.iss', 'r+'); _ = f.read().replace('APPLICATION_VERSION', VERSION); f.seek(0); f.write(_); f.truncate(); f.close();"
$VERSION = gc version.txt
Write-Host "VERSION=$VERSION"
echo "VERSION=$VERSION" >> $env:GITHUB_ENV
diff --git a/.github/workflows/build_Linux.yml b/.github/workflows/build_Linux.yml
index 145a9740..34196a21 100644
--- a/.github/workflows/build_Linux.yml
+++ b/.github/workflows/build_Linux.yml
@@ -28,7 +28,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_Windows.yml b/.github/workflows/build_Windows.yml
index 68886ef9..6340e759 100644
--- a/.github/workflows/build_Windows.yml
+++ b/.github/workflows/build_Windows.yml
@@ -43,7 +43,7 @@ jobs:
- name: Build with Nuitka
run: |
- python -c "from app.common.config import VERSION; f = open('version.txt', 'w'); f.write(VERSION); f.close(); f = open('Ghost-Downloader-3.iss', 'r+'); _ = f.read().replace('APPLICATION_VERSION', VERSION); f.seek(0); f.write(_); f.truncate(); f.close();"
+ python -c "from app.supports.config import VERSION; f = open('version.txt', 'w'); f.write(VERSION); f.close(); f = open('Ghost-Downloader-3.iss', 'r+'); _ = f.read().replace('APPLICATION_VERSION', VERSION); f.seek(0); f.write(_); f.truncate(); f.close();"
$VERSION = gc version.txt
Write-Host "VERSION=$VERSION"
echo "VERSION=$VERSION" >> $env:GITHUB_ENV
diff --git a/.github/workflows/build_macOS.yml b/.github/workflows/build_macOS.yml
index 76076cd2..fab5ef0e 100644
--- a/.github/workflows/build_macOS.yml
+++ b/.github/workflows/build_macOS.yml
@@ -26,7 +26,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
@@ -100,7 +100,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