Skip to content

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

build(version): 重新打包 macOS

XiaoYouChR18635c575169
diff --git a/.github/workflows/deploy-application.yml b/.github/workflows/deploy-application.yml
index 6801f4a5..3e8babad 100644
--- a/.github/workflows/deploy-application.yml
+++ b/.github/workflows/deploy-application.yml
@@ -4,37 +4,37 @@ on:
workflow_dispatch:
jobs:
- build-windows:
- strategy:
- matrix:
- architecture: [x86_64, arm64]
- runs-on: windows-latest
- steps:
- - name: Checkout code
- uses: actions/checkout@v2
-
- - name: Set up Python 3.11
- uses: actions/setup-python@v4
- with:
- python-version: '3.11'
-
- - name: Install dependencies
- run: |
- pip install --timeout=300 -r requirements.txt
- pip install nuitka==2.5.4
-
- - name: Build with Nuitka
- run: |
- mv main.py Ghost-Downloader-3.py
- nuitka --standalone --enable-plugin=pyside6 --show-memory --output-dir=output --windows-console-mode=disable --windows-icon-from-ico=resources/logo.ico --company-name=XiaoYouChR --product-name="Ghost Downloader" --file-description="Ghost Downloader" --copyright="Copyright(C) 2024 XiaoYouChR" --file-version=3.5.1 --product-version=3.5.1 Ghost-Downloader-3.py
-# nuitka --module plugins/jy_os_page.py
-# mv jy_os_page*.pyd output/
-
- - name: Upload artifacts
- uses: actions/upload-artifact@v4
- with:
- name: Ghost-Downloader-v3.5.1-Windows-${{ matrix.architecture }}
- path: output/Ghost-Downloader-3.dist
+# build-windows:
+# strategy:
+# matrix:
+# architecture: [x86_64, arm64]
+# runs-on: windows-latest
+# steps:
+# - name: Checkout code
+# uses: actions/checkout@v2
+#
+# - name: Set up Python 3.11
+# uses: actions/setup-python@v4
+# with:
+# python-version: '3.11'
+#
+# - name: Install dependencies
+# run: |
+# pip install --timeout=300 -r requirements.txt
+# pip install nuitka==2.5.4
+#
+# - name: Build with Nuitka
+# run: |
+# mv main.py Ghost-Downloader-3.py
+# nuitka --standalone --enable-plugin=pyside6 --show-memory --output-dir=output --windows-console-mode=disable --windows-icon-from-ico=resources/logo.ico --company-name=XiaoYouChR --product-name="Ghost Downloader" --file-description="Ghost Downloader" --copyright="Copyright(C) 2024 XiaoYouChR" --file-version=3.5.1 --product-version=3.5.1 Ghost-Downloader-3.py
+## nuitka --module plugins/jy_os_page.py
+## mv jy_os_page*.pyd output/
+#
+# - name: Upload artifacts
+# uses: actions/upload-artifact@v4
+# with:
+# name: Ghost-Downloader-v3.5.1-Windows-${{ matrix.architecture }}
+# path: output/Ghost-Downloader-3.dist
build-macos-14-arm:
strategy:
@@ -65,15 +65,14 @@ jobs:
nuitka --standalone --enable-plugin=pyside6 --show-memory --output-dir=output --disable-console --macos-app-icon=resources/logo.icns --macos-create-app-bundle --company-name=XiaoYouChR --macos-app-name="Ghost-Downloader-3" --macos-app-version=$version Ghost-Downloader-3.py
chmod u+x "output/Ghost-Downloader-3.app/Contents/MacOS/Ghost-Downloader-3"
rm -rf "output/Ghost-Downloader-3.build"
- cd "output/"
- ln -s /Applications Applications
+ ln -s /Applications output/Applications
hdiutil create -srcfolder "output/" -volname "Ghost-Downloader-3" -fs HFS+ -fsargs "-c c=64,a=16,e=16" -format UDZO -size 200m "Ghost-Downloader-3.dmg"
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: Ghost-Downloader-v${{ env.VERSION }}-macOS-${{ matrix.architecture }}
- path: output/
+ path: Ghost-Downloader-3.dmg
build-macos-13-x86_64:
strategy:
@@ -104,51 +103,50 @@ jobs:
nuitka3 --standalone --enable-plugin=pyside6 --show-memory --output-dir=output --disable-console --macos-app-icon=resources/logo.icns --macos-create-app-bundle --company-name=XiaoYouChR --macos-app-name="Ghost-Downloader-3" --macos-app-version=$version Ghost-Downloader-3.py
chmod u+x "output/Ghost-Downloader-3.app/Contents/MacOS/Ghost-Downloader-3"
rm -rf "output/Ghost-Downloader-3.build"
- cd "output/"
- ln -s /Applications Applications
+ ln -s /Applications output/Applications
hdiutil create -srcfolder "output/" -volname "Ghost-Downloader-3" -fs HFS+ -fsargs "-c c=64,a=16,e=16" -format UDZO -size 200m "Ghost-Downloader-3.dmg"
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: Ghost-Downloader-v${{ env.VERSION }}-macOS-${{ matrix.architecture }}
- path: output/
-
- build-ubuntu:
- strategy:
- matrix:
- architecture: [x86_64, arm64]
- runs-on: ubuntu-20.04
- steps:
- - name: Checkout code
- uses: actions/checkout@v2
-
- - name: Set up Python 3.11
- uses: actions/setup-python@v4
- with:
- python-version: '3.11'
-
- - name: Install dependencies
- run: |
- sudo apt-get update
- sudo apt-get install -y libegl1-mesa
- pip install --timeout=300 -r requirements.txt
- pip install nuitka
-
- - name: Build with Nuitka
- run: |
- mv main.py "Ghost-Downloader-3.py"
- python -c "import sys; sys.path.append('./app/common'); import config; print(config.VERSION)" > version.txt
- version=$(sed -n '4p' version.txt)
- echo "VERSION=$version" >> "$GITHUB_ENV"
- echo "VERSION=${{ env.VERSION }}"
- nuitka --standalone --enable-plugin=pyside6 --show-memory --output-dir=output --disable-console --company-name=XiaoYouChR --product-name="Ghost-Downloader-3" --file-description="Ghost-Downloader-3" --copyright="Copyright(C) 2024 XiaoYouChR" --file-version=$version --product-version=$version "Ghost-Downloader-3.py"
-# nuitka --module plugins/jy_os_page.py
-# mkdir -p "output/Ghost-Downloader-3.dist/plugins/"
-# mv jy_os_page*.so "output/Ghost-Downloader-3.dist/plugins/"
-
- - name: Upload artifacts
- uses: actions/upload-artifact@v4
- with:
- name: Ghost-Downloader-v${{ env.VERSION }}-Linux-${{ matrix.architecture }}
- path: output/Ghost-Downloader-3.dist
+ path: Ghost-Downloader-3.dmg
+
+# build-ubuntu:
+# strategy:
+# matrix:
+# architecture: [x86_64, arm64]
+# runs-on: ubuntu-20.04
+# steps:
+# - name: Checkout code
+# uses: actions/checkout@v2
+#
+# - name: Set up Python 3.11
+# uses: actions/setup-python@v4
+# with:
+# python-version: '3.11'
+#
+# - name: Install dependencies
+# run: |
+# sudo apt-get update
+# sudo apt-get install -y libegl1-mesa
+# pip install --timeout=300 -r requirements.txt
+# pip install nuitka
+#
+# - name: Build with Nuitka
+# run: |
+# mv main.py "Ghost-Downloader-3.py"
+# python -c "import sys; sys.path.append('./app/common'); import config; print(config.VERSION)" > version.txt
+# version=$(sed -n '4p' version.txt)
+# echo "VERSION=$version" >> "$GITHUB_ENV"
+# echo "VERSION=${{ env.VERSION }}"
+# nuitka --standalone --enable-plugin=pyside6 --show-memory --output-dir=output --disable-console --company-name=XiaoYouChR --product-name="Ghost-Downloader-3" --file-description="Ghost-Downloader-3" --copyright="Copyright(C) 2024 XiaoYouChR" --file-version=$version --product-version=$version "Ghost-Downloader-3.py"
+## nuitka --module plugins/jy_os_page.py
+## mkdir -p "output/Ghost-Downloader-3.dist/plugins/"
+## mv jy_os_page*.so "output/Ghost-Downloader-3.dist/plugins/"
+#
+# - name: Upload artifacts
+# uses: actions/upload-artifact@v4
+# with:
+# name: Ghost-Downloader-v${{ env.VERSION }}-Linux-${{ matrix.architecture }}
+# path: output/Ghost-Downloader-3.dist