Skip to content

Commit 4314c7e

Browse files
committed
build(workflow): 更新构建脚本中的配置模块路径
1 parent b310085 commit 4314c7e

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
3131
- name: Build with Nuitka
3232
run: |
33-
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();"
33+
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();"
3434
$VERSION = gc version.txt
3535
Write-Host "VERSION=$VERSION"
3636
echo "VERSION=$VERSION" >> $env:GITHUB_ENV

.github/workflows/build_Linux.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
2929
- name: Build with Nuitka
3030
run: |
31-
python3 -c "import sys; sys.path.append('./app/common'); import config; print(config.VERSION)" > version.txt
31+
python3 -c "import sys; sys.path.append('./app/supports'); import config; print(config.VERSION)" > version.txt
3232
version=$(sed -n '4p' version.txt)
3333
echo "VERSION=${version}" >> "$GITHUB_ENV"
3434
rm -rf version.txt

.github/workflows/build_Windows.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
4444
- name: Build with Nuitka
4545
run: |
46-
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();"
46+
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();"
4747
$VERSION = gc version.txt
4848
Write-Host "VERSION=$VERSION"
4949
echo "VERSION=$VERSION" >> $env:GITHUB_ENV

.github/workflows/build_macOS.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
2727
- name: Build with Nuitka
2828
run: |
29-
python3 -c "import sys; sys.path.append('./app/common'); import config; print(config.VERSION)" > version.txt
29+
python3 -c "import sys; sys.path.append('./app/supports'); import config; print(config.VERSION)" > version.txt
3030
version=$(sed -n '4p' version.txt)
3131
echo "VERSION=${version}" >> "$GITHUB_ENV"
3232
rm -rf version.txt
@@ -100,7 +100,7 @@ jobs:
100100
101101
- name: Build with Nuitka
102102
run: |
103-
python3 -c "import sys; sys.path.append('./app/common'); import config; print(config.VERSION)" > version.txt
103+
python3 -c "import sys; sys.path.append('./app/supports'); import config; print(config.VERSION)" > version.txt
104104
version=$(sed -n '4p' version.txt)
105105
echo "VERSION=${version}" >> "$GITHUB_ENV"
106106
rm -rf version.txt

0 commit comments

Comments
 (0)